polaris_view_helpers 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb12624e996ccae2b948c740dec7011d168d4b3ea46e5dd567b8d06a305e96ee
4
- data.tar.gz: d135eed9205370dcd85a2ff8a04c37745782ef1dbfe95b0e6c95c8f504e1cf4a
3
+ metadata.gz: fac9689210b6815bf6ad86a7e7b58a15b45adb1b201c53f6d942c4fdac7e04b6
4
+ data.tar.gz: da09acc4db0ed923fc852afda548f822de4e0a5f8d45e77b30527434f6d3a677
5
5
  SHA512:
6
- metadata.gz: 3d3e356d5c52a868287ae6a22c8237447abd9c66c83dea5b2d07159db6c208b1610962d37bcad428c04cd34216b9c9deaef6ce9014d617e79f62a819ba633185
7
- data.tar.gz: 2ca927e3baaecb3716f941d45bb6eb1f62de2489a51b93e1a680e4722d8b048280c5f689ed7f18e7e238307556b76d35b4340e90fbfc1da840da983a80150797
6
+ metadata.gz: 7e1b3d57a06acf391d06116121a9555601adc51fd21ef537c9f5fe7d0ad19fb8d9841868f88c12b8ad9f63286d8dd3fee273e3842812fcddb1f6449dc822b8e8
7
+ data.tar.gz: 111b283d891c7d803b9e6f40eb7eaca8044f633901024bc566dba3a4157cd8d230c4d7c1d33e551b53a0783f53751ecc6261277152b8049d524f28a0fcc63293
@@ -10,7 +10,7 @@
10
10
  <label class="Polaris-Choice" for="<%= inputname %>">
11
11
  <span class="Polaris-Choice__Control">
12
12
  <span class="Polaris-RadioButton">
13
- <%= form.radio_button attribute, choice[:value], checked: selected == choice[:value], class: 'Polaris-RadioButton__Input', id: inputname %>
13
+ <%= form.radio_button attribute, choice[:value], checked: selected == choice[:value], class: 'Polaris-RadioButton__Input', id: inputname, data: data %>
14
14
  <span class="Polaris-RadioButton__Backdrop"></span>
15
15
  <span class="Polaris-RadioButton__Icon"></span>
16
16
  </span>
@@ -14,7 +14,7 @@ module PolarisViewHelpers
14
14
  "pri-#{SecureRandom.hex(8)}"
15
15
  end
16
16
 
17
- def polaris_choice_list(form:, attribute:, title:, selected:, choices:)
17
+ def polaris_choice_list(form:, attribute:, title:, selected:, choices:, data:)
18
18
  render(
19
19
  partial: 'polaris/choice_list',
20
20
  locals: {
@@ -22,7 +22,8 @@ module PolarisViewHelpers
22
22
  attribute: attribute,
23
23
  title: title,
24
24
  selected: selected,
25
- choices: choices
25
+ choices: choices,
26
+ data: data
26
27
  }
27
28
  )
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module PolarisViewHelpers
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polaris_view_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails