polaris_view_helpers 1.2.1 → 1.2.4

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: 933d5eb4f300ae18e44f4dd9a4f657f5bbca03958c07dc6f516af1df01011352
4
- data.tar.gz: f838780385afd14109c281b2fd2b90397258d52345e73f91f65e5b56144e577c
3
+ metadata.gz: bb12624e996ccae2b948c740dec7011d168d4b3ea46e5dd567b8d06a305e96ee
4
+ data.tar.gz: d135eed9205370dcd85a2ff8a04c37745782ef1dbfe95b0e6c95c8f504e1cf4a
5
5
  SHA512:
6
- metadata.gz: e3e728160dbd233e00d59c5e70bff50c6c71ed799ce90663f9bf1af961a0c11bd55ba1c99cb7e250613cb38be8f89715d5689de1651431afd8d15f08d6a53d42
7
- data.tar.gz: d57016f25a73deb6ee64ab5dbd20ed27bbe962d95ad2e9b73cc6047446cce4d8fd92a09a46a82742c36b0f3d578066eb186fb6ff764822363891a576ac6b5003
6
+ metadata.gz: 3d3e356d5c52a868287ae6a22c8237447abd9c66c83dea5b2d07159db6c208b1610962d37bcad428c04cd34216b9c9deaef6ce9014d617e79f62a819ba633185
7
+ data.tar.gz: 2ca927e3baaecb3716f941d45bb6eb1f62de2489a51b93e1a680e4722d8b048280c5f689ed7f18e7e238307556b76d35b4340e90fbfc1da840da983a80150797
@@ -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 %>
@@ -1,3 +1,4 @@
1
- <%= button_tag type: type, class: "Polaris-Button #{additional_classes}" do %>
1
+ <% data ||= nil %>
2
+ <%= button_tag type: type, class: "Polaris-Button #{additional_classes}", data: data do %>
2
3
  <span class="Polaris-Button__Content"><span><%= name %></span></span>
3
4
  <% end %>
@@ -1,7 +1,7 @@
1
1
  <div class="Polaris-FooterHelp">
2
2
  <div class="Polaris-FooterHelp__Content">
3
3
  <div class="Polaris-FooterHelp__Icon">
4
- <span class="Polaris-Icon Polaris-Icon--colorTeal Polaris-Icon--hasBackdropNo">
4
+ <span class="Polaris-Icon Polaris-Icon--colorHighlight Polaris-Icon--applyColor">
5
5
  <svg role="img" class="Polaris-Icon__Svg" aria-labelledby="next-help-f4f13b47b896c4e3dda071982d260af5-title">
6
6
  <title id="next-help-f4f13b47b896c4e3dda071982d260af5-title">Help</title>
7
7
  <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#<%= icon %>">
@@ -14,5 +14,3 @@
14
14
  </div>
15
15
  </div>
16
16
  </div>
17
-
18
-
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
  <% end %>
11
11
  <div class="Polaris-TextField">
12
- <%= form.send element_type, att, id: "#{form.object.class.name.tableize.singularize}_#{att}", class: "Polaris-TextField__Input", placeholder: options[:placeholder], value: options[:value] || form.object&.send(att) %>
12
+ <%= form.send element_type, att, id: "#{form.object.class.name.tableize.singularize}_#{att}", class: "Polaris-TextField__Input", placeholder: options[:placeholder], value: (options[:value] || form.object&.send(att)), data: options[:data] %>
13
13
  <div class="Polaris-TextField__Backdrop"></div>
14
14
  </div>
15
15
  </div>
@@ -1,3 +1,3 @@
1
1
  module PolarisViewHelpers
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.4"
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.1
4
+ version: 1.2.4
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-02-01 00:00:00.000000000 Z
11
+ date: 2022-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails