polaris_view_helpers 1.2.3 → 1.2.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46cd622157363c15517ca72ff25f31f0b8e367eb4361731f0c44986b7ac2c8e3
|
4
|
+
data.tar.gz: 025d9ed58d39159178756d5782168d08f47b971476deb833140d4ac22aaca0c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db32e6f2701c228dfc9cfd40c2a48e3b0df61cf857c1d0194f084ad6dd003617853a49d5699e33f187fb49305f1804622b358c2dae665c525438d2d24280023a
|
7
|
+
data.tar.gz: d047d380428ab62c1346c8e0e929b64b6dc8aae2984cb2678babaa30dd6647b8f33698cc4b62f1f0a47514aafe8caf4a02abce73023d7ef3b0612939026904c8
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= link_to link_destination, data: { method: method, remote: remote }, confirm: confirm, class: "Polaris-Button #{additional_classes}", 'data-polaris-unstyled': true do %>
|
1
|
+
<%= link_to link_destination, data: { method: method, remote: remote }, confirm: confirm, class: "Polaris-Button #{additional_classes}", target: target, 'data-polaris-unstyled': true do %>
|
2
2
|
<span class="Polaris-Button__Content"><span><%= name || capture(&block) %></span></span>
|
3
3
|
<% end %>
|
@@ -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: nil)
|
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
|
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
|
+
version: 1.2.6
|
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-
|
11
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|