polaris_view_helpers 1.2.2 → 1.2.3

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: 2448ca1ba9913f0413b03ce27ccdfd1ff34833553aa15d4838cdd5d3d244a4d8
4
- data.tar.gz: 7b2676af21a0c093426358fa11deee64bc016df35c42a06177365690484cf3ca
3
+ metadata.gz: f786656493851934fb2c1f456cd64332868dd60af80c58e1de477b933e04c66f
4
+ data.tar.gz: 56873f891eff5f5b1abb89cdb6a253b22e4c4b820f450e14088a595f190e4080
5
5
  SHA512:
6
- metadata.gz: 196f046e44331e62f4403c254846e4244e93f828c62b044031ab03315b2cbbcb5cdaea4e1a6edec823d1bbb16a9891747a79e2b5bafbda942b456bbccb585664
7
- data.tar.gz: ccec7561b62e3e6b2fae3edbeb0d07a547582ce5d88c4dd7c3597ea714602866782c6d85341ca4a1617c3a45ca2137cc696ac829589a65cdc5fa1ad5438f0af8
6
+ metadata.gz: 06d28595b7ea6cdc6543fc409949c3f988f1658f797064db4558327e5cb795b02b3332abca414449f4bc6547dc68c6f55ed22304ab2fd7439c9c036a95b627e9
7
+ data.tar.gz: eadcdc517f77c89b99451e3554687b55666cf18ce6390e6d5473b9c908bb4fb5a215a45ed96c12024c9fd7290725c416b55a41083fbaa79b4f71d7aeb316f15d
@@ -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 %>
@@ -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.2"
2
+ VERSION = "1.2.3"
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.2
4
+ version: 1.2.3
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-02 00:00:00.000000000 Z
11
+ date: 2022-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails