katalyst-govuk-formbuilder 1.9.0 → 1.9.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1410f1442239fc641fda6da3021a483bca381b9057d18bfe10b6ec35684944fd
4
- data.tar.gz: 9c0b30c979e992dc9438ef0e3abbf033569059843545245970cd05b80a66425d
3
+ metadata.gz: f2232e16e720462bee65e4a8d1ddba9ede8974f53f75e66bf661d5ea0045c944
4
+ data.tar.gz: c8a115ad8e584186287020026a6a6c89a8fc2cf2dce42759e25c78557476af7c
5
5
  SHA512:
6
- metadata.gz: a8cbc04a855e37fe7f1e4f8d665dc8337eaa1e69d614b913c0c64b1f0c0454535ebb43e5ecc6d4bb140daca4486a4bb4d96bf51cedf05af103c16bc8a15f5811
7
- data.tar.gz: 4ba3bc8e477227905bac144c46ec69cac954cacf882834046990eb40fc626ba23f99cc8fcbbe0158450b30639c82ce905ce019e6d754c87cd3ffc5cdda90fed1
6
+ metadata.gz: e11a027b4dbcca03a96ed12a2920ae8754227ff6ad20823516a6f264340ef48d0ba0bf6443db1608fe9ba1cab26a90ff947182e234c58273bd7e5e6b1ee324f3
7
+ data.tar.gz: 4e906bfa116d0725a2bce118d46ee5ed48add3532722d924b6815e37374421e5b8d4d9bf91928bcddb2c63236ac0fd7d2d105cb6f104dc7494e8196c0ffc8979
@@ -43,7 +43,7 @@
43
43
 
44
44
 
45
45
  :root {
46
- --govuk-frontend-version: "5.3.0";
46
+ --govuk-frontend-version: "5.3.1";
47
47
  --govuk-frontend-breakpoint-mobile: 20rem;
48
48
  --govuk-frontend-breakpoint-tablet: 40.0625rem;
49
49
  --govuk-frontend-breakpoint-desktop: 48.0625rem;
@@ -1160,7 +1160,7 @@ class Checkboxes extends GOVUKFrontendComponent {
1160
1160
  return;
1161
1161
  }
1162
1162
  const $target = document.getElementById(targetId);
1163
- if ($target && $target.classList.contains('govuk-checkboxes__conditional')) {
1163
+ if ($target != null && $target.classList.contains('govuk-checkboxes__conditional')) {
1164
1164
  const inputIsChecked = $input.checked;
1165
1165
  $input.setAttribute('aria-expanded', inputIsChecked.toString());
1166
1166
  $target.classList.toggle('govuk-checkboxes__conditional--hidden', !inputIsChecked);
@@ -37,7 +37,7 @@ class b extends m{constructor(e,s={}){if(super(),this.$module=void 0,this.config
37
37
  *
38
38
  * @preserve
39
39
  */
40
- class $ extends m{constructor(e){if(super(),this.$module=void 0,this.$inputs=void 0,!(e instanceof HTMLElement))throw new d({componentName:"Checkboxes",element:e,identifier:"Root element (`$module`)"});const t=e.querySelectorAll('input[type="checkbox"]');if(!t.length)throw new d({componentName:"Checkboxes",identifier:'Form inputs (`<input type="checkbox">`)'});this.$module=e,this.$inputs=t,this.$inputs.forEach((e=>{const t=e.getAttribute("data-aria-controls");if(t){if(!document.getElementById(t))throw new d({componentName:"Checkboxes",identifier:`Conditional reveal (\`id="${t}"\`)`});e.setAttribute("aria-controls",t),e.removeAttribute("data-aria-controls")}})),window.addEventListener("pageshow",(()=>this.syncAllConditionalReveals())),this.syncAllConditionalReveals(),this.$module.addEventListener("click",(e=>this.handleClick(e)))}syncAllConditionalReveals(){this.$inputs.forEach((e=>this.syncConditionalRevealWithInputState(e)))}syncConditionalRevealWithInputState(e){const t=e.getAttribute("aria-controls");if(!t)return;const s=document.getElementById(t);if(s&&s.classList.contains("govuk-checkboxes__conditional")){const t=e.checked;e.setAttribute("aria-expanded",t.toString()),s.classList.toggle("govuk-checkboxes__conditional--hidden",!t)}}unCheckAllInputsExcept(e){document.querySelectorAll(`input[type="checkbox"][name="${e.name}"]`).forEach((t=>{e.form===t.form&&t!==e&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))}))}unCheckExclusiveInputs(e){document.querySelectorAll(`input[data-behaviour="exclusive"][type="checkbox"][name="${e.name}"]`).forEach((t=>{e.form===t.form&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))}))}handleClick(e){const t=e.target;if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type)return;if(t.getAttribute("aria-controls")&&this.syncConditionalRevealWithInputState(t),!t.checked)return;"exclusive"===t.getAttribute("data-behaviour")?this.unCheckAllInputsExcept(t):this.unCheckExclusiveInputs(t)}}$.moduleName="govuk-checkboxes";
40
+ class $ extends m{constructor(e){if(super(),this.$module=void 0,this.$inputs=void 0,!(e instanceof HTMLElement))throw new d({componentName:"Checkboxes",element:e,identifier:"Root element (`$module`)"});const t=e.querySelectorAll('input[type="checkbox"]');if(!t.length)throw new d({componentName:"Checkboxes",identifier:'Form inputs (`<input type="checkbox">`)'});this.$module=e,this.$inputs=t,this.$inputs.forEach((e=>{const t=e.getAttribute("data-aria-controls");if(t){if(!document.getElementById(t))throw new d({componentName:"Checkboxes",identifier:`Conditional reveal (\`id="${t}"\`)`});e.setAttribute("aria-controls",t),e.removeAttribute("data-aria-controls")}})),window.addEventListener("pageshow",(()=>this.syncAllConditionalReveals())),this.syncAllConditionalReveals(),this.$module.addEventListener("click",(e=>this.handleClick(e)))}syncAllConditionalReveals(){this.$inputs.forEach((e=>this.syncConditionalRevealWithInputState(e)))}syncConditionalRevealWithInputState(e){const t=e.getAttribute("aria-controls");if(!t)return;const s=document.getElementById(t);if(null!=s&&s.classList.contains("govuk-checkboxes__conditional")){const t=e.checked;e.setAttribute("aria-expanded",t.toString()),s.classList.toggle("govuk-checkboxes__conditional--hidden",!t)}}unCheckAllInputsExcept(e){document.querySelectorAll(`input[type="checkbox"][name="${e.name}"]`).forEach((t=>{e.form===t.form&&t!==e&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))}))}unCheckExclusiveInputs(e){document.querySelectorAll(`input[data-behaviour="exclusive"][type="checkbox"][name="${e.name}"]`).forEach((t=>{e.form===t.form&&(t.checked=!1,this.syncConditionalRevealWithInputState(t))}))}handleClick(e){const t=e.target;if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type)return;if(t.getAttribute("aria-controls")&&this.syncConditionalRevealWithInputState(t),!t.checked)return;"exclusive"===t.getAttribute("data-behaviour")?this.unCheckAllInputsExcept(t):this.unCheckExclusiveInputs(t)}}$.moduleName="govuk-checkboxes";
41
41
  /**
42
42
  * Error summary component
43
43
  *
@@ -11,7 +11,7 @@
11
11
  // when user changes colours in their browser.
12
12
  border-bottom: $border-bottom-width solid transparent;
13
13
 
14
- background-color: govuk-colour("light-grey");
14
+ background-color: $govuk-canvas-background-colour;
15
15
  }
16
16
 
17
17
  // Support older browsers which don't hide elements with the `hidden` attribute
@@ -20,7 +20,7 @@
20
20
  // IE 11 and Microsoft Edge comes with its own password reveal function. We want to hide it,
21
21
  // so that there aren't two controls presented to the user that do the same thing but aren't in
22
22
  // sync with one another. This doesn't affect the function that allows Edge users to toggle
23
- // password visibility by pressing Alt+F8, which cannot be programatically disabled.
23
+ // password visibility by pressing Alt+F8, which cannot be programmatically disabled.
24
24
  &::-ms-reveal {
25
25
  display: none;
26
26
  }
@@ -41,7 +41,6 @@
41
41
  @include govuk-media-query($from: mobile) {
42
42
  // Buttons are normally 100% width on this breakpoint, but we don't want that in this case
43
43
  width: auto;
44
- flex-grow: 1;
45
44
  flex-shrink: 0;
46
45
  flex-basis: 5em;
47
46
 
@@ -27,6 +27,7 @@
27
27
 
28
28
  // Undo unwanted changes when global styles are enabled
29
29
  @if $govuk-global-styles {
30
+ @include govuk-link-decoration;
30
31
  box-shadow: none;
31
32
  }
32
33
  }
@@ -27,11 +27,11 @@
27
27
 
28
28
  // When a user customises their colours the background colour will often be removed.
29
29
  // Adding a border to the component keeps it's shape as a circle.
30
- border: 3px solid govuk-colour("black");
30
+ border: 3px solid $govuk-text-colour;
31
31
  border-radius: 50%;
32
32
 
33
- color: govuk-colour("white");
34
- background: govuk-colour("black");
33
+ color: $govuk-body-background-colour;
34
+ background: $govuk-text-colour;
35
35
 
36
36
  font-size: 30px;
37
37
  line-height: 29px;
@@ -1,7 +1,7 @@
1
1
  :root {
2
2
  // This variable is automatically overwritten during builds and releases.
3
3
  // It doesn't need to be updated manually.
4
- --govuk-frontend-version: "5.3.0";
4
+ --govuk-frontend-version: "5.3.1";
5
5
 
6
6
  // CSS custom property for each breakpoint
7
7
  @each $name, $value in $govuk-breakpoints {
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.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katalyst Interactive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-04 00:00:00.000000000 Z
11
+ date: 2024-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_design_system_formbuilder
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  requirements: []
199
- rubygems_version: 3.4.19
199
+ rubygems_version: 3.5.9
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: Repackaging of UK.GOV forms for Rails 7 asset pipeline