primer_view_components 0.0.21 → 0.0.26
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 +4 -4
- data/CHANGELOG.md +77 -0
- data/app/assets/javascripts/primer_view_components.js +2 -0
- data/app/assets/javascripts/primer_view_components.js.map +1 -0
- data/app/components/primer/avatar_component.rb +3 -3
- data/app/components/primer/avatar_stack_component.rb +3 -3
- data/app/components/primer/base_component.rb +6 -2
- data/app/components/primer/blankslate_component.html.erb +2 -2
- data/app/components/primer/blankslate_component.rb +11 -7
- data/app/components/primer/border_box_component.html.erb +4 -18
- data/app/components/primer/border_box_component.rb +58 -67
- data/app/components/primer/box_component.rb +2 -2
- data/app/components/primer/breadcrumb_component.html.erb +1 -2
- data/app/components/primer/breadcrumb_component.rb +24 -13
- data/app/components/primer/button_component.rb +2 -2
- data/app/components/primer/button_group_component.rb +1 -1
- data/app/components/primer/button_marketing_component.rb +2 -2
- data/app/components/primer/component.rb +4 -0
- data/app/components/primer/counter_component.rb +1 -1
- data/app/components/primer/details_component.html.erb +2 -6
- data/app/components/primer/details_component.rb +21 -35
- data/app/components/primer/dropdown_component.html.erb +2 -2
- data/app/components/primer/dropdown_component.rb +4 -6
- data/app/components/primer/dropdown_menu_component.rb +4 -4
- data/app/components/primer/flash_component.html.erb +2 -2
- data/app/components/primer/flash_component.rb +5 -5
- data/app/components/primer/flex_component.rb +4 -4
- data/app/components/primer/flex_item_component.rb +1 -1
- data/app/components/primer/heading_component.rb +3 -1
- data/app/components/primer/label_component.rb +22 -26
- data/app/components/primer/layout_component.rb +2 -2
- data/app/components/primer/link_component.rb +2 -2
- data/app/components/primer/markdown_component.rb +8 -8
- data/app/components/primer/menu_component.rb +1 -1
- data/app/components/primer/octicon_component.rb +5 -3
- data/app/components/primer/popover_component.rb +3 -3
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/components/primer/progress_bar_component.html.erb +1 -1
- data/app/components/primer/progress_bar_component.rb +27 -31
- data/app/components/primer/spinner_component.rb +3 -3
- data/app/components/primer/state_component.rb +21 -10
- data/app/components/primer/subhead_component.html.erb +3 -15
- data/app/components/primer/subhead_component.rb +47 -59
- data/app/components/primer/tab_container_component.js +1 -0
- data/app/components/primer/tab_container_component.rb +41 -0
- data/app/components/primer/tab_container_component.ts +1 -0
- data/app/components/primer/tab_nav_component.html.erb +17 -0
- data/app/components/primer/tab_nav_component.rb +108 -0
- data/app/components/primer/text_component.rb +1 -1
- data/app/components/primer/timeline_item_component.rb +1 -1
- data/app/components/primer/tooltip_component.rb +5 -5
- data/app/components/primer/truncate_component.rb +4 -4
- data/app/components/primer/underline_nav_component.rb +2 -2
- data/{lib → app/lib}/primer/class_name_helper.rb +0 -0
- data/{lib → app/lib}/primer/classify.rb +0 -2
- data/{lib → app/lib}/primer/classify/cache.rb +0 -0
- data/{lib → app/lib}/primer/fetch_or_fallback_helper.rb +0 -0
- data/{lib → app/lib}/primer/join_style_arguments_helper.rb +0 -0
- data/app/lib/primer/view_helper.rb +22 -0
- data/app/lib/primer/view_helper/dsl.rb +34 -0
- data/lib/primer/view_components/engine.rb +10 -2
- data/lib/primer/view_components/version.rb +5 -1
- data/static/statuses.json +1 -1
- metadata +18 -8
- data/app/components/primer/view_components.rb +0 -60
@@ -0,0 +1 @@
|
|
1
|
+
import '@github/tab-container-element';
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
# Use TabContainer to create tabbed content with keyboard support. This component does not add any styles.
|
5
|
+
# It only provides the tab functionality. If you want styled Tabs you can look at <%= link_to_component(Primer::TabNavComponent) %>.
|
6
|
+
#
|
7
|
+
# This component requires javascript.
|
8
|
+
class TabContainerComponent < Primer::Component
|
9
|
+
# @example Default
|
10
|
+
# <%= render(Primer::TabContainerComponent.new) do %>
|
11
|
+
# <div role="tablist">
|
12
|
+
# <button type="button" role="tab" aria-selected="true">Tab one</button>
|
13
|
+
# <button type="button" role="tab" tabindex="-1">Tab two</button>
|
14
|
+
# <button type="button" role="tab" tabindex="-1">Tab three</button>
|
15
|
+
# </div>
|
16
|
+
# <div role="tabpanel">
|
17
|
+
# Panel 1
|
18
|
+
# </div>
|
19
|
+
# <div role="tabpanel" hidden>
|
20
|
+
# Panel 2
|
21
|
+
# </div>
|
22
|
+
# <div role="tabpanel" hidden>
|
23
|
+
# Panel 3
|
24
|
+
# </div>
|
25
|
+
# <% end %>
|
26
|
+
#
|
27
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
28
|
+
def initialize(**system_arguments)
|
29
|
+
@system_arguments = system_arguments
|
30
|
+
@system_arguments[:tag] = "tab-container"
|
31
|
+
end
|
32
|
+
|
33
|
+
def call
|
34
|
+
render(Primer::BaseComponent.new(**@system_arguments)) { content }
|
35
|
+
end
|
36
|
+
|
37
|
+
def render?
|
38
|
+
content.present?
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
import '@github/tab-container-element'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<%= render wrapper.new(**@system_arguments) do %>
|
2
|
+
<nav role="tablist" aria-label="<%= @aria_label %>" class="tabnav-tabs">
|
3
|
+
<% tabs.each do |tab| %>
|
4
|
+
<%= tab %>
|
5
|
+
<% end %>
|
6
|
+
</nav >
|
7
|
+
|
8
|
+
<% if @with_panel %>
|
9
|
+
<% tabs.each do |tab| %>
|
10
|
+
<% if tab.panel.present? %>
|
11
|
+
<div role="tabpanel" <%= "hidden" if tab.hidden? %>>
|
12
|
+
<%= tab.panel %>
|
13
|
+
</div>
|
14
|
+
<% end %>
|
15
|
+
<% end %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
# Use TabNav to style navigation with a tab-based selected state, typically used for navigation placed at the top of the page.
|
5
|
+
class TabNavComponent < Primer::Component
|
6
|
+
include ViewComponent::SlotableV2
|
7
|
+
|
8
|
+
class MultipleSelectedTabsError < StandardError; end
|
9
|
+
class NoSelectedTabsError < StandardError; end
|
10
|
+
|
11
|
+
# Tabs to be rendered.
|
12
|
+
#
|
13
|
+
# @param title [String] Text to be rendered by the tab.
|
14
|
+
# @param selected [Boolean] Whether the tab is selected.
|
15
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
16
|
+
renders_many :tabs, lambda { |**system_arguments|
|
17
|
+
return TabComponent.new(**system_arguments) unless @with_panel
|
18
|
+
|
19
|
+
TabComponent.new(tag: :button, type: :button, **system_arguments)
|
20
|
+
}
|
21
|
+
|
22
|
+
# @example Default
|
23
|
+
# <%= render(Primer::TabNavComponent.new) do |c| %>
|
24
|
+
# <% c.tab(selected: true, title: "Tab 1", href: "#") %>
|
25
|
+
# <% c.tab(title: "Tab 2", href: "#") %>
|
26
|
+
# <% c.tab(title: "Tab 3", href: "#") %>
|
27
|
+
# <% end %>
|
28
|
+
#
|
29
|
+
# @example With panels
|
30
|
+
# <%= render(Primer::TabNavComponent.new(with_panel: true)) do |c| %>
|
31
|
+
# <% c.tab(selected: true, title: "Tab 1") { "Panel 1" } %>
|
32
|
+
# <% c.tab(title: "Tab 2") { "Panel 1" } %>
|
33
|
+
# <% c.tab(title: "Tab 3") { "Panel 1" } %>
|
34
|
+
# <% end %>
|
35
|
+
#
|
36
|
+
# @param aria_label [String] Used to set the `aria-label` on the top level `<nav>` element.
|
37
|
+
# @param with_panel [Boolean] Whether the TabNav should navigate through pages or panels.
|
38
|
+
# @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
|
39
|
+
def initialize(aria_label: nil, with_panel: false, **system_arguments)
|
40
|
+
@aria_label = aria_label
|
41
|
+
@with_panel = with_panel
|
42
|
+
@system_arguments = system_arguments
|
43
|
+
@system_arguments[:tag] ||= :div
|
44
|
+
|
45
|
+
@system_arguments[:classes] = class_names(
|
46
|
+
"tabnav",
|
47
|
+
system_arguments[:classes]
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
def before_render
|
52
|
+
validate_single_selected_tab
|
53
|
+
end
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def wrapper
|
58
|
+
@with_panel ? Primer::TabContainerComponent : Primer::BaseComponent
|
59
|
+
end
|
60
|
+
|
61
|
+
def validate_single_selected_tab
|
62
|
+
raise MultipleSelectedTabsError, "only one tab can be selected" if selected_tabs_count > 1
|
63
|
+
raise NoSelectedTabsError, "a tab must be selected" if selected_tabs_count != 1
|
64
|
+
end
|
65
|
+
|
66
|
+
def selected_tabs_count
|
67
|
+
@selected_tabs_count ||= tabs.count(&:selected)
|
68
|
+
end
|
69
|
+
|
70
|
+
# Tabs to be rendered.
|
71
|
+
class TabComponent < Primer::Component
|
72
|
+
attr_reader :selected
|
73
|
+
|
74
|
+
def initialize(title:, selected: false, **system_arguments)
|
75
|
+
@title = title
|
76
|
+
@selected = selected
|
77
|
+
@system_arguments = system_arguments
|
78
|
+
@system_arguments[:tag] ||= :a
|
79
|
+
@system_arguments[:role] = :tab
|
80
|
+
|
81
|
+
if selected
|
82
|
+
if @system_arguments[:tag] == :a
|
83
|
+
@system_arguments[:"aria-current"] = :page
|
84
|
+
else
|
85
|
+
@system_arguments[:"aria-selected"] = true
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
@system_arguments[:classes] = class_names(
|
90
|
+
"tabnav-tab",
|
91
|
+
system_arguments[:classes]
|
92
|
+
)
|
93
|
+
end
|
94
|
+
|
95
|
+
def call
|
96
|
+
render(Primer::BaseComponent.new(**@system_arguments)) { @title }
|
97
|
+
end
|
98
|
+
|
99
|
+
def panel
|
100
|
+
content
|
101
|
+
end
|
102
|
+
|
103
|
+
def hidden?
|
104
|
+
!@selected
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Primer
|
4
4
|
# The Text component is a wrapper component that will apply typography styles to the text inside.
|
5
5
|
class TextComponent < Primer::Component
|
6
|
-
# @example
|
6
|
+
# @example Default
|
7
7
|
# <%= render(Primer::TextComponent.new(tag: :p, font_weight: :bold)) { "Bold Text" } %>
|
8
8
|
# <%= render(Primer::TextComponent.new(tag: :p, color: :red_5)) { "Red Text" } %>
|
9
9
|
#
|
@@ -36,7 +36,7 @@ module Primer
|
|
36
36
|
Primer::BaseComponent.new(**system_arguments)
|
37
37
|
}
|
38
38
|
|
39
|
-
# @example
|
39
|
+
# @example Default
|
40
40
|
# <div style="padding-left: 60px">
|
41
41
|
# <%= render(Primer::TimelineItemComponent.new) do |component| %>
|
42
42
|
# <% component.avatar(src: "https://github.com/github.png", alt: "github") %>
|
@@ -26,29 +26,29 @@ module Primer
|
|
26
26
|
se
|
27
27
|
]
|
28
28
|
|
29
|
-
# @example
|
29
|
+
# @example Default
|
30
30
|
# <div class="pt-5">
|
31
31
|
# <%= render(Primer::TooltipComponent.new(label: "Even bolder")) { "Default Bold Text" } %>
|
32
32
|
# </div>
|
33
33
|
#
|
34
|
-
# @example
|
34
|
+
# @example Wrapping another component
|
35
35
|
# <div class="pt-5">
|
36
36
|
# <%= render(Primer::TooltipComponent.new(label: "Even bolder")) do %>
|
37
37
|
# <%= render(Primer::ButtonComponent.new) { "Bold Button" } %>
|
38
38
|
# <% end %>
|
39
39
|
# </div>
|
40
40
|
#
|
41
|
-
# @example
|
41
|
+
# @example With a direction
|
42
42
|
# <div class="pt-5">
|
43
43
|
# <%= render(Primer::TooltipComponent.new(label: "Even bolder", direction: :s)) { "Bold Text With a Direction" } %>
|
44
44
|
# </div>
|
45
45
|
#
|
46
|
-
# @example
|
46
|
+
# @example With an alignment
|
47
47
|
# <div class="pt-5">
|
48
48
|
# <%= render(Primer::TooltipComponent.new(label: "Even bolder", direction: :s, alignment: :right_1)) { "Bold Text With an Alignment" } %>
|
49
49
|
# </div>
|
50
50
|
#
|
51
|
-
# @example
|
51
|
+
# @example Without a delay
|
52
52
|
# <div class="pt-5">
|
53
53
|
# <%= render(Primer::TooltipComponent.new(label: "Even bolder", direction: :s, no_delay: true)) { "Bold Text without a delay" } %>
|
54
54
|
# </div>
|
@@ -3,18 +3,18 @@
|
|
3
3
|
module Primer
|
4
4
|
# Use TruncateComponent to shorten overflowing text with an ellipsis.
|
5
5
|
class TruncateComponent < Primer::Component
|
6
|
-
# @example
|
6
|
+
# @example Default
|
7
7
|
# <div class="col-2">
|
8
8
|
# <%= render(Primer::TruncateComponent.new(tag: :p)) { "branch-name-that-is-really-long" } %>
|
9
9
|
# </div>
|
10
10
|
#
|
11
|
-
# @example
|
11
|
+
# @example Inline
|
12
12
|
# <%= render(Primer::TruncateComponent.new(tag: :span, inline: true)) { "branch-name-that-is-really-long" } %>
|
13
13
|
#
|
14
|
-
# @example
|
14
|
+
# @example Expandable
|
15
15
|
# <%= render(Primer::TruncateComponent.new(tag: :span, inline: true, expandable: true)) { "branch-name-that-is-really-long" } %>
|
16
16
|
#
|
17
|
-
# @example
|
17
|
+
# @example Custom size
|
18
18
|
# <%= render(Primer::TruncateComponent.new(tag: :span, inline: true, expandable: true, max_width: 100)) { "branch-name-that-is-really-long" } %>
|
19
19
|
#
|
20
20
|
# @param inline [Boolean] Whether the element is inline (or inline-block).
|
@@ -10,7 +10,7 @@ module Primer
|
|
10
10
|
|
11
11
|
with_content_areas :body, :actions
|
12
12
|
|
13
|
-
# @example
|
13
|
+
# @example Default
|
14
14
|
# <%= render(Primer::UnderlineNavComponent.new) do |component| %>
|
15
15
|
# <% component.with(:body) do %>
|
16
16
|
# <%= render(Primer::LinkComponent.new(href: "#url")) { "Item 1" } %>
|
@@ -20,7 +20,7 @@ module Primer
|
|
20
20
|
# <% end %>
|
21
21
|
# <% end %>
|
22
22
|
#
|
23
|
-
# @example
|
23
|
+
# @example Align right
|
24
24
|
# <%= render(Primer::UnderlineNavComponent.new(align: :right)) do |component| %>
|
25
25
|
# <% component.with(:body) do %>
|
26
26
|
# <%= render(Primer::LinkComponent.new(href: "#url")) { "Item 1" } %>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
# Module to allow shorthand calls for registered Primer components
|
5
|
+
#
|
6
|
+
# Registered components can be called with
|
7
|
+
# `primer(:name, **kwargs) { block }` instead of
|
8
|
+
# `render Primer::NameComponent.new(**kwargs) { block }`
|
9
|
+
module ViewHelper
|
10
|
+
extend ActiveSupport::Concern
|
11
|
+
|
12
|
+
class ViewHelperNotFound < StandardError; end
|
13
|
+
|
14
|
+
def primer(name, **component_args, &block)
|
15
|
+
component = Primer::Component.primer_helpers[name]
|
16
|
+
|
17
|
+
raise ViewHelperNotFound, "no component defined for helper #{name}" if component.blank?
|
18
|
+
|
19
|
+
render component.new(**component_args), &block
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_support/concern"
|
4
|
+
|
5
|
+
module Primer
|
6
|
+
# :nodoc:
|
7
|
+
module ViewHelper
|
8
|
+
# DSL to allow components to register a View Helper for shorthand calls.
|
9
|
+
#
|
10
|
+
# Example:
|
11
|
+
#
|
12
|
+
# class MyComponent < ViewComponent::Base
|
13
|
+
# include Primer::ViewHelper::Dsl
|
14
|
+
# view_helper :my_component
|
15
|
+
# end
|
16
|
+
module Dsl
|
17
|
+
extend ActiveSupport::Concern
|
18
|
+
|
19
|
+
class ViewHelperAlreadyDefined < StandardError; end
|
20
|
+
|
21
|
+
included do
|
22
|
+
class_attribute :primer_helpers, instance_writer: false, default: {}
|
23
|
+
end
|
24
|
+
|
25
|
+
class_methods do
|
26
|
+
def view_helper(name)
|
27
|
+
raise ViewHelperAlreadyDefined, "#{name} is already defined" if primer_helpers[name].present?
|
28
|
+
|
29
|
+
primer_helpers[name] = self
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -1,12 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "rails/engine"
|
4
|
+
|
3
5
|
module Primer
|
4
6
|
module ViewComponents
|
5
7
|
# :nodoc:
|
6
8
|
class Engine < ::Rails::Engine
|
7
9
|
isolate_namespace Primer::ViewComponents
|
10
|
+
config.autoload_once_paths = %W[
|
11
|
+
#{root}/app/components
|
12
|
+
#{root}/app/lib
|
13
|
+
]
|
14
|
+
|
15
|
+
initializer "primer_view_components.assets" do |app|
|
16
|
+
app.config.assets.precompile += %w[primer_view_components] if app.config.respond_to?(:assets)
|
17
|
+
end
|
8
18
|
end
|
9
19
|
end
|
10
20
|
end
|
11
|
-
|
12
|
-
require "#{Primer::ViewComponents::Engine.root}/app/components/primer/view_components.rb"
|
@@ -5,9 +5,13 @@ module Primer
|
|
5
5
|
module VERSION
|
6
6
|
MAJOR = 0
|
7
7
|
MINOR = 0
|
8
|
-
PATCH =
|
8
|
+
PATCH = 26
|
9
9
|
|
10
10
|
STRING = [MAJOR, MINOR, PATCH].join(".")
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
14
|
+
|
15
|
+
# rubocop:disable Rails/Output
|
16
|
+
puts Primer::ViewComponents::VERSION::STRING if __FILE__ == $PROGRAM_NAME
|
17
|
+
# rubocop:enable Rails/Output
|
data/static/statuses.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"Primer::AvatarComponent":"beta","Primer::AvatarStackComponent":"alpha","Primer::BaseComponent":"
|
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.
|
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-
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octicons_helper
|
@@ -234,6 +234,8 @@ files:
|
|
234
234
|
- CHANGELOG.md
|
235
235
|
- LICENSE.txt
|
236
236
|
- README.md
|
237
|
+
- app/assets/javascripts/primer_view_components.js
|
238
|
+
- app/assets/javascripts/primer_view_components.js.map
|
237
239
|
- app/components/primer/avatar_component.rb
|
238
240
|
- app/components/primer/avatar_stack_component.html.erb
|
239
241
|
- app/components/primer/avatar_stack_component.rb
|
@@ -274,6 +276,8 @@ files:
|
|
274
276
|
- app/components/primer/octicon_component.rb
|
275
277
|
- app/components/primer/popover_component.html.erb
|
276
278
|
- app/components/primer/popover_component.rb
|
279
|
+
- app/components/primer/primer.js
|
280
|
+
- app/components/primer/primer.ts
|
277
281
|
- app/components/primer/progress_bar_component.html.erb
|
278
282
|
- app/components/primer/progress_bar_component.rb
|
279
283
|
- app/components/primer/slot.rb
|
@@ -282,6 +286,11 @@ files:
|
|
282
286
|
- app/components/primer/state_component.rb
|
283
287
|
- app/components/primer/subhead_component.html.erb
|
284
288
|
- app/components/primer/subhead_component.rb
|
289
|
+
- app/components/primer/tab_container_component.js
|
290
|
+
- app/components/primer/tab_container_component.rb
|
291
|
+
- app/components/primer/tab_container_component.ts
|
292
|
+
- app/components/primer/tab_nav_component.html.erb
|
293
|
+
- app/components/primer/tab_nav_component.rb
|
285
294
|
- app/components/primer/text_component.rb
|
286
295
|
- app/components/primer/timeline_item_component.html.erb
|
287
296
|
- app/components/primer/timeline_item_component.rb
|
@@ -289,12 +298,13 @@ files:
|
|
289
298
|
- app/components/primer/truncate_component.rb
|
290
299
|
- app/components/primer/underline_nav_component.html.erb
|
291
300
|
- app/components/primer/underline_nav_component.rb
|
292
|
-
- app/
|
293
|
-
- lib/primer/
|
294
|
-
- lib/primer/classify.rb
|
295
|
-
- lib/primer/
|
296
|
-
- lib/primer/
|
297
|
-
- lib/primer/
|
301
|
+
- app/lib/primer/class_name_helper.rb
|
302
|
+
- app/lib/primer/classify.rb
|
303
|
+
- app/lib/primer/classify/cache.rb
|
304
|
+
- app/lib/primer/fetch_or_fallback_helper.rb
|
305
|
+
- app/lib/primer/join_style_arguments_helper.rb
|
306
|
+
- app/lib/primer/view_helper.rb
|
307
|
+
- app/lib/primer/view_helper/dsl.rb
|
298
308
|
- lib/primer/view_components.rb
|
299
309
|
- lib/primer/view_components/engine.rb
|
300
310
|
- lib/primer/view_components/version.rb
|