polaris_view_helpers 0.0.11 → 0.0.12

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
  SHA1:
3
- metadata.gz: 33973c64aa10c6e08fbe3419378a0db415545b78
4
- data.tar.gz: 37e8a110adcf35b0316282bf246d1c56e58d7db7
3
+ metadata.gz: 99822b84f21bd0ab07ce07a96f28c95668e7d3af
4
+ data.tar.gz: 648fa5c352c05af56b308390fbf6773430da6582
5
5
  SHA512:
6
- metadata.gz: dd20cefd1bfc89535314c16fd2a8aee955f251a32b53bc876304feb0440d837592c83a08228ee5cb48c7522cf8c378dd371a4691b179dc58ed6c383a565618e8
7
- data.tar.gz: 9159a21538d0d8cfa38716d769cfd75488021b9222ca70b1645a9799641390728904f4bc6b68f76ebd9867737b2bc45854f7a692e65cccd4412c7fa337bcd82c
6
+ metadata.gz: 00723c3c298df1d02fc7f9b1d296f91cfaab34da3ab19a3b2a2633ec62e3b1c1bd81e3264b75fa3a3a1c610bcce3f3b0e11ba422de2f2142e36fedf988196c7b
7
+ data.tar.gz: 92f2a21197993be290060a6b0519c7a670e041a37879a93eb7917ca40c90aa4d446d6343aa7ead5306d833e11e2b42eb923983e60076d1ac3264fe60d7e60d02
@@ -7,4 +7,9 @@
7
7
  <div class="Polaris-Card__Section">
8
8
  <%= capture(&block) %>
9
9
  </div>
10
+ <% if footer.present? %>
11
+ <div class="Polaris-Card__Footer">
12
+ <%= footer %>
13
+ </div>
14
+ <% end %>
10
15
  </div>
@@ -0,0 +1 @@
1
+ <h3 class="Polaris-Subheading"><%= title %></h3>
@@ -26,6 +26,13 @@ module PolarisViewHelpers
26
26
  )
27
27
  end
28
28
 
29
+ def polaris_sub_heading(title)
30
+ render(
31
+ partial: 'polaris/sub_heading',
32
+ locals: { title: title }
33
+ )
34
+ end
35
+
29
36
  def polaris_page_content(&block)
30
37
  render(
31
38
  partial: 'polaris/page_content',
@@ -308,10 +315,10 @@ module PolarisViewHelpers
308
315
  )
309
316
  end
310
317
 
311
- def polaris_card(heading = nil, &block)
318
+ def polaris_card(heading = nil, footer: nil, &block)
312
319
  render(
313
320
  partial: 'polaris/card',
314
- locals: { block: block, heading: heading }
321
+ locals: { block: block, heading: heading, footer: footer }
315
322
  )
316
323
  end
317
324
 
@@ -1,3 +1,3 @@
1
1
  module PolarisViewHelpers
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polaris_view_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green
@@ -74,6 +74,7 @@ files:
74
74
  - app/views/polaris/_page_header.html.erb
75
75
  - app/views/polaris/_resource_list.html.erb
76
76
  - app/views/polaris/_resource_list_item.html.erb
77
+ - app/views/polaris/_sub_heading.html.erb
77
78
  - app/views/polaris/_tab.html.erb
78
79
  - app/views/polaris/_tabs.html.erb
79
80
  - app/views/polaris/_text_field.html.erb