primer_view_components 0.0.30 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/components/primer/popover_component.rb +19 -2
- data/lib/primer/view_components/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f3b2f2609173d59173576d7bd384ae8902540a1be4434930c9b982d3f86c50c
|
4
|
+
data.tar.gz: 4d0d573d72270fcb808857fa502a9cda31279755dc7859121301e97ea6a1b305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f14ba8ad8f0698e04791c839ac68f1f355c15d37436306c510589c3a67f1197cdc7449ee4301f87b5cecf6f0234c5d704c074ecdc52fd3d5dbad735d9b7bd6c9
|
7
|
+
data.tar.gz: a6b4b86bd72500b3d853a5ca2f68a14b76188a6e219b33f091d992f509772dd7f0e707d1a609b2a8ff4e382f6237104b4423c5ba9bec6ca8a0b0cf8c7822417a
|
data/CHANGELOG.md
CHANGED
@@ -54,7 +54,7 @@ module Primer
|
|
54
54
|
|
55
55
|
# This is a hack to allow the parent to set the slot's content
|
56
56
|
@body_arguments = system_arguments
|
57
|
-
block&.call
|
57
|
+
view_context.capture { block&.call }
|
58
58
|
}
|
59
59
|
|
60
60
|
# @example Default
|
@@ -83,7 +83,24 @@ module Primer
|
|
83
83
|
# Activity feed
|
84
84
|
# <% end %>
|
85
85
|
# <% component.body(caret: :left) do %>
|
86
|
-
# This is the
|
86
|
+
# This is the Popover body.
|
87
|
+
# <% end %>
|
88
|
+
# <% end %>
|
89
|
+
#
|
90
|
+
# @example With HTML body
|
91
|
+
# <%= render Primer::PopoverComponent.new do |component| %>
|
92
|
+
# <% component.heading do %>
|
93
|
+
# Activity feed
|
94
|
+
# <% end %>
|
95
|
+
# <% component.body(caret: :left) do %>
|
96
|
+
# <p> This is the Popover body.</p>
|
97
|
+
# <div>
|
98
|
+
# This is using HTML.
|
99
|
+
# <ul>
|
100
|
+
# <li>Thing #1</li>
|
101
|
+
# <li>Thing #2</li>
|
102
|
+
# </ul>
|
103
|
+
# </div>
|
87
104
|
# <% end %>
|
88
105
|
# <% end %>
|
89
106
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octicons_helper
|