primer_view_components 0.0.25 → 0.0.26

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: 2d303c670170b949f527384987b3a08d968a4ecfe53b4f1ac508d3f1d423424f
4
- data.tar.gz: 3c00f64dcaaaf2b0cc85e892fed1e22633020c68ce95b4049c1d33303fa21001
3
+ metadata.gz: ca8de029e2997291254306cb0a863803d46ea5125225e9bf43a313e77b547928
4
+ data.tar.gz: 0c37752e22a84e032203680b747c80a7dc6322a8f91e700ddab846682bd393c1
5
5
  SHA512:
6
- metadata.gz: d2fef39b6fa55cc0c8092f0e616c498bea4db90ad186ba4fec4ed74dd39ba953af20a765410b51020aa2172c8c90d8dc83b646e39d9c693917d0db8e9e5623ed
7
- data.tar.gz: 8ec90b74e4f1bc7c357bfeae55d954632848ae1d150ef91e00703e460d48f6ea726984d4b7d1af27e6907363dd4d027fd76a75ccdb1c20928e7f7f9023956eb1
6
+ metadata.gz: 27e23b261419d94f99ccd6af30e750b63ecdeccb24802a3a49e7b4876846a1674aeff192497ffc3ff6b4b8e8a78727a7b1922d02b1c1d78f07989df2d9759d8f
7
+ data.tar.gz: a106bdae510f0dae72183a7893dbabec0560fe30d8a28dc5250de3293bda8e7efc11c0e26506721c4272c59de0ac62ca911ab1e6b89a2b2c70d5e9a92bb2f23e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## main
4
4
 
5
+ ## 0.0.26
6
+
7
+ * Fix `DetailsComponent` summary always being rendered as a `btn`.
8
+
9
+ *Manuel Puyol*
10
+
11
+ * Promote `BlankslateComponent` and `BaseComponent` to beta status.
12
+
13
+ *Simon Taranto*
14
+
5
15
  ## 0.0.25
6
16
 
7
17
  * Promote `SubheadComponent` to beta.
@@ -119,6 +119,10 @@ module Primer
119
119
  content_tag(@tag, content, @content_tag_args.merge(@result))
120
120
  end
121
121
 
122
+ def self.status
123
+ Primer::Component::STATUSES[:beta]
124
+ end
125
+
122
126
  private
123
127
 
124
128
  def add_test_selector(args)
@@ -130,5 +130,9 @@ module Primer
130
130
  @link_text = link_text
131
131
  @link_url = link_url
132
132
  end
133
+
134
+ def self.status
135
+ Primer::Component::STATUSES[:beta]
136
+ end
133
137
  end
134
138
  end
@@ -16,12 +16,11 @@ module Primer
16
16
  #
17
17
  # @param button [Boolean] Whether to render the Summary as a button or not.
18
18
  # @param kwargs [Hash] The same arguments as <%= link_to_system_arguments_docs %>.
19
- renders_one :summary, lambda { |button = true, **system_arguments|
20
- system_arguments = system_arguments
19
+ renders_one :summary, lambda { |button: true, **system_arguments|
21
20
  system_arguments[:tag] = :summary
22
21
  system_arguments[:role] = "button"
23
22
 
24
- Primer::BaseComponent.new(**system_arguments) unless button
23
+ return Primer::BaseComponent.new(**system_arguments) unless button
25
24
 
26
25
  Primer::ButtonComponent.new(**system_arguments)
27
26
  }
@@ -5,7 +5,7 @@ module Primer
5
5
  module VERSION
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- PATCH = 25
8
+ PATCH = 26
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH].join(".")
11
11
  end
data/static/statuses.json CHANGED
@@ -1 +1 @@
1
- {"Primer::AvatarComponent":"beta","Primer::AvatarStackComponent":"alpha","Primer::BaseComponent":"alpha","Primer::BlankslateComponent":"alpha","Primer::BorderBoxComponent":"beta","Primer::BoxComponent":"stable","Primer::BreadcrumbComponent":"alpha","Primer::BreadcrumbComponent::ItemComponent":"alpha","Primer::ButtonComponent":"alpha","Primer::ButtonGroupComponent":"alpha","Primer::ButtonMarketingComponent":"alpha","Primer::CounterComponent":"beta","Primer::DetailsComponent":"alpha","Primer::Dropdown::MenuComponent":"alpha","Primer::DropdownComponent":"alpha","Primer::DropdownMenuComponent":"deprecated","Primer::FlashComponent":"beta","Primer::FlexComponent":"alpha","Primer::FlexItemComponent":"alpha","Primer::HeadingComponent":"alpha","Primer::LabelComponent":"beta","Primer::LayoutComponent":"alpha","Primer::LinkComponent":"beta","Primer::MarkdownComponent":"alpha","Primer::MenuComponent":"alpha","Primer::OcticonComponent":"beta","Primer::PopoverComponent":"alpha","Primer::ProgressBarComponent":"alpha","Primer::SpinnerComponent":"beta","Primer::StateComponent":"beta","Primer::SubheadComponent":"beta","Primer::TabContainerComponent":"alpha","Primer::TabNavComponent":"alpha","Primer::TabNavComponent::TabComponent":"alpha","Primer::TextComponent":"alpha","Primer::TimelineItemComponent":"alpha","Primer::TimelineItemComponent::BadgeComponent":"alpha","Primer::TooltipComponent":"alpha","Primer::TruncateComponent":"alpha","Primer::UnderlineNavComponent":"alpha"}
1
+ {"Primer::AvatarComponent":"beta","Primer::AvatarStackComponent":"alpha","Primer::BaseComponent":"beta","Primer::BlankslateComponent":"beta","Primer::BorderBoxComponent":"beta","Primer::BoxComponent":"stable","Primer::BreadcrumbComponent":"alpha","Primer::BreadcrumbComponent::ItemComponent":"alpha","Primer::ButtonComponent":"alpha","Primer::ButtonGroupComponent":"alpha","Primer::ButtonMarketingComponent":"alpha","Primer::CounterComponent":"beta","Primer::DetailsComponent":"alpha","Primer::Dropdown::MenuComponent":"alpha","Primer::DropdownComponent":"alpha","Primer::DropdownMenuComponent":"deprecated","Primer::FlashComponent":"beta","Primer::FlexComponent":"alpha","Primer::FlexItemComponent":"alpha","Primer::HeadingComponent":"alpha","Primer::LabelComponent":"beta","Primer::LayoutComponent":"alpha","Primer::LinkComponent":"beta","Primer::MarkdownComponent":"alpha","Primer::MenuComponent":"alpha","Primer::OcticonComponent":"beta","Primer::PopoverComponent":"alpha","Primer::ProgressBarComponent":"alpha","Primer::SpinnerComponent":"beta","Primer::StateComponent":"beta","Primer::SubheadComponent":"beta","Primer::TabContainerComponent":"alpha","Primer::TabNavComponent":"alpha","Primer::TabNavComponent::TabComponent":"alpha","Primer::TextComponent":"alpha","Primer::TimelineItemComponent":"alpha","Primer::TimelineItemComponent::BadgeComponent":"alpha","Primer::TooltipComponent":"alpha","Primer::TruncateComponent":"alpha","Primer::UnderlineNavComponent":"alpha"}
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.25
4
+ version: 0.0.26
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-02 00:00:00.000000000 Z
11
+ date: 2021-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octicons_helper