polaris_view_helpers 2.0.3 → 2.0.4

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
  SHA256:
3
- metadata.gz: f9d336bf1c85f52bf5580e159bb22c7a467ed2ee9493d5ce676508d63eef0c42
4
- data.tar.gz: b1e5157a14ec24bff7e74d78625c2e38e6de30e25e30446a7a8a210cb8d16f99
3
+ metadata.gz: 29767236ea2ef7d5d499ef3af2dedb8c2f7f44eedb29837ba8fdeccb32efb8d3
4
+ data.tar.gz: 06e28b56c55bc6824a03eee6634b2e09924bd070834e144df63c15d10ef6709d
5
5
  SHA512:
6
- metadata.gz: '03597b30aac78ce0b010ac7def7802c66fe1cf072e13fff269024bd329cc387ee0669c730468efae684774c90e8b1b3ee604985852e535b12b5cfc9bb1da492b'
7
- data.tar.gz: 4ef04b7e31ea1ffaf1d0634fb897c7325c8eba28bd54c44a12e0e4c053af291aff5fa39df820496153469d9b9fa9d5fba9007b92d09dd17f99d80a22f6bd0375
6
+ metadata.gz: e208bdb84a54eb926482cb450b6ffb58e9724d9ba4c0337407e73a60acded44cba2dce91e173b4a8eb09fb193c122a0d4a37188c6e4c0dfb37d68722ad4ed7e1
7
+ data.tar.gz: 9e23b5bfefcd9ea2255e9edc6f44cdc5c705d88cb976c04d8478fdf2b951b74e6b940da55d125d5abb1a0f5923364f2ddf69fec8c5e2b8f034bb41df2fb77e21
@@ -2,8 +2,15 @@
2
2
  <div class="Polaris-ShadowBevel <%= extra_class %>" style="--pc-shadow-bevel-z-index: 32; --pc-shadow-bevel-content-xs: &quot;&quot;; --pc-shadow-bevel-box-shadow-xs: var(--p-shadow-100); --pc-shadow-bevel-border-radius-xs: var(--p-border-radius-300);">
3
3
  <div class="Polaris-Box" style="--pc-box-background:var(--p-color-bg-surface);--pc-box-min-height:100%;--pc-box-overflow-x:clip;--pc-box-overflow-y:clip;--pc-box-padding-block-start-xs:var(--p-space-400);--pc-box-padding-block-end-xs:var(--p-space-400);--pc-box-padding-inline-start-xs:var(--p-space-400);--pc-box-padding-inline-end-xs:var(--p-space-400)">
4
4
  <% if heading.present? %>
5
- <h2 class="Polaris-Text--root Polaris-Text--headingSm"><%= heading %></h2>
6
5
  <% body_style = "--pc-box-padding-block-start-xs:var(--p-space-200)" %>
6
+ <div class="Polaris-BlockStack" style="--pc-block-stack-order:column;--pc-block-stack-gap-xs:var(--p-space-200)">
7
+ <div class="Polaris-InlineGrid" style="--pc-inline-grid-grid-template-columns-xs:1fr auto">
8
+ <h2 class="Polaris-Text--root Polaris-Text--headingSm"><%= heading %></h2>
9
+ <% if heading_actions.present? %>
10
+ <%= heading_actions %>
11
+ <% end %>
12
+ </div>
13
+ </div>
7
14
  <% end %>
8
15
  <div class="Polaris-Box" style="<%= body_style %>">
9
16
  <%= capture(&block) %>
@@ -1,3 +1,3 @@
1
- <%= link_to link_destination, data: {method: method, confirm: confirm}, class: "Polaris-Link", target: target, 'data-polaris-unstyled': true do %>
1
+ <%= link_to link_destination, data: {method: method, confirm: confirm}, class: "Polaris-Link #{additional_classes}", target: target, 'data-polaris-unstyled': true do %>
2
2
  <%= name || capture(&block) %>
3
3
  <% end %>
@@ -230,7 +230,7 @@ module PolarisViewHelpers
230
230
 
231
231
  additional_classes = ""
232
232
  (button_options[:modifiers] || []).each do |modifier|
233
- additional_classes += "Polaris-Button--#{modifier} "
233
+ additional_classes += "Polaris-Link--#{modifier} "
234
234
  end
235
235
  render(
236
236
  partial: 'polaris/link_to',
@@ -429,10 +429,10 @@ module PolarisViewHelpers
429
429
  )
430
430
  end
431
431
 
432
- def polaris_card(heading = nil, footer: nil, extra_class: "", &block)
432
+ def polaris_card(heading = nil, footer: nil, extra_class: "", heading_actions: nil, &block)
433
433
  render(
434
434
  partial: 'polaris/card',
435
- locals: { block: block, heading: heading, footer: footer, extra_class: extra_class }
435
+ locals: { block: block, heading: heading, footer: footer, extra_class: extra_class, heading_actions: heading_actions }
436
436
  )
437
437
  end
438
438
 
@@ -1,3 +1,3 @@
1
1
  module PolarisViewHelpers
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
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: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green