govuk_publishing_components 28.9.0 → 29.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/config/govuk_publishing_components_manifest.js +15 -3
  4. data/app/assets/javascripts/govuk_publishing_components/analytics/cross-domain-tracking.js +55 -0
  5. data/app/assets/javascripts/govuk_publishing_components/analytics.js +3 -0
  6. data/app/assets/javascripts/govuk_publishing_components/dependencies.js +2 -5
  7. data/app/assets/javascripts/govuk_publishing_components/modules.js +15 -18
  8. data/app/assets/javascripts/govuk_publishing_components/{rum-loader.js.erb → rum-loader.js} +13 -10
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +0 -6
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_previous-and-next-navigation.scss +1 -1
  12. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
  13. data/app/views/govuk_publishing_components/components/_cards.html.erb +9 -25
  14. data/app/views/govuk_publishing_components/components/_contextual_sidebar.html.erb +0 -4
  15. data/app/views/govuk_publishing_components/components/_input.html.erb +3 -0
  16. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +7 -1
  17. data/app/views/govuk_publishing_components/components/_lead_paragraph.html.erb +0 -1
  18. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +27 -22
  19. data/app/views/govuk_publishing_components/components/docs/attachment.yml +1 -1
  20. data/app/views/govuk_publishing_components/components/docs/big_number.yml +3 -3
  21. data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +3 -3
  22. data/app/views/govuk_publishing_components/components/docs/button.yml +2 -2
  23. data/app/views/govuk_publishing_components/components/docs/cards.yml +12 -6
  24. data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +5 -5
  25. data/app/views/govuk_publishing_components/components/docs/contents_list.yml +1 -1
  26. data/app/views/govuk_publishing_components/components/docs/contextual_breadcrumbs.yml +1 -1
  27. data/app/views/govuk_publishing_components/components/docs/contextual_guidance.yml +1 -1
  28. data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +0 -27
  29. data/app/views/govuk_publishing_components/components/docs/cookie_banner.yml +2 -2
  30. data/app/views/govuk_publishing_components/components/docs/date_input.yml +1 -1
  31. data/app/views/govuk_publishing_components/components/docs/details.yml +1 -1
  32. data/app/views/govuk_publishing_components/components/docs/devolved_nations.yml +1 -1
  33. data/app/views/govuk_publishing_components/components/docs/document_list.yml +2 -2
  34. data/app/views/govuk_publishing_components/components/docs/error_alert.yml +1 -1
  35. data/app/views/govuk_publishing_components/components/docs/error_summary.yml +2 -2
  36. data/app/views/govuk_publishing_components/components/docs/feedback.yml +1 -1
  37. data/app/views/govuk_publishing_components/components/docs/fieldset.yml +4 -4
  38. data/app/views/govuk_publishing_components/components/docs/heading.yml +4 -4
  39. data/app/views/govuk_publishing_components/components/docs/hint.yml +1 -1
  40. data/app/views/govuk_publishing_components/components/docs/input.yml +18 -15
  41. data/app/views/govuk_publishing_components/components/docs/inset_text.yml +1 -1
  42. data/app/views/govuk_publishing_components/components/docs/label.yml +1 -1
  43. data/app/views/govuk_publishing_components/components/docs/layout_footer.yml +2 -2
  44. data/app/views/govuk_publishing_components/components/docs/lead_paragraph.yml +1 -1
  45. data/app/views/govuk_publishing_components/components/docs/list.yml +1 -1
  46. data/app/views/govuk_publishing_components/components/docs/metadata.yml +1 -1
  47. data/app/views/govuk_publishing_components/components/docs/notice.yml +2 -2
  48. data/app/views/govuk_publishing_components/components/docs/print_link.yml +1 -1
  49. data/app/views/govuk_publishing_components/components/docs/search.yml +4 -4
  50. data/app/views/govuk_publishing_components/components/docs/select.yml +5 -5
  51. data/app/views/govuk_publishing_components/components/docs/show_password.yml +3 -3
  52. data/app/views/govuk_publishing_components/components/docs/signup_link.yml +1 -1
  53. data/app/views/govuk_publishing_components/components/docs/single_page_notification_button.yml +2 -2
  54. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav.yml +1 -1
  55. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +3 -3
  56. data/app/views/govuk_publishing_components/components/docs/subscription_links.yml +3 -3
  57. data/app/views/govuk_publishing_components/components/docs/success_alert.yml +1 -1
  58. data/app/views/govuk_publishing_components/components/docs/summary_list.yml +2 -7
  59. data/app/views/govuk_publishing_components/components/docs/table.yml +1 -1
  60. data/app/views/govuk_publishing_components/components/docs/textarea.yml +1 -1
  61. data/app/views/govuk_publishing_components/components/docs/title.yml +1 -1
  62. data/config/initializers/assets.rb +15 -45
  63. data/config/locales/en.yml +2 -2
  64. data/lib/govuk_publishing_components/presenters/attachment.rb +3 -7
  65. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +0 -45
  66. data/lib/govuk_publishing_components/version.rb +1 -1
  67. metadata +13 -120
  68. data/app/views/govuk_publishing_components/components/contextual_sidebar/_brexit_cta.html.erb +0 -27
  69. data/node_modules/jquery/AUTHORS.txt +0 -266
  70. data/node_modules/jquery/LICENSE.txt +0 -36
  71. data/node_modules/jquery/README.md +0 -65
  72. data/node_modules/jquery/bower.json +0 -14
  73. data/node_modules/jquery/dist/jquery.js +0 -11008
  74. data/node_modules/jquery/dist/jquery.min.js +0 -5
  75. data/node_modules/jquery/dist/jquery.min.map +0 -1
  76. data/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  77. data/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2143
  78. data/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  79. data/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  80. data/node_modules/jquery/package.json +0 -85
  81. data/node_modules/jquery/src/ajax/jsonp.js +0 -100
  82. data/node_modules/jquery/src/ajax/load.js +0 -83
  83. data/node_modules/jquery/src/ajax/parseJSON.js +0 -53
  84. data/node_modules/jquery/src/ajax/parseXML.js +0 -31
  85. data/node_modules/jquery/src/ajax/script.js +0 -95
  86. data/node_modules/jquery/src/ajax/var/location.js +0 -3
  87. data/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  88. data/node_modules/jquery/src/ajax/var/rquery.js +0 -3
  89. data/node_modules/jquery/src/ajax/xhr.js +0 -229
  90. data/node_modules/jquery/src/ajax.js +0 -842
  91. data/node_modules/jquery/src/attributes/attr.js +0 -281
  92. data/node_modules/jquery/src/attributes/classes.js +0 -174
  93. data/node_modules/jquery/src/attributes/prop.js +0 -156
  94. data/node_modules/jquery/src/attributes/support.js +0 -70
  95. data/node_modules/jquery/src/attributes/val.js +0 -191
  96. data/node_modules/jquery/src/attributes.js +0 -11
  97. data/node_modules/jquery/src/callbacks.js +0 -232
  98. data/node_modules/jquery/src/core/access.js +0 -65
  99. data/node_modules/jquery/src/core/init.js +0 -140
  100. data/node_modules/jquery/src/core/parseHTML.js +0 -41
  101. data/node_modules/jquery/src/core/ready.js +0 -163
  102. data/node_modules/jquery/src/core/var/rsingleTag.js +0 -5
  103. data/node_modules/jquery/src/core.js +0 -529
  104. data/node_modules/jquery/src/css/addGetHookIf.js +0 -24
  105. data/node_modules/jquery/src/css/adjustCSS.js +0 -65
  106. data/node_modules/jquery/src/css/curCSS.js +0 -137
  107. data/node_modules/jquery/src/css/defaultDisplay.js +0 -72
  108. data/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -42
  109. data/node_modules/jquery/src/css/showHide.js +0 -45
  110. data/node_modules/jquery/src/css/support.js +0 -184
  111. data/node_modules/jquery/src/css/var/cssExpand.js +0 -3
  112. data/node_modules/jquery/src/css/var/isHidden.js +0 -16
  113. data/node_modules/jquery/src/css/var/rmargin.js +0 -3
  114. data/node_modules/jquery/src/css/var/rnumnonpx.js +0 -5
  115. data/node_modules/jquery/src/css/var/swap.js +0 -24
  116. data/node_modules/jquery/src/css.js +0 -563
  117. data/node_modules/jquery/src/data/support.js +0 -23
  118. data/node_modules/jquery/src/data/var/acceptData.js +0 -20
  119. data/node_modules/jquery/src/data.js +0 -342
  120. data/node_modules/jquery/src/deferred.js +0 -159
  121. data/node_modules/jquery/src/deprecated.js +0 -34
  122. data/node_modules/jquery/src/dimensions.js +0 -56
  123. data/node_modules/jquery/src/effects/Tween.js +0 -121
  124. data/node_modules/jquery/src/effects/animatedSelector.js +0 -13
  125. data/node_modules/jquery/src/effects/support.js +0 -58
  126. data/node_modules/jquery/src/effects.js +0 -640
  127. data/node_modules/jquery/src/event/ajax.js +0 -20
  128. data/node_modules/jquery/src/event/alias.js +0 -25
  129. data/node_modules/jquery/src/event/support.js +0 -28
  130. data/node_modules/jquery/src/event.js +0 -1134
  131. data/node_modules/jquery/src/exports/amd.js +0 -24
  132. data/node_modules/jquery/src/exports/global.js +0 -26
  133. data/node_modules/jquery/src/intro.js +0 -44
  134. data/node_modules/jquery/src/jquery.js +0 -37
  135. data/node_modules/jquery/src/manipulation/_evalUrl.js +0 -21
  136. data/node_modules/jquery/src/manipulation/buildFragment.js +0 -157
  137. data/node_modules/jquery/src/manipulation/createSafeFragment.js +0 -20
  138. data/node_modules/jquery/src/manipulation/getAll.js +0 -33
  139. data/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -19
  140. data/node_modules/jquery/src/manipulation/support.js +0 -72
  141. data/node_modules/jquery/src/manipulation/var/nodeNames.js +0 -5
  142. data/node_modules/jquery/src/manipulation/var/rcheckableType.js +0 -3
  143. data/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +0 -3
  144. data/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -3
  145. data/node_modules/jquery/src/manipulation/var/rtagName.js +0 -3
  146. data/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
  147. data/node_modules/jquery/src/manipulation.js +0 -585
  148. data/node_modules/jquery/src/offset.js +0 -219
  149. data/node_modules/jquery/src/outro.js +0 -2
  150. data/node_modules/jquery/src/queue/delay.js +0 -22
  151. data/node_modules/jquery/src/queue.js +0 -144
  152. data/node_modules/jquery/src/selector-sizzle.js +0 -14
  153. data/node_modules/jquery/src/selector.js +0 -1
  154. data/node_modules/jquery/src/serialize.js +0 -125
  155. data/node_modules/jquery/src/support.js +0 -63
  156. data/node_modules/jquery/src/traversing/findFilter.js +0 -100
  157. data/node_modules/jquery/src/traversing/var/dir.js +0 -20
  158. data/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -6
  159. data/node_modules/jquery/src/traversing/var/siblings.js +0 -15
  160. data/node_modules/jquery/src/traversing.js +0 -179
  161. data/node_modules/jquery/src/var/class2type.js +0 -5
  162. data/node_modules/jquery/src/var/concat.js +0 -5
  163. data/node_modules/jquery/src/var/deletedIds.js +0 -3
  164. data/node_modules/jquery/src/var/document.js +0 -3
  165. data/node_modules/jquery/src/var/documentElement.js +0 -5
  166. data/node_modules/jquery/src/var/hasOwn.js +0 -5
  167. data/node_modules/jquery/src/var/indexOf.js +0 -5
  168. data/node_modules/jquery/src/var/pnum.js +0 -3
  169. data/node_modules/jquery/src/var/push.js +0 -5
  170. data/node_modules/jquery/src/var/rcssNum.js +0 -7
  171. data/node_modules/jquery/src/var/rnotwhite.js +0 -3
  172. data/node_modules/jquery/src/var/slice.js +0 -5
  173. data/node_modules/jquery/src/var/support.js +0 -5
  174. data/node_modules/jquery/src/var/toString.js +0 -5
  175. data/node_modules/jquery/src/wrap.js +0 -77
@@ -1,20 +0,0 @@
1
- define( [
2
- "../core",
3
- "../event"
4
- ], function( jQuery ) {
5
-
6
- // Attach a bunch of functions for handling common AJAX events
7
- jQuery.each( [
8
- "ajaxStart",
9
- "ajaxStop",
10
- "ajaxComplete",
11
- "ajaxError",
12
- "ajaxSuccess",
13
- "ajaxSend"
14
- ], function( i, type ) {
15
- jQuery.fn[ type ] = function( fn ) {
16
- return this.on( type, fn );
17
- };
18
- } );
19
-
20
- } );
@@ -1,25 +0,0 @@
1
- define( [
2
- "../core",
3
- "../event"
4
- ], function( jQuery ) {
5
-
6
- jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
7
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
8
- "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
9
- function( i, name ) {
10
-
11
- // Handle event binding
12
- jQuery.fn[ name ] = function( data, fn ) {
13
- return arguments.length > 0 ?
14
- this.on( name, null, data, fn ) :
15
- this.trigger( name );
16
- };
17
- } );
18
-
19
- jQuery.fn.extend( {
20
- hover: function( fnOver, fnOut ) {
21
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
22
- }
23
- } );
24
-
25
- } );
@@ -1,28 +0,0 @@
1
- define( [
2
- "../var/document",
3
- "../var/support"
4
- ], function( document, support ) {
5
-
6
- ( function() {
7
- var i, eventName,
8
- div = document.createElement( "div" );
9
-
10
- // Support: IE<9 (lack submit/change bubble), Firefox (lack focus(in | out) events)
11
- for ( i in { submit: true, change: true, focusin: true } ) {
12
- eventName = "on" + i;
13
-
14
- if ( !( support[ i ] = eventName in window ) ) {
15
-
16
- // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
17
- div.setAttribute( eventName, "t" );
18
- support[ i ] = div.attributes[ eventName ].expando === false;
19
- }
20
- }
21
-
22
- // Null elements to avoid leaks in IE.
23
- div = null;
24
- } )();
25
-
26
- return support;
27
-
28
- } );