katalyst-govuk-formbuilder 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -0
  3. data/app/assets/builds/katalyst/govuk/formbuilder.css +58 -5
  4. data/app/assets/builds/katalyst/govuk/formbuilder.js +98 -64
  5. data/app/assets/builds/katalyst/govuk/formbuilder.min.js +1 -1
  6. data/app/assets/stylesheets/katalyst/govuk/components/richtextarea/_index.scss +7 -6
  7. data/lib/katalyst/govuk/formbuilder/version.rb +1 -1
  8. data/vendor/assets/stylesheets/govuk-frontend/govuk/all-ie8.scss +8 -0
  9. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/accordion/_index.scss +3 -3
  10. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/back-link/_index.scss +1 -1
  11. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/breadcrumbs/_index.scss +1 -1
  12. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/button/_index.scss +8 -6
  13. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -6
  14. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/file-upload/_index.scss +6 -1
  15. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/footer/_index.scss +0 -7
  16. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/input/_index.scss +15 -3
  17. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/radios/_index.scss +5 -5
  18. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/select/_index.scss +7 -1
  19. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/tag/_index.scss +18 -18
  20. data/vendor/assets/stylesheets/govuk-frontend/govuk/components/textarea/_index.scss +8 -1
  21. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_all.scss +1 -0
  22. data/vendor/assets/stylesheets/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
  23. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_colour.scss +5 -2
  24. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  25. data/vendor/assets/stylesheets/govuk-frontend/govuk/helpers/_font-faces.scss +1 -1
  26. data/vendor/assets/stylesheets/govuk-frontend/govuk/objects/_width-container.scss +1 -1
  27. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_colours-organisations.scss +4 -0
  28. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_ie8.scss +16 -0
  29. data/vendor/assets/stylesheets/govuk-frontend/govuk/settings/_links.scss +5 -1
  30. data/vendor/assets/stylesheets/govuk-frontend/govuk/tools/_ie8.scss +38 -2
  31. metadata +4 -3
@@ -12,7 +12,7 @@
12
12
  /// @access private
13
13
 
14
14
  @mixin _govuk-font-face-gds-transport {
15
- @include govuk-not-ie8 { // In IE8, which cannot render WOFF format, we fall back to system fonts
15
+ @include _govuk-not-ie8 { // In IE8, which cannot render WOFF format, we fall back to system fonts
16
16
  @include govuk-exports("govuk/helpers/font-faces") {
17
17
  @at-root {
18
18
  /*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */ /* stylelint-disable-line scss/comment-no-loud */
@@ -68,7 +68,7 @@
68
68
  }
69
69
  }
70
70
 
71
- @include govuk-if-ie8 {
71
+ @include _govuk-if-ie8 {
72
72
  width: $width;
73
73
  // Since media queries are not supported in IE8,
74
74
  // we need to duplicate this margin that centers the page.
@@ -54,6 +54,10 @@ $govuk-colours-organisations: (
54
54
  colour: #cf102d,
55
55
  colour-websafe: #005ea5
56
56
  ),
57
+ "department-for-business-and-trade": (
58
+ colour: #cf102d,
59
+ colour-websafe: #005ea5
60
+ ),
57
61
  "department-for-levelling-up-housing-and-communities": (
58
62
  colour: #012169,
59
63
  ),
@@ -6,13 +6,29 @@
6
6
  ///
7
7
  /// @type Boolean
8
8
  /// @access public
9
+ /// @deprecated Will be removed in v5.0
9
10
 
10
11
  $govuk-is-ie8: false !default;
11
12
 
13
+ @if $govuk-is-ie8 == true {
14
+ @include _warning(
15
+ ie8,
16
+ "The $govuk-is-ie8 setting is deprecated and will be removed in v5.0."
17
+ );
18
+ }
19
+
12
20
  /// The name of the breakpoint to use as the target when rasterizing media
13
21
  /// queries
14
22
  ///
15
23
  /// @type String
16
24
  /// @access public
25
+ /// @deprecated Will be removed in v5.0
17
26
 
18
27
  $govuk-ie8-breakpoint: desktop !default;
28
+
29
+ @if not $govuk-ie8-breakpoint == desktop {
30
+ @include _warning(
31
+ ie8,
32
+ "The $govuk-ie8-breakpoint setting is deprecated and will be removed in v5.0."
33
+ );
34
+ }
@@ -38,12 +38,16 @@ $govuk-link-underline-thickness: unquote("max(1px, .0625rem)") !default;
38
38
 
39
39
  /// Offset of link underlines from text baseline
40
40
  ///
41
+ /// The default is 3px expressed as ems, as calculated against the default body
42
+ /// font size (on desktop) of 19px.
43
+ /// 3 ÷ 19 = 0.1578
44
+ ///
41
45
  /// Set this variable to `false` to avoid setting an offset.
42
46
  ///
43
47
  /// @type Number
44
48
  /// @access public
45
49
 
46
- $govuk-link-underline-offset: .1em !default;
50
+ $govuk-link-underline-offset: .1578em !default;
47
51
 
48
52
  /// Thickness of link underlines in hover state
49
53
  ///
@@ -1,7 +1,20 @@
1
+ @import "../settings/warnings";
2
+
1
3
  ////
2
4
  /// @group tools/internet-explorer-8
3
5
  ////
4
6
 
7
+ /// A private version of the govuk-if-ie8 mixin to avoid deprecation
8
+ /// warnings where we use it internally
9
+ ///
10
+ /// @access private
11
+
12
+ @mixin _govuk-if-ie8 {
13
+ @if $govuk-is-ie8 {
14
+ @content;
15
+ }
16
+ }
17
+
5
18
  /// Conditionally include rules only for IE8
6
19
  ///
7
20
  /// @content Passed content is only outputted if we're compiling a stylesheet
@@ -18,9 +31,26 @@
18
31
  /// }
19
32
  ///
20
33
  /// @access public
34
+ /// @deprecated Will be removed in v5.0
21
35
 
22
36
  @mixin govuk-if-ie8 {
23
- @if $govuk-is-ie8 {
37
+ @include _warning(
38
+ ie8,
39
+ "The govuk-if-ie8 mixin is deprecated and will be removed in v5.0."
40
+ );
41
+
42
+ @include _govuk-if-ie8 {
43
+ @content;
44
+ }
45
+ }
46
+
47
+ /// A private version of the govuk-not-ie8 mixin to avoid deprecation
48
+ /// warnings where we use it internally
49
+ ///
50
+ /// @access private
51
+
52
+ @mixin _govuk-not-ie8 {
53
+ @if not $govuk-is-ie8 {
24
54
  @content;
25
55
  }
26
56
  }
@@ -43,9 +73,15 @@
43
73
  /// }
44
74
  ///
45
75
  /// @access public
76
+ /// @deprecated Will be removed in v5.0
46
77
 
47
78
  @mixin govuk-not-ie8 {
48
- @if not $govuk-is-ie8 {
79
+ @include _warning(
80
+ ie8,
81
+ "The govuk-not-ie8 mixin is deprecated and will be removed in v5.0."
82
+ );
83
+
84
+ @include _govuk-not-ie8 {
49
85
  @content;
50
86
  }
51
87
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katalyst-govuk-formbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-27 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder
@@ -117,6 +117,7 @@ files:
117
117
  - vendor/assets/stylesheets/govuk-frontend/govuk/components/warning-text/_warning-text.scss
118
118
  - vendor/assets/stylesheets/govuk-frontend/govuk/core/_all.scss
119
119
  - vendor/assets/stylesheets/govuk-frontend/govuk/core/_global-styles.scss
120
+ - vendor/assets/stylesheets/govuk-frontend/govuk/core/_govuk-frontend-version.scss
120
121
  - vendor/assets/stylesheets/govuk-frontend/govuk/core/_links.scss
121
122
  - vendor/assets/stylesheets/govuk-frontend/govuk/core/_lists.scss
122
123
  - vendor/assets/stylesheets/govuk-frontend/govuk/core/_section-break.scss
@@ -195,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
196
  - !ruby/object:Gem::Version
196
197
  version: '0'
197
198
  requirements: []
198
- rubygems_version: 3.3.7
199
+ rubygems_version: 3.4.12
199
200
  signing_key:
200
201
  specification_version: 4
201
202
  summary: Repackaging of UK.GOV forms for Rails 7 asset pipeline