primer_view_components 0.0.21 → 0.0.22

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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +26 -0
  3. data/app/assets/javascripts/primer_view_components.js +2 -0
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -0
  5. data/app/components/primer/avatar_component.rb +3 -3
  6. data/app/components/primer/avatar_stack_component.rb +3 -3
  7. data/app/components/primer/base_component.rb +1 -1
  8. data/app/components/primer/blankslate_component.html.erb +2 -2
  9. data/app/components/primer/blankslate_component.rb +7 -7
  10. data/app/components/primer/border_box_component.html.erb +4 -18
  11. data/app/components/primer/border_box_component.rb +58 -67
  12. data/app/components/primer/box_component.rb +2 -2
  13. data/app/components/primer/breadcrumb_component.rb +1 -1
  14. data/app/components/primer/button_component.rb +2 -2
  15. data/app/components/primer/button_group_component.rb +1 -1
  16. data/app/components/primer/button_marketing_component.rb +2 -2
  17. data/app/components/primer/component.rb +4 -0
  18. data/app/components/primer/counter_component.rb +1 -1
  19. data/app/components/primer/details_component.html.erb +2 -6
  20. data/app/components/primer/details_component.rb +22 -35
  21. data/app/components/primer/dropdown_component.html.erb +2 -2
  22. data/app/components/primer/dropdown_component.rb +4 -6
  23. data/app/components/primer/dropdown_menu_component.rb +4 -4
  24. data/app/components/primer/flash_component.html.erb +2 -2
  25. data/app/components/primer/flash_component.rb +5 -5
  26. data/app/components/primer/flex_component.rb +4 -4
  27. data/app/components/primer/flex_item_component.rb +1 -1
  28. data/app/components/primer/heading_component.rb +3 -1
  29. data/app/components/primer/label_component.rb +2 -2
  30. data/app/components/primer/layout_component.rb +2 -2
  31. data/app/components/primer/link_component.rb +2 -2
  32. data/app/components/primer/markdown_component.rb +8 -8
  33. data/app/components/primer/menu_component.rb +1 -1
  34. data/app/components/primer/octicon_component.rb +5 -3
  35. data/app/components/primer/popover_component.rb +3 -3
  36. data/app/components/primer/primer.js +1 -0
  37. data/app/components/primer/primer.ts +1 -0
  38. data/app/components/primer/progress_bar_component.rb +4 -4
  39. data/app/components/primer/spinner_component.rb +3 -3
  40. data/app/components/primer/state_component.rb +21 -10
  41. data/app/components/primer/subhead_component.rb +3 -3
  42. data/app/components/primer/tab_container_component.js +1 -0
  43. data/app/components/primer/tab_container_component.rb +41 -0
  44. data/app/components/primer/tab_container_component.ts +1 -0
  45. data/app/components/primer/tab_nav_component.html.erb +17 -0
  46. data/app/components/primer/tab_nav_component.rb +108 -0
  47. data/app/components/primer/text_component.rb +1 -1
  48. data/app/components/primer/timeline_item_component.rb +1 -1
  49. data/app/components/primer/tooltip_component.rb +5 -5
  50. data/app/components/primer/truncate_component.rb +4 -4
  51. data/app/components/primer/underline_nav_component.rb +2 -2
  52. data/{lib → app/lib}/primer/class_name_helper.rb +0 -0
  53. data/{lib → app/lib}/primer/classify.rb +0 -2
  54. data/{lib → app/lib}/primer/classify/cache.rb +0 -0
  55. data/{lib → app/lib}/primer/fetch_or_fallback_helper.rb +0 -0
  56. data/{lib → app/lib}/primer/join_style_arguments_helper.rb +0 -0
  57. data/app/lib/primer/view_helper.rb +22 -0
  58. data/app/lib/primer/view_helper/dsl.rb +34 -0
  59. data/lib/primer/view_components/engine.rb +10 -2
  60. data/lib/primer/view_components/version.rb +5 -1
  61. data/static/statuses.json +1 -1
  62. metadata +18 -8
  63. data/app/components/primer/view_components.rb +0 -60
@@ -11,7 +11,7 @@ module Primer
11
11
  }.freeze
12
12
 
13
13
  #
14
- # @example auto|Default
14
+ # @example Default
15
15
  # <%= render(Primer::CounterComponent.new(count: 25)) %>
16
16
  #
17
17
  # @param count [Integer, Float::INFINITY, nil] The number to be displayed (e.x. # of issues, pull requests)
@@ -1,8 +1,4 @@
1
1
  <%= render Primer::BaseComponent.new(**@system_arguments) do %>
2
- <%= render summary.component do %>
3
- <%= summary.content %>
4
- <% end %>
5
- <%= render body.component do %>
6
- <%= body.content %>
7
- <% end %>
2
+ <%= summary %>
3
+ <%= body %>
8
4
  <% end %>
@@ -3,7 +3,7 @@
3
3
  module Primer
4
4
  # Use DetailsComponent to reveal content after clicking a button.
5
5
  class DetailsComponent < Primer::Component
6
- include ViewComponent::Slotable
6
+ include ViewComponent::SlotableV2
7
7
 
8
8
  NO_OVERLAY = :none
9
9
  OVERLAY_MAPPINGS = {
@@ -12,8 +12,27 @@ module Primer
12
12
  :dark => "details-overlay details-overlay-dark"
13
13
  }.freeze
14
14
 
15
- with_slot :body, class_name: "Body"
16
- with_slot :summary, class_name: "Summary"
15
+ # Use the Summary slot as a trigger to reveal the content.
16
+ #
17
+ # @param button [Boolean] Whether to render the Summary as a button or not.
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
21
+ system_arguments[:tag] = :summary
22
+ system_arguments[:role] = "button"
23
+
24
+ Primer::BaseComponent.new(**system_arguments) unless button
25
+
26
+ Primer::ButtonComponent.new(**system_arguments)
27
+ }
28
+
29
+ # Use the Body slot as the main content to be shown when triggered by the Summary.
30
+ #
31
+ # @param kwargs [Hash] The same arguments as <%= link_to_system_arguments_docs %>.
32
+ renders_one :body, lambda { |**system_arguments|
33
+ system_arguments[:tag] ||= :div
34
+ Primer::BaseComponent.new(**system_arguments)
35
+ }
17
36
 
18
37
  # @param overlay [Symbol] Dictates the type of overlay to render with. <%= one_of(Primer::DetailsComponent::OVERLAY_MAPPINGS.keys) %>
19
38
  # @param reset [Boolean] Defatuls to false. If set to true, it will remove the default caret and remove style from the summary element
@@ -31,37 +50,5 @@ module Primer
31
50
  def render?
32
51
  summary.present? && body.present?
33
52
  end
34
-
35
- # Use the Summary slot as a trigger to reveal the content.
36
- class Summary < Primer::Slot
37
- # @param button [Boolean] Whether to render the Summary as a button or not.
38
- # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
39
- def initialize(button: true, **system_arguments)
40
- @button = button
41
-
42
- @system_arguments = system_arguments
43
- @system_arguments[:tag] = :summary
44
- @system_arguments[:role] = "button"
45
- end
46
-
47
- def component
48
- return Primer::BaseComponent.new(**@system_arguments) unless @button
49
-
50
- Primer::ButtonComponent.new(**@system_arguments)
51
- end
52
- end
53
-
54
- # Use the Body slot as the main content to be shown when triggered by the Summary.
55
- class Body < Primer::Slot
56
- # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
57
- def initialize(**system_arguments)
58
- @system_arguments = system_arguments
59
- @system_arguments[:tag] ||= :div
60
- end
61
-
62
- def component
63
- Primer::BaseComponent.new(**@system_arguments)
64
- end
65
- end
66
53
  end
67
54
  end
@@ -1,9 +1,9 @@
1
1
  <%= render(Primer::DetailsComponent.new(**@system_arguments)) do |c| %>
2
- <% c.slot(:summary, classes: @summary_classes) do %>
2
+ <% c.summary(classes: @summary_classes) do %>
3
3
  <%= button %>
4
4
  <% end %>
5
5
 
6
- <% c.slot(:body) do %>
6
+ <% c.body do %>
7
7
  <%= menu %>
8
8
  <% end %>
9
9
  <% end %>
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "dropdown/menu_component"
4
-
5
3
  module Primer
6
4
  # Dropdowns are lightweight context menus for housing navigation and actions.
7
5
  # They're great for instances where you don't need the full power (and code) of the select menu.
@@ -20,8 +18,8 @@ module Primer
20
18
  # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
21
19
  renders_one :menu, Primer::Dropdown::MenuComponent
22
20
 
23
- # @example 210|Default
24
- # <div style="margin-bottom: 150px">
21
+ # @example Default
22
+ # <div>
25
23
  # <%= render(Primer::DropdownComponent.new) do |c| %>
26
24
  # <% c.button do %>
27
25
  # Dropdown
@@ -37,8 +35,8 @@ module Primer
37
35
  # <% end %>
38
36
  # </div>
39
37
  #
40
- # @example 210|With Direction
41
- # <div style="margin-bottom: 150px" class="d-flex flex-justify-center">
38
+ # @example With Direction
39
+ # <div>
42
40
  # <%= render(Primer::DropdownComponent.new) do |c| %>
43
41
  # <% c.button do %>
44
42
  # Dropdown
@@ -18,14 +18,14 @@ module Primer
18
18
  STATUSES[:deprecated]
19
19
  end
20
20
 
21
- # @example 200|With a header
22
- # <div style="margin-bottom: 150px">
21
+ # @example With a header
22
+ # <div>
23
23
  # <%= render(Primer::DetailsComponent.new(overlay: :default, reset: true, position: :relative)) do |c| %>
24
- # <% c.slot(:summary) do %>
24
+ # <% c.summary do %>
25
25
  # Dropdown
26
26
  # <% end %>
27
27
  #
28
- # <% c.slot(:body) do %>
28
+ # <% c.body do %>
29
29
  # <%= render(Primer::DropdownMenuComponent.new(header: "Options")) do %>
30
30
  # <ul>
31
31
  # <li><a class="dropdown-item" href="#url">Dropdown item</a></li>
@@ -1,9 +1,9 @@
1
1
  <%= render Primer::BaseComponent.new(**@system_arguments) do %>
2
- <%= render(Primer::OcticonComponent.new(icon: @icon)) if @icon %>
2
+ <%= primer(:octicon, icon: @icon) if @icon %>
3
3
  <%= content %>
4
4
  <% if @dismissible %>
5
5
  <button class="flash-close js-flash-close" type="button" aria-label="Close">
6
- <%= render(Primer::OcticonComponent.new(icon: "x")) %>
6
+ <%= primer(:octicon, icon: "x") %>
7
7
  </button>
8
8
  <% end %>
9
9
 
@@ -22,22 +22,22 @@ module Primer
22
22
  :danger => "flash-error",
23
23
  :success => "flash-success"
24
24
  }.freeze
25
- # @example auto|Variants
25
+ # @example Variants
26
26
  # <%= render(Primer::FlashComponent.new) { "This is a flash message!" } %>
27
27
  # <%= render(Primer::FlashComponent.new(variant: :warning)) { "This is a warning flash message!" } %>
28
28
  # <%= render(Primer::FlashComponent.new(variant: :danger)) { "This is a danger flash message!" } %>
29
29
  # <%= render(Primer::FlashComponent.new(variant: :success)) { "This is a success flash message!" } %>
30
30
  #
31
- # @example auto|Full width
31
+ # @example Full width
32
32
  # <%= render(Primer::FlashComponent.new(full: true)) { "This is a full width flash message!" } %>
33
33
  #
34
- # @example auto|Dismissible
34
+ # @example Dismissible
35
35
  # <%= render(Primer::FlashComponent.new(dismissible: true)) { "This is a dismissible flash message!" } %>
36
36
  #
37
- # @example auto|Icon
37
+ # @example Icon
38
38
  # <%= render(Primer::FlashComponent.new(icon: "people")) { "This is a flash message with an icon!" } %>
39
39
  #
40
- # @example auto|With actions
40
+ # @example With actions
41
41
  # <%= render(Primer::FlashComponent.new) do |component| %>
42
42
  # This is a flash message with actions!
43
43
  # <% component.action do %>
@@ -35,28 +35,28 @@ module Primer
35
35
  DEFAULT_DIRECTION = nil
36
36
  ALLOWED_DIRECTIONS = [DEFAULT_DIRECTION, :column, :column_reverse, :row, :row_reverse].freeze
37
37
 
38
- # @example auto|Default
38
+ # @example Default
39
39
  # <%= render(Primer::FlexComponent.new(bg: :gray)) do %>
40
40
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 1" } %>
41
41
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 2" } %>
42
42
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 3" } %>
43
43
  # <% end %>
44
44
  #
45
- # @example auto|Justify center
45
+ # @example Justify center
46
46
  # <%= render(Primer::FlexComponent.new(justify_content: :center, bg: :gray)) do %>
47
47
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 1" } %>
48
48
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 2" } %>
49
49
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 3" } %>
50
50
  # <% end %>
51
51
  #
52
- # @example auto|Align end
52
+ # @example Align end
53
53
  # <%= render(Primer::FlexComponent.new(align_items: :end, bg: :gray)) do %>
54
54
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 1" } %>
55
55
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 2" } %>
56
56
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 3" } %>
57
57
  # <% end %>
58
58
  #
59
- # @example auto|Direction column
59
+ # @example Direction column
60
60
  # <%= render(Primer::FlexComponent.new(direction: :column, bg: :gray)) do %>
61
61
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 1" } %>
62
62
  # <%= render(Primer::BoxComponent.new(p: 5, bg: :gray_light, classes: "border")) { "Item 2" } %>
@@ -7,7 +7,7 @@ module Primer
7
7
  FLEX_AUTO_DEFAULT = false
8
8
  FLEX_AUTO_ALLOWED_VALUES = [FLEX_AUTO_DEFAULT, true].freeze
9
9
 
10
- # @example auto|Default
10
+ # @example Default
11
11
  # <%= render(Primer::FlexComponent.new) do %>
12
12
  # <%= render(Primer::FlexItemComponent.new) do %>
13
13
  # Item 1
@@ -3,7 +3,9 @@
3
3
  module Primer
4
4
  # Use the Heading component to wrap a component that will create a heading element
5
5
  class HeadingComponent < Primer::Component
6
- # @example auto|Default
6
+ view_helper :heading
7
+
8
+ # @example Default
7
9
  # <%= render(Primer::HeadingComponent.new) { "H1 Text" } %>
8
10
  # <%= render(Primer::HeadingComponent.new(tag: :h2)) { "H2 Text" } %>
9
11
  # <%= render(Primer::HeadingComponent.new(tag: :h3)) { "H3 Text" } %>
@@ -35,7 +35,7 @@ module Primer
35
35
  }.freeze
36
36
  VARIANT_OPTIONS = VARIANT_MAPPINGS.keys << nil
37
37
 
38
- # @example auto|Schemes
38
+ # @example Schemes
39
39
  # <%= render(Primer::LabelComponent.new(title: "Label: Label")) { "default" } %>
40
40
  # <%= render(Primer::LabelComponent.new(title: "Label: Label", scheme: :gray)) { "gray" } %>
41
41
  # <%= render(Primer::LabelComponent.new(title: "Label: Label", scheme: :dark_gray)) { "dark_gray" } %>
@@ -43,7 +43,7 @@ module Primer
43
43
  # <%= render(Primer::LabelComponent.new(title: "Label: Label", scheme: :green)) { "green" } %>
44
44
  # <%= render(Primer::LabelComponent.new(title: "Label: Label", scheme: :purple)) { "purple" } %>
45
45
  #
46
- # @example auto|Variants
46
+ # @example Variants
47
47
  # <%= render(Primer::LabelComponent.new(title: "Label: Label")) { "Default" } %>
48
48
  # <%= render(Primer::LabelComponent.new(title: "Label: Label", variant: :large)) { "Large" } %>
49
49
  #
@@ -12,13 +12,13 @@ module Primer
12
12
  DEFAULT_SIDEBAR_COL = 3
13
13
  ALLOWED_SIDEBAR_COLS = (1..(MAX_COL - 1)).to_a.freeze
14
14
 
15
- # @example auto|Default
15
+ # @example Default
16
16
  # <%= render(Primer::LayoutComponent.new) do |component| %>
17
17
  # <% component.with(:sidebar) { "Sidebar" } %>
18
18
  # <% component.with(:main) { "Main" } %>
19
19
  # <% end %>
20
20
  #
21
- # @example auto|Left sidebar
21
+ # @example Left sidebar
22
22
  # <%= render(Primer::LayoutComponent.new(side: :left)) do |component| %>
23
23
  # <% component.with(:sidebar) { "Sidebar" } %>
24
24
  # <% component.with(:main) { "Main" } %>
@@ -3,10 +3,10 @@
3
3
  module Primer
4
4
  # Use links for moving from one page to another. The Link component styles anchor tags with default blue styling and hover text-decoration.
5
5
  class LinkComponent < Primer::Component
6
- # @example auto|Default
6
+ # @example Default
7
7
  # <%= render(Primer::LinkComponent.new(href: "http://www.google.com")) { "Link" } %>
8
8
  #
9
- # @example auto|Muted
9
+ # @example Muted
10
10
  # <%= render(Primer::LinkComponent.new(href: "http://www.google.com", muted: true)) { "Link" } %>
11
11
  #
12
12
  # @param href [String] URL to be used for the Link
@@ -3,7 +3,7 @@
3
3
  module Primer
4
4
  # Use MarkdownComponent to wrap markdown content
5
5
  class MarkdownComponent < Primer::Component
6
- # @example 5320|Default
6
+ # @example Default
7
7
  # <%= render(Primer::MarkdownComponent.new) do %>
8
8
  # <p>Text can be <b>bold</b>, <i>italic</i>, or <s>strikethrough</s>. <a href="https://github.com">Links </a> should be blue with no underlines (unless hovered over).</p>
9
9
  #
@@ -95,17 +95,17 @@ module Primer
95
95
  # <p>And an unordered task list:</p>
96
96
  #
97
97
  # <ul>
98
- # <li><input type="checkbox" checked> Create a sample markdown document</li>
99
- # <li><input type="checkbox"> Add task lists to it</li>
100
- # <li><input type="checkbox"> Take a vacation</li>
98
+ # <li><input type="checkbox" checked /> Create a sample markdown document</li>
99
+ # <li><input type="checkbox"/> Add task lists to it</li>
100
+ # <li><input type="checkbox"/> Take a vacation</li>
101
101
  # </ul>
102
102
  #
103
103
  # <p>And a "mixed" task list:</p>
104
104
  #
105
105
  # <ul>
106
- # <li><input type="checkbox"> Steal underpants</li>
106
+ # <li><input type="checkbox"/> Steal underpants</li>
107
107
  # <li>?</li>
108
- # <li><input type="checkbox"> Profit!</li>
108
+ # <li><input type="checkbox"/> Profit!</li>
109
109
  # </ul>
110
110
  #
111
111
  # And a nested list:
@@ -266,11 +266,11 @@ module Primer
266
266
  #
267
267
  # <p>Small images should be shown at their actual size.</p>
268
268
  #
269
- # <p><img src="http://placekitten.com/g/300/200/"></p>
269
+ # <p><img src="http://placekitten.com/g/300/200/"/></p>
270
270
  #
271
271
  # <p>Large images should always scale down and fit in the content container.</p>
272
272
  #
273
- # <p><img src="http://placekitten.com/g/1200/800/"></p>
273
+ # <p><img src="http://placekitten.com/g/1200/800/"/></p>
274
274
  #
275
275
  # <pre><code>This is the final element on the page and there should be no margin below this.</code></pre>
276
276
  # <% end %>
@@ -35,7 +35,7 @@ module Primer
35
35
  Primer::BaseComponent.new(**system_arguments)
36
36
  }
37
37
 
38
- # @example auto|Default
38
+ # @example Default
39
39
  # <%= render(Primer::MenuComponent.new) do |c| %>
40
40
  # <% c.heading do %>
41
41
  # Heading
@@ -3,6 +3,8 @@
3
3
  module Primer
4
4
  # Renders an [Octicon](https://primer.style/octicons/) with <%= link_to_system_arguments_docs %>.
5
5
  class OcticonComponent < Primer::Component
6
+ view_helper :octicon
7
+
6
8
  include Primer::ClassNameHelper
7
9
  include OcticonsHelper
8
10
 
@@ -14,13 +16,13 @@ module Primer
14
16
  }.freeze
15
17
  SIZE_OPTIONS = SIZE_MAPPINGS.keys
16
18
 
17
- # @example auto|Default
19
+ # @example Default
18
20
  # <%= render(Primer::OcticonComponent.new(icon: "check")) %>
19
21
  #
20
- # @example auto|Medium
22
+ # @example Medium
21
23
  # <%= render(Primer::OcticonComponent.new(icon: "people", size: :medium)) %>
22
24
  #
23
- # @example auto|Large
25
+ # @example Large
24
26
  # <%= render(Primer::OcticonComponent.new(icon: "x", size: :large)) %>
25
27
  #
26
28
  # @param icon [String] Name of [Octicon](https://primer.style/octicons/) to use.
@@ -10,7 +10,7 @@ module Primer
10
10
  with_slot :heading, class_name: "Heading"
11
11
  with_slot :body, class_name: "Body"
12
12
 
13
- # @example auto|Default
13
+ # @example Default
14
14
  # <%= render Primer::PopoverComponent.new do |component| %>
15
15
  # <% component.slot(:heading) do %>
16
16
  # Activity feed
@@ -20,7 +20,7 @@ module Primer
20
20
  # <% end %>
21
21
  # <% end %>
22
22
  #
23
- # @example auto|Large
23
+ # @example Large
24
24
  # <%= render Primer::PopoverComponent.new do |component| %>
25
25
  # <% component.slot(:heading) do %>
26
26
  # Activity feed
@@ -30,7 +30,7 @@ module Primer
30
30
  # <% end %>
31
31
  # <% end %>
32
32
  #
33
- # @example auto|Caret position
33
+ # @example Caret position
34
34
  # <%= render Primer::PopoverComponent.new do |component| %>
35
35
  # <% component.slot(:heading) do %>
36
36
  # Activity feed
@@ -0,0 +1 @@
1
+ import './tab_container_component';
@@ -0,0 +1 @@
1
+ import './tab_container_component'
@@ -16,22 +16,22 @@ module Primer
16
16
  }.freeze
17
17
 
18
18
  SIZE_OPTIONS = SIZE_MAPPINGS.keys
19
- # @example auto|Default
19
+ # @example Default
20
20
  # <%= render(Primer::ProgressBarComponent.new) do |component| %>
21
21
  # <% component.slot(:item, percentage: 25) %>
22
22
  # <% end %>
23
23
  #
24
- # @example auto|Small
24
+ # @example Small
25
25
  # <%= render(Primer::ProgressBarComponent.new(size: :small)) do |component| %>
26
26
  # <% component.slot(:item, bg: :blue_4, percentage: 50) %>
27
27
  # <% end %>
28
28
  #
29
- # @example auto|Large
29
+ # @example Large
30
30
  # <%= render(Primer::ProgressBarComponent.new(size: :large)) do |component| %>
31
31
  # <% component.slot(:item, bg: :red_4, percentage: 75) %>
32
32
  # <% end %>
33
33
  #
34
- # @example auto|Multiple items
34
+ # @example Multiple items
35
35
  # <%= render(Primer::ProgressBarComponent.new) do |component| %>
36
36
  # <% component.slot(:item, percentage: 10) %>
37
37
  # <% component.slot(:item, bg: :blue_4, percentage: 20) %>