govuk_publishing_components 64.1.2 → 65.0.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 (190) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/magna-charta.js +3 -3
  3. data/app/assets/stylesheets/component_guide/application.scss +1 -1
  4. data/app/assets/stylesheets/govuk_publishing_components/_base.scss +7 -0
  5. data/app/assets/stylesheets/govuk_publishing_components/{_all_components.scss → all-components.scss} +9 -7
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_accordion.scss +0 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +0 -2
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_add-another.scss +0 -1
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +0 -2
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +0 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +0 -2
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_back-link.scss +0 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_back-to-top-link.scss +0 -2
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_big-number.scss +0 -2
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +0 -1
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +0 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +0 -4
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_character-count.scss +0 -1
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +0 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list-with-body.scss +0 -2
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +0 -3
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +0 -2
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -2
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_cookie-banner.scss +0 -1
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +0 -2
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_date-input.scss +0 -1
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_details.scss +0 -1
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +0 -2
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +0 -2
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +0 -2
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +0 -2
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_error-message.scss +0 -1
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +0 -1
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +0 -2
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_fieldset.scss +0 -1
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_figure.scss +0 -2
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_file-upload.scss +0 -1
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_glance-metric.scss +0 -2
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_global-banner.scss +0 -2
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +0 -2
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak.scss +0 -2
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +0 -2
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_hint.scss +0 -1
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +0 -2
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_input.scss +0 -1
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +0 -1
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +0 -2
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +0 -2
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_label.scss +0 -1
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +0 -1
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +0 -2
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +0 -1
  53. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +5 -4
  54. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +0 -2
  55. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +0 -2
  56. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +0 -2
  57. data/app/assets/stylesheets/govuk_publishing_components/components/_notice.scss +0 -1
  58. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +0 -2
  59. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +0 -2
  60. data/app/assets/stylesheets/govuk_publishing_components/components/_pagination.scss +0 -1
  61. data/app/assets/stylesheets/govuk_publishing_components/components/_panel.scss +0 -1
  62. data/app/assets/stylesheets/govuk_publishing_components/components/_password-input.scss +0 -1
  63. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +0 -1
  64. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +0 -2
  65. data/app/assets/stylesheets/govuk_publishing_components/components/_published-dates.scss +0 -2
  66. data/app/assets/stylesheets/govuk_publishing_components/components/_radio.scss +0 -1
  67. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +0 -2
  68. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +0 -2
  69. data/app/assets/stylesheets/govuk_publishing_components/components/_search-with-autocomplete.scss +0 -2
  70. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +0 -2
  71. data/app/assets/stylesheets/govuk_publishing_components/components/_secondary-navigation.scss +0 -2
  72. data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +0 -3
  73. data/app/assets/stylesheets/govuk_publishing_components/components/_select.scss +0 -1
  74. data/app/assets/stylesheets/govuk_publishing_components/components/_service-navigation.scss +0 -1
  75. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +0 -2
  76. data/app/assets/stylesheets/govuk_publishing_components/components/_signup-link.scss +0 -2
  77. data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +0 -2
  78. data/app/assets/stylesheets/govuk_publishing_components/components/_skip-link.scss +0 -1
  79. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +0 -2
  80. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +0 -2
  81. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +0 -2
  82. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +0 -3
  83. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +0 -1
  84. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-banner.scss +0 -2
  85. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-card.scss +0 -1
  86. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +0 -1
  87. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +0 -1
  88. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +0 -1
  89. data/app/assets/stylesheets/govuk_publishing_components/components/_tag.scss +0 -1
  90. data/app/assets/stylesheets/govuk_publishing_components/components/_textarea.scss +0 -1
  91. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +0 -2
  92. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +0 -1
  93. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_charts.scss +0 -20
  94. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +1 -1
  95. data/app/assets/stylesheets/govuk_publishing_components/{govuk_frontend_support.scss → components/helpers/_colours.scss} +0 -14
  96. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_index.scss +4 -0
  97. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/{_css3.scss → _prefixed-transform.scss} +0 -6
  98. data/app/assets/stylesheets/govuk_publishing_components/components/mixins/_scale.scss +5 -0
  99. data/app/assets/stylesheets/govuk_publishing_components/settings/_app-font-url.scss +7 -0
  100. data/app/assets/stylesheets/govuk_publishing_components/settings/_app-image-url.scss +7 -0
  101. data/app/assets/stylesheets/govuk_publishing_components/settings/_colours.scss +5 -0
  102. data/app/assets/stylesheets/govuk_publishing_components/settings/_index.scss +4 -0
  103. data/app/assets/stylesheets/govuk_publishing_components/settings/_typography.scss +1 -0
  104. data/app/assets/stylesheets/govuk_publishing_components/specific-components.scss +11 -0
  105. data/app/controllers/govuk_publishing_components/applications_page_controller.rb +5 -2
  106. data/app/controllers/govuk_publishing_components/audit_controller.rb +3 -2
  107. data/app/models/govuk_publishing_components/applications_page.rb +39 -4
  108. data/app/models/govuk_publishing_components/audit_applications.rb +1 -1
  109. data/app/views/govuk_publishing_components/applications_page/_table-content.html.erb +9 -0
  110. data/app/views/govuk_publishing_components/applications_page/show.html.erb +1 -0
  111. data/app/views/govuk_publishing_components/components/_service_navigation.html.erb +1 -1
  112. data/app/views/govuk_publishing_components/components/docs/attachment.yml +1 -2
  113. data/app/views/govuk_publishing_components/components/docs/details.yml +1 -8
  114. data/app/views/govuk_publishing_components/components/docs/error_alert.yml +2 -4
  115. data/app/views/govuk_publishing_components/components/docs/govspeak.yml +7 -7
  116. data/app/views/govuk_publishing_components/components/docs/modal_dialogue.yml +1 -1
  117. data/app/views/govuk_publishing_components/components/docs/table.yml +2 -2
  118. data/app/views/govuk_publishing_components/components/docs/tabs.yml +2 -6
  119. data/lib/govuk_publishing_components/presenters/contents_list_helper.rb +2 -3
  120. data/lib/govuk_publishing_components/presenters/pagination_helper.rb +1 -1
  121. data/lib/govuk_publishing_components/version.rb +1 -1
  122. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +31 -3
  123. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  124. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +31 -3
  125. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  126. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  127. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +5 -0
  128. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss.map +1 -1
  129. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +8 -0
  130. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
  131. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +95 -23
  132. data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +1 -1
  133. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +22 -22
  134. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +22 -22
  135. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +22 -22
  136. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +17 -17
  137. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +22 -22
  138. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +17 -17
  139. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +22 -22
  140. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +22 -22
  141. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +22 -22
  142. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +22 -22
  143. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-no-content-licence.html +16 -0
  144. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-custom-meta.html +20 -0
  145. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-meta-links.html +59 -0
  146. data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +30 -28
  147. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +12 -0
  148. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  149. data/node_modules/govuk-frontend/dist/govuk/components/pagination/fixtures.json +31 -9
  150. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-default.html +3 -3
  151. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-first-page.html +3 -3
  152. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-last-page.html +3 -3
  153. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-custom-link-and-item-text.html +3 -3
  154. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template-with-many-pages.html +9 -9
  155. data/node_modules/govuk-frontend/dist/govuk/components/pagination/template.njk +3 -1
  156. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +1 -1
  157. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
  158. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +18 -18
  159. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +30 -2
  160. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js.map +1 -1
  161. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +30 -2
  162. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs.map +1 -1
  163. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +30 -2
  164. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs.map +1 -1
  165. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-default.html +1 -1
  166. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-inverse.html +1 -1
  167. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-a-single-navigation-item-and-collapsenavigationonmobile-set-to-true.html +1 -1
  168. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-html-navigation-items.html +1 -1
  169. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-large-navigation.html +1 -1
  170. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-navigation-with-a-current-item.html +1 -1
  171. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-non-link-navigation-items.html +1 -1
  172. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template-with-service-name-and-navigation.html +1 -1
  173. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/template.njk +1 -1
  174. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +4 -0
  175. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
  176. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +1 -1
  177. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  178. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  179. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  180. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  181. data/node_modules/govuk-frontend/dist/govuk/macros/attributes.njk +30 -14
  182. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +1 -1
  183. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
  184. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -1
  185. data/node_modules/govuk-frontend/package.json +1 -1
  186. metadata +17 -8
  187. data/app/assets/stylesheets/govuk_publishing_components/_individual_component_support.scss +0 -8
  188. data/app/assets/stylesheets/govuk_publishing_components/component_support.scss +0 -14
  189. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_govuk-frontend-settings.scss +0 -17
  190. /data/app/assets/stylesheets/govuk_publishing_components/{components/helpers → lib}/_link.scss +0 -0
@@ -1,5 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
-
3
1
  $stroke-width: 1px;
4
2
  $number-circle-size: 30px;
5
3
  $number-circle-size-large: 35px;
@@ -1,6 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
- @import "mixins/css3";
3
-
4
1
  .gem-c-subscription-links {
5
2
  @include govuk-text-colour;
6
3
  @include govuk-font(19, $weight: bold);
@@ -1,4 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
1
  @import "govuk/components/notification-banner/notification-banner";
3
2
 
4
3
  // stylelint-disable declaration-no-important
@@ -1,5 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
-
3
1
  .gem-c-summary-banner {
4
2
  direction: ltr;
5
3
  background: $govuk-brand-colour;
@@ -1,4 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
1
  @import "govuk/components/summary-list/summary-list";
3
2
 
4
3
  .gem-c-summary-card {
@@ -1,4 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
1
  @import "govuk/components/summary-list/summary-list";
3
2
 
4
3
  .gem-c-summary-list {
@@ -1,4 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
1
  @import "govuk/components/table/table";
3
2
 
4
3
  $table-border-width: 1px;
@@ -1,4 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
1
  @import "govuk/components/tabs/tabs";
3
2
 
4
3
  .govuk-frontend-supported {
@@ -1,4 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
1
  @import "govuk/components/tag/tag";
3
2
 
4
3
  .gem-c-tag {
@@ -1,4 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
1
  @import "govuk/components/textarea/textarea";
3
2
 
4
3
  .gem-c-textarea {
@@ -1,5 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
-
3
1
  .gem-c-translation-nav {
4
2
  margin-bottom: govuk-spacing(6);
5
3
  border-bottom: 1px solid $govuk-border-colour;
@@ -1,4 +1,3 @@
1
- @import "govuk_publishing_components/individual_component_support";
2
1
  @import "govuk/components/warning-text/warning-text";
3
2
 
4
3
  .gem-c-warning-text .govuk-warning-text__text {
@@ -283,26 +283,6 @@
283
283
  text-align: left;
284
284
  }
285
285
 
286
- .mc-toggle-button {
287
- border: 1px solid $govuk-border-colour;
288
- color: $govuk-link-colour;
289
- cursor: pointer;
290
- margin: govuk-spacing(0);
291
- padding: govuk-spacing(2);
292
- background-color: govuk-colour("white");
293
-
294
- &:hover {
295
- background-color: govuk-colour("light-grey");
296
- color: $govuk-link-hover-colour;
297
- }
298
-
299
- &:focus {
300
- background-color: $govuk-focus-colour;
301
- border-color: transparent;
302
- @include govuk-focused-text;
303
- }
304
- }
305
-
306
286
  // Hides the original table
307
287
  .mc-hidden,
308
288
  .mc-hidden caption {
@@ -1,4 +1,3 @@
1
- @import "../helpers/markdown-typography";
2
1
  // Govspeak typography
3
2
  // https://components.publishing.service.gov.uk/component-guide/govspeak/heading_levels
4
3
  // https://components.publishing.service.gov.uk/component-guide/govspeak/lists
@@ -10,6 +9,7 @@
10
9
  // - alphagov/govspeak: ✔︎
11
10
 
12
11
  // stylelint-disable max-nesting-depth
12
+ @import "../helpers/markdown-typography";
13
13
 
14
14
  .govspeak, // Legacy class name that's still used in some content items - needs to be kept until `.govspeak` is removed from the content items.
15
15
  .gem-c-govspeak {
@@ -1,14 +1,3 @@
1
- // This file should be included in an application prior to specific components
2
- // It provides govuk-frontend but adds no weight to the compiled CSS
3
- @import "components/helpers/govuk-frontend-settings";
4
- @import "govuk/base";
5
-
6
- @import "components/mixins/margins";
7
-
8
- $govuk-suppressed-warnings: (
9
- organisation-colours
10
- );
11
-
12
1
  $gem-secondary-button-colour: #00823b;
13
2
  $gem-secondary-button-hover-colour: darken($gem-secondary-button-colour, 5%);
14
3
  $gem-secondary-button-background-colour: govuk-colour("white");
@@ -17,10 +6,7 @@ $gem-secondary-button-hover-background-colour: govuk-colour("light-grey");
17
6
  $gem-quiet-button-colour: govuk-colour("dark-grey");
18
7
  $gem-quiet-button-hover-colour: darken($gem-quiet-button-colour, 5%);
19
8
 
20
- $gem-hover-dark-background: #dddcdb;
21
-
22
9
  // Brand refresh
23
-
24
10
  $govuk-blue-tint-95: govuk-tint($govuk-brand-colour, 95%);
25
11
  $govuk-blue-tint-80: govuk-tint(govuk-colour("blue"), 80%);
26
12
  $govuk-blue-tint-50: govuk-tint(govuk-colour("blue"), 50%);
@@ -0,0 +1,4 @@
1
+ @import "grid-helper";
2
+ @import "margins";
3
+ @import "prefixed-transform";
4
+ @import "scale";
@@ -1,9 +1,3 @@
1
- @mixin scale($size) {
2
- -webkit-transform: scale($size); // Chrome, Opera 15+, Safari 3.1+
3
- -ms-transform: scale($size); // IE 9
4
- transform: scale($size); // Firefox 16+, IE 10+, Opera
5
- }
6
-
7
1
  @mixin prefixed-transform($translateY: 0, $rotate: 0, $scale: 1) {
8
2
  -webkit-transform: translateY($translateY) rotate($rotate) scale($scale);
9
3
  -ms-transform: translateY($translateY) rotate($rotate) scale($scale);
@@ -0,0 +1,5 @@
1
+ @mixin scale($size) {
2
+ -webkit-transform: scale($size); // Chrome, Opera 15+, Safari 3.1+
3
+ -ms-transform: scale($size); // IE 9
4
+ transform: scale($size); // Firefox 16+, IE 10+, Opera
5
+ }
@@ -0,0 +1,7 @@
1
+ // Custom font URL function
2
+ // https://github.com/alphagov/govuk-frontend/blob/9f05cea739d14d4cbf18e79b17228045ca84b3ba/packages/govuk-frontend/src/govuk/settings/_assets.scss#L57-L82
3
+
4
+ @function app-font-url($filename) {
5
+ @return url("#{$filename}");
6
+ }
7
+ $govuk-font-url-function: "app-font-url";
@@ -0,0 +1,7 @@
1
+ // Custom image URL function
2
+ // https://github.com/alphagov/govuk-frontend/blob/9f05cea739d14d4cbf18e79b17228045ca84b3ba/packages/govuk-frontend/src/govuk/settings/_assets.scss#L30-L55
3
+
4
+ @function app-image-url($filename) {
5
+ @return url("#{$filename}");
6
+ }
7
+ $govuk-image-url-function: "app-image-url";
@@ -0,0 +1,5 @@
1
+ $govuk-new-organisation-colours: true;
2
+
3
+ $govuk-suppressed-warnings: (
4
+ organisation-colours
5
+ );
@@ -0,0 +1,4 @@
1
+ @import "app-font-url";
2
+ @import "app-image-url";
3
+ @import "colours";
4
+ @import "typography";
@@ -0,0 +1 @@
1
+ $govuk-new-typography-scale: true;
@@ -0,0 +1,11 @@
1
+ @import "base";
2
+
3
+ @import "govuk/core/index";
4
+ @import "govuk/objects/index";
5
+ @import "govuk/utilities/index";
6
+ @import "govuk/overrides/index";
7
+
8
+ @import "govuk_publishing_components/components/helpers/brand-colours";
9
+ @import "govuk_publishing_components/components/helpers/contents-list-helper";
10
+ @import "govuk_publishing_components/lib/link";
11
+ @import "govuk_publishing_components/lib/print_support";
@@ -8,11 +8,11 @@ module GovukPublishingComponents
8
8
  },
9
9
  {
10
10
  type: "publishing",
11
- apps: %w[content-data-admin collections-publisher travel-advice-publisher whitehall datagovuk_find local-links-manager places-manager support manuals-publisher service-manual-publisher short-url-manager specialist-publisher content-tagger publisher transition search-admin].sort,
11
+ apps: %w[content-data-admin collections-publisher travel-advice-publisher whitehall datagovuk_find local-links-manager places-manager support manuals-publisher service-manual-publisher short-url-manager specialist-publisher content-tagger publisher transition search-admin fact-check-manager content-block-manager].sort,
12
12
  },
13
13
  {
14
14
  type: "utility",
15
- apps: %w[account-api signon govspeak govspeak-preview release govuk-developer-docs govuk-chat].sort,
15
+ apps: %w[account-api signon govspeak govspeak-preview release govuk-developer-docs govuk-chat govuk_web_banners].sort,
16
16
  },
17
17
  ]
18
18
 
@@ -41,6 +41,9 @@ module GovukPublishingComponents
41
41
  gem_version_status: app.gem_version == GovukPublishingComponents::VERSION ? "green" : "red",
42
42
  sass_version: app.sass_version,
43
43
  ruby_version: app.ruby_version,
44
+ ruby_version_status: app.ruby_status(app.ruby_version),
45
+ yarn_version: app.yarn_version,
46
+ yarn_version_status: app.yarn_version.to_f >= 4 ? "green" : "red",
44
47
  }
45
48
  end
46
49
  end
@@ -5,11 +5,12 @@ module GovukPublishingComponents
5
5
  account-api
6
6
  collections
7
7
  collections-publisher
8
+ content-block-manager
8
9
  content-data-admin
9
- content-publisher
10
10
  content-tagger
11
11
  datagovuk_find
12
12
  email-alert-frontend
13
+ fact-check-manager
13
14
  feedback
14
15
  finder-frontend
15
16
  frontend
@@ -18,13 +19,13 @@ module GovukPublishingComponents
18
19
  govspeak-preview
19
20
  govuk-chat
20
21
  govuk-developer-docs
22
+ govuk_web_banners
21
23
  local-links-manager
22
24
  manuals-publisher
23
25
  places-manager
24
26
  publisher
25
27
  release
26
28
  search-admin
27
- search-v2-evaluator
28
29
  service-manual-publisher
29
30
  short-url-manager
30
31
  signon
@@ -1,12 +1,14 @@
1
1
  module GovukPublishingComponents
2
2
  class ApplicationsPage
3
- attr_reader :source
3
+ attr_reader :source, :ruby_version
4
4
 
5
5
  def initialize(application)
6
6
  @application = application
7
7
  @dir = get_directory
8
8
  @gemfilelock = get_file("Gemfile.lock")
9
- @rubyfile = get_file(".ruby-version")
9
+ rubyfile = get_file(".ruby-version")
10
+ @ruby_version = rubyfile.strip if rubyfile
11
+ @packagejson = get_file("package.json")
10
12
  end
11
13
 
12
14
  def readable_name
@@ -21,8 +23,41 @@ module GovukPublishingComponents
21
23
  parse_file(@gemfilelock, /sass-embedded \(([^)>=~ ]+)\)/)
22
24
  end
23
25
 
24
- def ruby_version
25
- @rubyfile.strip if @rubyfile
26
+ def ruby_status(version)
27
+ version = version.to_f # to_f ignores non-numbers on the string end, so 3.3.1 becomes 3.1
28
+ versions = [
29
+ {
30
+ version: 3.3,
31
+ eol: "2027-03-31",
32
+ },
33
+ {
34
+ version: 3.2,
35
+ eol: "2026-03-31",
36
+ },
37
+ {
38
+ version: 3.1,
39
+ eol: "2024-04-23",
40
+ },
41
+ ]
42
+ today = Date.today # rubocop:disable Rails/Date
43
+ result = "not set"
44
+
45
+ versions.each do |v|
46
+ next unless version >= v[:version]
47
+
48
+ version_eol = Date.parse(v[:eol])
49
+ age = version_eol - today
50
+ result = "green"
51
+ result = "orange" if age < 100
52
+ result = "red" if age.negative?
53
+ break
54
+ end
55
+
56
+ result
57
+ end
58
+
59
+ def yarn_version
60
+ parse_file(@packagejson, /"packageManager"\s*:\s*"yarn@(\d+(?:\.\d+)*)"/)
26
61
  end
27
62
 
28
63
  private
@@ -18,7 +18,7 @@ module GovukPublishingComponents
18
18
 
19
19
  find_components = /(?<=govuk_publishing_components\/components\/)[a-zA-Z_-]+(?=['"])/
20
20
 
21
- @find_all_stylesheets = /@import ["']{1}govuk_publishing_components\/all_components/ # if using the all stylesheets option
21
+ @find_all_stylesheets = /@import ["']{1}govuk_publishing_components\/all-components/ # if using the all stylesheets option
22
22
  find_stylesheets = /(?<=@import ["']{1}govuk_publishing_components\/components\/)(?!print\/)+[a-zA-Z_-]+(?=['"])/
23
23
 
24
24
  @find_all_javascripts = /\/\/ *= require govuk_publishing_components\/all_components/
@@ -32,6 +32,15 @@
32
32
  <% if app[:ruby_version] %>
33
33
  <%= render "govuk_publishing_components/components/tag", {
34
34
  text: app[:ruby_version],
35
+ colour: app[:ruby_version_status],
36
+ } %>
37
+ <% end %>
38
+ </td>
39
+ <td class="govuk-table__cell">
40
+ <% if app[:yarn_version] %>
41
+ <%= render "govuk_publishing_components/components/tag", {
42
+ text: app[:yarn_version],
43
+ colour: app[:yarn_version_status],
35
44
  } %>
36
45
  <% end %>
37
46
  </td>
@@ -25,6 +25,7 @@
25
25
  <th scope="col" class="govuk-table__header sticky-table-header">Gem version</th>
26
26
  <th scope="col" class="govuk-table__header sticky-table-header">Sass version</th>
27
27
  <th scope="col" class="govuk-table__header sticky-table-header">Ruby version</th>
28
+ <th scope="col" class="govuk-table__header sticky-table-header">Yarn version</th>
28
29
  </tr>
29
30
  </thead>
30
31
  <tbody class="govuk-table__body">
@@ -31,7 +31,7 @@
31
31
  <% if navigation_items.present? %>
32
32
  <nav aria-label="<%= navigation_aria_label %>" class="govuk-service-navigation__wrapper">
33
33
  <% if collapse_navigation_on_mobile %>
34
- <button type="button" class="govuk-service-navigation__toggle govuk-js-service-navigation-toggle" aria-controls="navigation" hidden>
34
+ <button type="button" class="govuk-service-navigation__toggle govuk-js-service-navigation-toggle" aria-controls="navigation" hidden aria-hidden="true">
35
35
  Menu
36
36
  </button>
37
37
  <% end %>
@@ -4,8 +4,7 @@ body: |
4
4
  This component shows a link to a document that is attached to GOV.UK content
5
5
  along with a thumbnail and relevant file data.
6
6
 
7
- It is intended to be rendered in Govspeak and as an attachment 'preview' in
8
- Content Publisher.
7
+ It is intended to be rendered in Govspeak.
9
8
 
10
9
  It is not as rich in features as the [attachment rendering][Whitehall]
11
10
  provided by Whitehall, it lacks support for multiple languages, CSV previews
@@ -1,5 +1,6 @@
1
1
  name: Details
2
2
  description: Make a page easier to scan by letting users reveal more detailed information only if they need it
3
+ uses_component_wrapper_helper: true
3
4
  shared_accessibility_criteria:
4
5
  - link
5
6
  accessibility_criteria: |
@@ -38,14 +39,6 @@ examples:
38
39
  <p class="govuk-body">Attorney General's office</p>
39
40
  <%= component %>
40
41
  </div>
41
- with_GTM_tracking:
42
- description: Applies a tracking attribute specifically for use by Google Tag Manager in [Content Publisher](https://github.com/alphagov/content-publisher).
43
- data:
44
- title: Help with nationality
45
- data_attributes:
46
- tracking: GTM-123AB
47
- block: |
48
- We need to know your nationality so we can work out which elections you’re entitled to vote in. If you can’t provide your nationality, you’ll have to send copies of identity documents through the post.
49
42
  with_ga4_tracking:
50
43
  description: |
51
44
  GA4 tracking is mostly handled internally by the component, apart from the required attribute `index_section_count`. This records the number of details components on the page and must be passed by the hosting application. Other GA4 attributes can also be passed if required, including to override attributes set by the component (for some reason this doesn't work in the component guide but works in applications).
@@ -24,14 +24,12 @@ examples:
24
24
  Nullam sed neque quis turpis.
25
25
  with_data_attributes:
26
26
  description: |
27
- The example shown applies a tracking attribute specifically for use by Google Tag Manager in [Content Publisher](https://github.com/alphagov/content-publisher).
28
-
29
- Other data attributes can also be applied as required. Note that the component does not include built in tracking. If this is required consider using the [GA4 link tracker](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/trackers/ga4-link-tracker.md).
27
+ Note that the component does not include built in tracking. If this is required consider using the [GA4 link tracker](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/trackers/ga4-link-tracker.md).
30
28
  data:
31
29
  message: Message to alert the user to a unsuccessful action goes here
32
30
  description: A further description
33
31
  data_attributes:
34
- tracking: GTM-123AB
32
+ hello: world
35
33
  with_specified_id_attribute:
36
34
  data:
37
35
  id: test-id
@@ -317,7 +317,7 @@ examples:
317
317
  </section>
318
318
  <section class="attachment embedded" id="attachment_1399344">
319
319
  <div class="attachment-thumb">
320
- <a aria-hidden="true" class="thumbnail" href="https://www.gov.uk/government/world-location-news/294043.es-419"><img alt="" src="https://assets.digital.cabinet-office.gov.uk/government/assets/pub-cover-doc-afe3b0a8a9511beeca890340170aee8b5649413f948e512c9b8ce432d8513d32.png"></a>
320
+ <a aria-hidden="true" class="thumbnail" href="https://www.gov.uk/government/world-location-news/294043.es-419"><img alt="" src="#"></a>
321
321
  </div>
322
322
  <div class="attachment-details">
323
323
  <h2 class="title"><a href="https://www.gov.uk/government/world-location-news/294043.es-419">Document attachment</a></h2>
@@ -345,7 +345,7 @@ examples:
345
345
  </section>
346
346
  <section class="attachment embedded" id="attachment_1399348">
347
347
  <div class="attachment-thumb">
348
- <img alt="" src="https://assets.digital.cabinet-office.gov.uk/government/assets/pub-cover-spreadsheet-471052e0d03e940bbc62528a05ac204a884b553e4943e63c8bffa6b8baef8967.png">
348
+ <img alt="" src="#">
349
349
  </div>
350
350
  <div class="attachment-details">
351
351
  <h2 class="title">Previewable online example</h2>
@@ -366,7 +366,7 @@ examples:
366
366
  </section>
367
367
  <section class="attachment embedded" id="attachment_1243761">
368
368
  <div class="attachment-thumb">
369
- <a aria-hidden="true" class="thumbnail" href="https://www.gov.uk/government/statistical-data-sets/env24-fly-tipping-incidents-and-actions-taken-in-england"><img alt="" src="https://assets.digital.cabinet-office.gov.uk/government/assets/pub-cover-spreadsheet-471052e0d03e940bbc62528a05ac204a884b553e4943e63c8bffa6b8baef8967.png"></a>
369
+ <a aria-hidden="true" class="thumbnail" href="https://www.gov.uk/government/statistical-data-sets/env24-fly-tipping-incidents-and-actions-taken-in-england"><img alt="" src="#"></a>
370
370
  </div>
371
371
  <div class="attachment-details">
372
372
  <h2 class="title"><a aria-describedby="attachment-1243761-accessibility-help" href="https://www.gov.uk/government/statistical-data-sets/env24-fly-tipping-incidents-and-actions-taken-in-england">Fly-tipping incidents and actions reported by local authorities in 2014 to 2015</a></h2>
@@ -391,7 +391,7 @@ examples:
391
391
  </section>
392
392
  <section class="attachment embedded" id="attachment_1112527">
393
393
  <div class="attachment-thumb">
394
- <a aria-hidden="true" class="thumbnail" href="https://www.gov.uk/government/publications/summer-budget-2015/summer-budget-2015"><img alt="" src="https://assets.digital.cabinet-office.gov.uk/government/assets/pub-cover-html-b0465911e56983d98c70f0e25fba24bc206d37e8c83d4addf6421dcf6022c6cd.png"></a>
394
+ <a aria-hidden="true" class="thumbnail" href="https://www.gov.uk/government/publications/summer-budget-2015/summer-budget-2015"><img alt="" src="#"></a>
395
395
  </div>
396
396
  <div class="attachment-details">
397
397
  <h2 class="title"><a href="https://www.gov.uk/government/publications/summer-budget-2015/summer-budget-2015">Summer Budget 2015</a></h2>
@@ -402,7 +402,7 @@ examples:
402
402
  </section>
403
403
  <section class="attachment hosted-externally" id="attachment_1425055">
404
404
  <div class="attachment-thumb">
405
- <a aria-hidden="true" class="thumbnail" href="http://example.com"><img alt="" src="//www.gov.uk/government/assets/pub-cover-a380604bb953dc22ac9dcfbf3cc65598327f493c37b09ac497c45148cbaa21b1.png"></a>
405
+ <a aria-hidden="true" class="thumbnail" href="http://example.com"><img alt="" src="#"></a>
406
406
  </div>
407
407
  <div class="attachment-details">
408
408
  <h2 class="title"><a rel="external" href="https://www.arcgis.com/apps/opsdashboard/index.html#/f94c3c90da5b4e9f9a0b19484dd4bb14">Track coronavirus cases</a></h2>
@@ -413,7 +413,7 @@ examples:
413
413
  </section>
414
414
  <section class="attachment hosted-externally" id="attachment_1425056">
415
415
  <div class="attachment-thumb">
416
- <a aria-hidden="true" class="thumbnail" href="http://example.com"><img alt="" src="//www.gov.uk/government/assets/pub-cover-a380604bb953dc22ac9dcfbf3cc65598327f493c37b09ac497c45148cbaa21b1.png"></a>
416
+ <a aria-hidden="true" class="thumbnail" href="http://example.com"><img alt="" src="#"></a>
417
417
  </div>
418
418
  <div class="attachment-details">
419
419
  <h2 class="title"><a rel="external" href="http://example.com">An external link (with all possible metadata)</a></h2>
@@ -431,7 +431,7 @@ examples:
431
431
  </section>
432
432
  <section class="attachment embedded" id="attachment_1398523">
433
433
  <div class="attachment-thumb">
434
- <a aria-hidden="true" class="thumbnail" href="https://www.gov.uk/government/consultations/environmental-permitting-updating-the-standards-for-petrol-vapour-recovery-at-service-stations"><img alt="" src="https://assets.digital.cabinet-office.gov.uk/government/uploads/system/uploads/attachment_data/file/498443/thumbnail_petrol-vapour-recovery-consult-sum-resp.pdf.png"></a>
434
+ <a aria-hidden="true" class="thumbnail" href="https://www.gov.uk/government/consultations/environmental-permitting-updating-the-standards-for-petrol-vapour-recovery-at-service-stations"><img alt="" src="#"></a>
435
435
  </div>
436
436
  <div class="attachment-details">
437
437
  <h2 class="title"><a href="https://www.gov.uk/government/consultations/environmental-permitting-updating-the-standards-for-petrol-vapour-recovery-at-service-stations">Consultation outcome with published date</a></h2>
@@ -10,7 +10,7 @@ body: |
10
10
 
11
11
  Modal components must be a direct descendant of the `<body>` element; we recommend placing it toward the end of the document for performance considerations.
12
12
 
13
- This component is currently experimental. If you are using it, please feed back any research findings to the Content Publisher team.
13
+ This component is currently experimental. If you are using it, please feed back any research findings to #govuk-ruby-frontenders on Slack.
14
14
  accessibility_criteria: |
15
15
  The modal dialogue box must:
16
16
 
@@ -90,7 +90,7 @@ examples:
90
90
  description: |
91
91
  This option allows links to be added to the table headers for sorting. Sorting must be handled server side, it is not done by the component.
92
92
 
93
- The example shown applies a tracking attribute specifically for use by Google Tag Manager in [Content Publisher](https://github.com/alphagov/content-publisher).
93
+ The example shown applies a data attribute too.
94
94
 
95
95
  Other data attributes can also be applied as required. Note that the component does not include built in tracking. If this is required consider using the [GA4 link tracker](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/trackers/ga4-link-tracker.md).
96
96
  data:
@@ -102,7 +102,7 @@ examples:
102
102
  sort_direction: descending
103
103
  href: /?sort_direction=desc
104
104
  data_attributes:
105
- tracking: "UTM-123A"
105
+ hello: world
106
106
  - text: Rate for vehicles
107
107
  format: numeric
108
108
  href: /?sort_direction=desc
@@ -75,24 +75,20 @@ examples:
75
75
  content: |
76
76
  <p class="govuk-body-m">Here is a single piece of content, there should be no tabs.</p>
77
77
  with_data_attributes:
78
- description: |
79
- The example shown applies a tracking attribute specifically for use by Google Tag Manager in [Content Publisher](https://github.com/alphagov/content-publisher).
80
-
81
- Other data attributes can also be applied as required. Note that the component does not include built in tracking. If this is required consider using the [GA4 link tracker](https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/trackers/ga4-link-tracker.md).
82
78
  data:
83
79
  tabs:
84
80
  - id: "tab-with-data-attributes-1"
85
81
  label: "First section"
86
82
  title: "First section"
87
83
  tab_data_attributes:
88
- tracking: GTM-123AB
84
+ hello: world
89
85
  content: |
90
86
  <p class="govuk-body-m">Fusce at dictum tellus, ac accumsan est. Nulla vitae turpis in nulla gravida tincidunt. Duis lectus felis, tempus id bibendum sit amet, posuere ut elit. Donec enim odio, eleifend in urna a, sagittis egestas est. Proin id ex ultricies, porta eros id, vehicula quam. Morbi non sagittis velit.</p>
91
87
  - id: "tab-with-data-attributes-2"
92
88
  label: "Second section"
93
89
  title: "Second section"
94
90
  tab_data_attributes:
95
- tracking: GTM-123AB
91
+ hello: world
96
92
  content: |
97
93
  <p class="govuk-body-m">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam congue elementum commodo. Vestibulum elit turpis, efficitur quis posuere vitae, commodo vitae augue. Donec ut pharetra ligula. Phasellus ac mauris eu felis bibendum dapibus rutrum sed quam. Pellentesque posuere ante id consequat pretium.</p>
98
94
  without_ga4_tracking_on_tabs:
@@ -26,10 +26,9 @@ module GovukPublishingComponents
26
26
  output = clean_string(link_text)
27
27
  # Must start with a number
28
28
  # Number must be between 1 and 999 (ie not 2014)
29
- # Must be followed by a space
30
- # May contain a period `1.`
29
+ # Must contain at least one period
31
30
  # May be a decimal `1.2`
32
- number = /^\d{1,3}(\.?|\.\d{1,2})(?=\s)/.match(output)
31
+ number = /^\d{1,3}\.(\d{1,2})?(?=\s)/.match(output)
33
32
 
34
33
  if number
35
34
  words = output.sub(number.to_s, "").strip # remove the number from the text
@@ -43,7 +43,7 @@ module GovukPublishingComponents
43
43
  def pages_link_helper
44
44
  return unless has_pages?
45
45
 
46
- page_links = @items.each_with_index.map do |item, index|
46
+ page_links = @items.reject(&:blank?).each_with_index.map do |item, index|
47
47
  { href: nil, ellipsis: nil, current: nil, number: nil, visually_hidden_text: nil, **item.symbolize_keys } => { href:, ellipsis:, current:, number:, visually_hidden_text: }
48
48
 
49
49
  raise ArgumentError, "Number or ellipsis value required for item #{index}" if ellipsis.blank? && number.blank?
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "64.1.2".freeze
2
+ VERSION = "65.0.0".freeze
3
3
  end