swedbank-pay-design-guide-jekyll-theme 2.3.2 → 2.3.3

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: e3e11577988c170748250137367dab28347a3beda7a694254893601b804ebbbb
4
- data.tar.gz: 69d1ea4d3deb421b0a94ab64d1cc6d26c8acaa881a2be581d579e0adbc083eb7
3
+ metadata.gz: 2b377ebc5fc106ce10c4d66d44c996f4c101d434964dd81c83efc9b4b59de14b
4
+ data.tar.gz: 9a7c47b004ab7765def30a96b7c284841c41a802ed30b47b3e23e8a46f5141fe
5
5
  SHA512:
6
- metadata.gz: a7c5d09d445624458cb1e8a16a0ffee8644c6910d9b30d2f7abc0c641a5302cc2c5224d5dea2ac67565e4497669e403eb4c0d8dbe4dcd20e1fc6530c39229375
7
- data.tar.gz: b9d1aa1631acb5f6597726c1fe09689fb2722699a78014bc5ee2ac8c5927f66a815d065b857132c3648add032df45d1bf775d308761c36305ea52fbaaf236b92
6
+ metadata.gz: 11dbbfd08091c20f722f4bed278cd508e99ff6dcd356edbe824f4eaeb07f266c89e78d0cd9cdff68f93852dc55a455c7c75f93b18faf6769b274b05abae849ee
7
+ data.tar.gz: cb5fb2f7671c913c3fe750d38b3b36087045cc98a199fc9b66db7f7a56c75aae8f02ac6e1705c3fc36a6d8c4c90bbd7e9f9c36fd96cdd74935cae9cf34cf282d
@@ -1,11 +1,22 @@
1
+ {%- comment -%}
2
+ **Parameters
3
+ content(required): What will be displayed inside the accordion when expanded.
4
+ button_expand_text: Text to display on the expand button. If not supplied the text 'Show fields' will be used.
5
+ button_collapse_text: Text to display on the collapse button. If not supplied the text 'Hide fields' will be used.
6
+ accordion_id: Id of the accordion. If not supplied 'accordion-1' will be used.
7
+ {%- endcomment -%}
8
+
1
9
  {% assign content = include.content | markdownify%}
10
+ {% assign accordion_id = include.accordion_id | default: 'accordion-1' %}
11
+ {% assign button_collapse_text = include.button_collapse_text | default: 'Hide fields'%}
12
+ {% assign button_expand_text = include.button_expand_text | default: 'Show fields'%}
2
13
 
3
14
  <div class="accordion">
4
- <button type="button" class="accordion-header" aria-expanded="false" aria-controls="exp-1">
5
- <span class="mr-3 show">Show fields</span>
6
- <span class="mr-3 hide">Hide fields</span>
15
+ <button type="button" class="accordion-header" aria-expanded="false" aria-controls="{{accordion_id}}">
16
+ <span class="mr-3 show">{{button_expand_text}}</span>
17
+ <span class="mr-3 hide">{{button_collapse_text}}</span>
7
18
  </button>
8
- <div class="accordion-body" id="exp-1">
19
+ <div class="accordion-body" id="{{accordion_id}}">
9
20
  {{ content }}
10
21
  </div>
11
- </div>
22
+ </div>
data/lib/gem_version.rb CHANGED
@@ -4,7 +4,7 @@ module Gem
4
4
  # Gem Specification
5
5
  class Specification
6
6
  def self.gem_version
7
- '2.3.2'
7
+ '2.3.3'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swedbank-pay-design-guide-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swedbank Pay
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-17 00:00:00.000000000 Z
11
+ date: 2025-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -380,7 +380,7 @@ dependencies:
380
380
  - - ">="
381
381
  - !ruby/object:Gem::Version
382
382
  version: '0'
383
- description:
383
+ description:
384
384
  email:
385
385
  - opensource@swedbankpay.com
386
386
  executables: []
@@ -491,7 +491,7 @@ metadata:
491
491
  homepage_uri: https://github.com/SwedbankPay/swedbank-pay-design-guide-jekyll-theme
492
492
  source_code_uri: https://github.com/SwedbankPay/swedbank-pay-design-guide-jekyll-theme
493
493
  rubygems_mfa_required: 'true'
494
- post_install_message:
494
+ post_install_message:
495
495
  rdoc_options: []
496
496
  require_paths:
497
497
  - lib
@@ -507,7 +507,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
507
507
  version: '0'
508
508
  requirements: []
509
509
  rubygems_version: 3.1.6
510
- signing_key:
510
+ signing_key:
511
511
  specification_version: 4
512
512
  summary: Swedbank Pay Design Guide theme for Jekyll
513
513
  test_files: []