primer_view_components 0.0.37 → 0.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +260 -24
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/components/primer/auto_complete.rb +4 -2
  6. data/app/components/primer/auto_complete/item.rb +1 -1
  7. data/app/components/primer/avatar_component.rb +22 -3
  8. data/app/components/primer/avatar_stack_component.rb +8 -5
  9. data/app/components/primer/base_button.rb +47 -0
  10. data/app/components/primer/base_component.rb +19 -12
  11. data/app/components/primer/blankslate_component.rb +10 -7
  12. data/app/components/primer/border_box_component.rb +1 -1
  13. data/app/components/primer/box_component.rb +1 -1
  14. data/app/components/primer/breadcrumb_component.rb +1 -1
  15. data/app/components/primer/button_component.html.erb +9 -0
  16. data/app/components/primer/button_component.rb +39 -21
  17. data/app/components/primer/{button_group_component.html.erb → button_group.html.erb} +0 -0
  18. data/app/components/primer/button_group.rb +61 -0
  19. data/app/components/primer/button_marketing_component.rb +4 -9
  20. data/app/components/primer/clipboard_copy.html.erb +8 -0
  21. data/app/components/primer/clipboard_copy.rb +26 -0
  22. data/app/components/primer/clipboard_copy_component.d.ts +1 -0
  23. data/app/components/primer/clipboard_copy_component.js +34 -0
  24. data/app/components/primer/clipboard_copy_component.ts +39 -0
  25. data/app/components/primer/close_button.rb +11 -2
  26. data/app/components/primer/component.rb +22 -3
  27. data/app/components/primer/counter_component.rb +6 -1
  28. data/app/components/primer/details_component.rb +1 -1
  29. data/app/components/primer/dropdown/menu_component.rb +1 -1
  30. data/app/components/primer/dropdown_component.rb +1 -1
  31. data/app/components/primer/flash_component.rb +3 -3
  32. data/app/components/primer/flex_component.rb +28 -1
  33. data/app/components/primer/flex_item_component.rb +20 -1
  34. data/app/components/primer/heading_component.rb +25 -4
  35. data/app/components/primer/hidden_text_expander.rb +4 -6
  36. data/app/components/primer/icon_button.rb +65 -0
  37. data/app/components/primer/image.rb +46 -0
  38. data/app/components/primer/image_crop.d.ts +1 -0
  39. data/app/components/primer/image_crop.html.erb +12 -0
  40. data/app/components/primer/image_crop.js +1 -0
  41. data/app/components/primer/image_crop.rb +36 -0
  42. data/app/components/primer/image_crop.ts +1 -0
  43. data/app/components/primer/label_component.rb +7 -3
  44. data/app/components/primer/layout_component.rb +1 -1
  45. data/app/components/primer/link_component.rb +1 -1
  46. data/app/components/primer/local_time.d.ts +1 -0
  47. data/app/components/primer/local_time.js +1 -0
  48. data/app/components/primer/local_time.rb +59 -0
  49. data/app/components/primer/local_time.ts +1 -0
  50. data/app/components/primer/{markdown_component.rb → markdown.rb} +12 -7
  51. data/app/components/primer/menu_component.rb +1 -1
  52. data/app/components/primer/navigation/tab_component.rb +8 -1
  53. data/app/components/primer/octicon_component.html.erb +7 -0
  54. data/app/components/primer/octicon_component.rb +53 -19
  55. data/app/components/primer/octicon_symbols_component.html.erb +3 -0
  56. data/app/components/primer/octicon_symbols_component.rb +61 -0
  57. data/app/components/primer/popover_component.rb +1 -1
  58. data/app/components/primer/primer.d.ts +3 -0
  59. data/app/components/primer/primer.js +3 -0
  60. data/app/components/primer/primer.ts +3 -0
  61. data/app/components/primer/progress_bar_component.rb +1 -1
  62. data/app/components/primer/spinner_component.rb +3 -3
  63. data/app/components/primer/state_component.rb +2 -2
  64. data/app/components/primer/subhead_component.rb +34 -4
  65. data/app/components/primer/tab_container_component.rb +1 -1
  66. data/app/components/primer/tab_nav_component.html.erb +4 -0
  67. data/app/components/primer/tab_nav_component.rb +45 -10
  68. data/app/components/primer/text_component.rb +6 -3
  69. data/app/components/primer/time_ago_component.rb +1 -1
  70. data/app/components/primer/timeline_item_component.rb +1 -1
  71. data/app/components/primer/{tooltip_component.rb → tooltip.rb} +11 -9
  72. data/app/components/primer/truncate.rb +7 -3
  73. data/app/components/primer/underline_nav_component.rb +1 -1
  74. data/app/lib/primer/classify.rb +21 -38
  75. data/app/lib/primer/classify/cache.rb +20 -15
  76. data/app/lib/primer/classify/flex.rb +111 -0
  77. data/app/lib/primer/classify/functional_border_colors.rb +1 -2
  78. data/app/lib/primer/fetch_or_fallback_helper.rb +2 -2
  79. data/app/lib/primer/octicon/cache.rb +42 -0
  80. data/app/lib/primer/view_helper.rb +2 -1
  81. data/lib/primer/view_components.rb +1 -1
  82. data/lib/primer/view_components/engine.rb +2 -0
  83. data/lib/primer/view_components/version.rb +1 -1
  84. data/lib/tasks/coverage.rake +14 -0
  85. data/lib/tasks/docs.rake +350 -0
  86. data/lib/tasks/statuses.rake +12 -0
  87. data/lib/yard/docs_helper.rb +57 -0
  88. data/static/statuses.json +54 -1
  89. metadata +51 -12
  90. data/app/components/primer/button_group_component.rb +0 -35
  91. data/app/components/primer/foo_bar.d.ts +0 -1
  92. data/app/components/primer/foo_bar.js +0 -1
@@ -0,0 +1,350 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :docs do
4
+ task :livereload do
5
+ require "listen"
6
+
7
+ Rake::Task["docs:build"].execute
8
+
9
+ puts "Listening for changes to documentation..."
10
+
11
+ listener = Listen.to("app") do |modified, added, removed|
12
+ puts "modified absolute path: #{modified}"
13
+ puts "added absolute path: #{added}"
14
+ puts "removed absolute path: #{removed}"
15
+
16
+ Rake::Task["docs:build"].execute
17
+ end
18
+ listener.start # not blocking
19
+ sleep
20
+ end
21
+
22
+ task :build do
23
+ require File.expand_path("./../../demo/config/environment.rb", __dir__)
24
+ require "primer/view_components"
25
+ require "yard/docs_helper"
26
+ require "view_component/test_helpers"
27
+ include ViewComponent::TestHelpers
28
+ include Primer::ViewHelper
29
+ include YARD::DocsHelper
30
+
31
+ Dir["./app/components/primer/**/*.rb"].sort.each { |file| require file }
32
+
33
+ YARD::Rake::YardocTask.new
34
+
35
+ # Custom tags for yard
36
+ YARD::Tags::Library.define_tag("Accessibility", :accessibility)
37
+ YARD::Tags::Library.define_tag("Deprecation", :deprecation)
38
+
39
+ puts "Building YARD documentation."
40
+ Rake::Task["yard"].execute
41
+
42
+ puts "Converting YARD documentation to Markdown files."
43
+
44
+ # Rails controller for rendering arbitrary ERB
45
+ view_context = ApplicationController.new.tap { |c| c.request = ActionDispatch::TestRequest.create }.view_context
46
+
47
+ registry = YARD::RegistryStore.new
48
+ registry.load!(".yardoc")
49
+ components = [
50
+ Primer::Image,
51
+ Primer::LocalTime,
52
+ Primer::OcticonSymbolsComponent,
53
+ Primer::ImageCrop,
54
+ Primer::IconButton,
55
+ Primer::AutoComplete,
56
+ Primer::AutoComplete::Item,
57
+ Primer::AvatarComponent,
58
+ Primer::AvatarStackComponent,
59
+ Primer::BaseButton,
60
+ Primer::BlankslateComponent,
61
+ Primer::BorderBoxComponent,
62
+ Primer::BoxComponent,
63
+ Primer::BreadcrumbComponent,
64
+ Primer::ButtonComponent,
65
+ Primer::ButtonGroup,
66
+ Primer::ButtonMarketingComponent,
67
+ Primer::ClipboardCopy,
68
+ Primer::CloseButton,
69
+ Primer::CounterComponent,
70
+ Primer::DetailsComponent,
71
+ Primer::DropdownComponent,
72
+ Primer::DropdownMenuComponent,
73
+ Primer::FlashComponent,
74
+ Primer::FlexComponent,
75
+ Primer::FlexItemComponent,
76
+ Primer::HeadingComponent,
77
+ Primer::HiddenTextExpander,
78
+ Primer::LabelComponent,
79
+ Primer::LayoutComponent,
80
+ Primer::LinkComponent,
81
+ Primer::Markdown,
82
+ Primer::MenuComponent,
83
+ Primer::Navigation::TabComponent,
84
+ Primer::OcticonComponent,
85
+ Primer::PopoverComponent,
86
+ Primer::ProgressBarComponent,
87
+ Primer::StateComponent,
88
+ Primer::SpinnerComponent,
89
+ Primer::SubheadComponent,
90
+ Primer::TabContainerComponent,
91
+ Primer::TabNavComponent,
92
+ Primer::TextComponent,
93
+ Primer::TimeAgoComponent,
94
+ Primer::TimelineItemComponent,
95
+ Primer::Tooltip,
96
+ Primer::Truncate,
97
+ Primer::UnderlineNavComponent
98
+ ]
99
+
100
+ js_components = [
101
+ Primer::LocalTime,
102
+ Primer::ImageCrop,
103
+ Primer::AutoComplete,
104
+ Primer::ClipboardCopy,
105
+ Primer::TabContainerComponent,
106
+ Primer::TabNavComponent,
107
+ Primer::TimeAgoComponent,
108
+ Primer::UnderlineNavComponent
109
+ ]
110
+
111
+ all_components = Primer::Component.descendants - [Primer::BaseComponent]
112
+ components_needing_docs = all_components - components
113
+
114
+ components_without_examples = []
115
+ args_for_components = []
116
+ classes_found_in_examples = []
117
+
118
+ components.each do |component|
119
+ documentation = registry.get(component.name)
120
+
121
+ # Primer::AvatarComponent => Avatar
122
+ short_name = component.name.gsub(/Primer|::|Component/, "")
123
+
124
+ path = Pathname.new("docs/content/components/#{short_name.downcase}.md")
125
+ path.dirname.mkdir unless path.dirname.exist?
126
+ File.open(path, "w") do |f|
127
+ f.puts("---")
128
+ f.puts("title: #{short_name}")
129
+ f.puts("status: #{component.status.to_s.capitalize}")
130
+ f.puts("source: https://github.com/primer/view_components/tree/main/app/components/primer/#{component.to_s.demodulize.underscore}.rb")
131
+ f.puts("storybook: https://primer.style/view-components/stories/?path=/story/primer-#{short_name.underscore.dasherize}-component")
132
+ f.puts("---")
133
+ f.puts
134
+ f.puts("import Example from '../../src/@primer/gatsby-theme-doctocat/components/example'")
135
+
136
+ if js_components.include?(component)
137
+ f.puts("import RequiresJSFlash from '../../src/@primer/gatsby-theme-doctocat/components/requires-js-flash'")
138
+ f.puts
139
+ f.puts("<RequiresJSFlash />")
140
+ end
141
+
142
+ f.puts
143
+ f.puts("<!-- Warning: AUTO-GENERATED file, do not edit. Add code comments to your Ruby instead <3 -->")
144
+ f.puts
145
+ f.puts(view_context.render(inline: documentation.base_docstring))
146
+
147
+ if documentation.tags(:accessibility).any?
148
+ f.puts
149
+ f.puts("## Accessibility")
150
+ documentation.tags(:accessibility).each do |tag|
151
+ f.puts
152
+ f.puts view_context.render(inline: tag.text)
153
+ end
154
+ end
155
+
156
+ if documentation.tags(:deprecated).any?
157
+ f.puts
158
+ f.puts("## Deprecation")
159
+ documentation.tags(:deprecated).each do |tag|
160
+ f.puts
161
+ f.puts view_context.render(inline: tag.text)
162
+ end
163
+ end
164
+
165
+ initialize_method = documentation.meths.find(&:constructor?)
166
+
167
+ if initialize_method.tags(:example).any?
168
+ f.puts
169
+ f.puts("## Examples")
170
+ else
171
+ components_without_examples << component
172
+ end
173
+
174
+ initialize_method.tags(:example).each do |tag|
175
+ (name, description) = tag.name.split("|")
176
+ f.puts
177
+ f.puts("### #{name}")
178
+ if description
179
+ f.puts
180
+ f.puts(description)
181
+ end
182
+ f.puts
183
+ html = view_context.render(inline: tag.text)
184
+ html.scan(/class="([^"]*)"/) do |classnames|
185
+ classes_found_in_examples.concat(classnames[0].split(" ").reject { |c| c.starts_with?("octicon", "js", "my-") }.map { ".#{_1}"})
186
+ end
187
+ f.puts("<Example src=\"#{html.tr('"', "\'").delete("\n")}\" />")
188
+ f.puts
189
+ f.puts("```erb")
190
+ f.puts(tag.text.to_s)
191
+ f.puts("```")
192
+ end
193
+
194
+ params = initialize_method.tags(:param)
195
+ if params.any?
196
+ f.puts
197
+ f.puts("## Arguments")
198
+ f.puts
199
+ f.puts("| Name | Type | Default | Description |")
200
+ f.puts("| :- | :- | :- | :- |")
201
+
202
+ args = []
203
+ params.each do |tag|
204
+ params = tag.object.parameters.find { |param| [tag.name.to_s, tag.name.to_s + ":"].include?(param[0]) }
205
+
206
+ default =
207
+ if params && params[1]
208
+ constant_name = "#{component.name}::#{params[1]}"
209
+ constant_value = constant_name.safe_constantize
210
+ if constant_value.nil?
211
+ pretty_value(params[1])
212
+ else
213
+ pretty_value(constant_value)
214
+ end
215
+ else
216
+ "N/A"
217
+ end
218
+
219
+ args << {
220
+ "name" => tag.name,
221
+ "type" => tag.types.join(", "),
222
+ "default" => default,
223
+ "description" => view_context.render(inline: tag.text)
224
+ }
225
+
226
+ f.puts("| `#{tag.name}` | `#{tag.types.join(', ')}` | #{default} | #{view_context.render(inline: tag.text)} |")
227
+ end
228
+
229
+ component_args = {
230
+ "component" => short_name,
231
+ "source" => "https://github.com/primer/view_components/tree/main/app/components/primer/#{component.to_s.demodulize.underscore}.rb",
232
+ "parameters" => args
233
+ }
234
+
235
+ args_for_components << component_args
236
+ end
237
+
238
+ # Slots V2 docs
239
+ slot_v2_methods = documentation.meths.select { |x| x[:renders_one] || x[:renders_many] }
240
+
241
+ if slot_v2_methods.any?
242
+ f.puts
243
+ f.puts("## Slots")
244
+
245
+ slot_v2_methods.each do |slot_documentation|
246
+ f.puts
247
+ f.puts("### `#{slot_documentation.name.to_s.capitalize}`")
248
+
249
+ if slot_documentation.base_docstring.present?
250
+ f.puts
251
+ f.puts(view_context.render(inline: slot_documentation.base_docstring))
252
+ end
253
+
254
+ param_tags = slot_documentation.tags(:param)
255
+ if param_tags.any?
256
+ f.puts
257
+ f.puts("| Name | Type | Default | Description |")
258
+ f.puts("| :- | :- | :- | :- |")
259
+ end
260
+
261
+ param_tags.each do |tag|
262
+ params = tag.object.parameters.find { |param| [tag.name.to_s, tag.name.to_s + ":"].include?(param[0]) }
263
+
264
+ default =
265
+ if params && params[1]
266
+ "`#{params[1]}`"
267
+ else
268
+ "N/A"
269
+ end
270
+
271
+ f.puts("| `#{tag.name}` | `#{tag.types.join(', ')}` | #{default} | #{view_context.render(inline: tag.text)} |")
272
+ end
273
+ end
274
+ end
275
+ end
276
+ end
277
+
278
+ File.open("static/classes.yml", "w") do |f|
279
+ f.puts YAML.dump(classes_found_in_examples.sort.uniq)
280
+ end
281
+
282
+ File.open("static/arguments.yml", "w") do |f|
283
+ f.puts YAML.dump(args_for_components)
284
+ end
285
+
286
+ # Build system arguments docs from BaseComponent
287
+ documentation = registry.get(Primer::BaseComponent.name)
288
+ File.open("docs/content/system-arguments.md", "w") do |f|
289
+ f.puts("---")
290
+ f.puts("title: System arguments")
291
+ f.puts("---")
292
+ f.puts
293
+ f.puts("<!-- Warning: AUTO-GENERATED file, do not edit. Add code comments to your Ruby instead <3 -->")
294
+ f.puts
295
+ f.puts(documentation.base_docstring)
296
+ f.puts
297
+
298
+ initialize_method = documentation.meths.find(&:constructor?)
299
+
300
+ f.puts(view_context.render(inline: initialize_method.base_docstring))
301
+ end
302
+
303
+ puts "Markdown compiled."
304
+
305
+ # Generate previews from documentation examples
306
+ components.each do |component|
307
+ documentation = registry.get(component.name)
308
+ short_name = component.name.gsub(/Primer|::/, "")
309
+ initialize_method = documentation.meths.find(&:constructor?)
310
+
311
+ next unless initialize_method.tags(:example).any?
312
+
313
+ yard_example_tags = initialize_method.tags(:example)
314
+
315
+ path = Pathname.new("demo/test/components/previews/primer/docs/#{short_name.underscore}_preview.rb")
316
+ path.dirname.mkdir unless path.dirname.exist?
317
+
318
+ File.open(path, "w") do |f|
319
+ f.puts("module Primer")
320
+ f.puts(" module Docs")
321
+ f.puts(" class #{short_name}Preview < ViewComponent::Preview")
322
+
323
+ yard_example_tags.each_with_index do |tag, index|
324
+ method_name = tag.name.split("|").first.downcase.parameterize.underscore
325
+ f.puts(" def #{method_name}; end")
326
+ f.puts unless index == yard_example_tags.size - 1
327
+ path = Pathname.new("demo/test/components/previews/primer/docs/#{short_name.underscore}_preview/#{method_name}.html.erb")
328
+ path.dirname.mkdir unless path.dirname.exist?
329
+ File.open(path, "w") do |view_file|
330
+ view_file.puts(tag.text.to_s)
331
+ end
332
+ end
333
+
334
+ f.puts(" end")
335
+ f.puts(" end")
336
+ f.puts("end")
337
+ end
338
+ end
339
+
340
+ if components_without_examples.any?
341
+ puts
342
+ puts "The following components have no examples defined: #{components_without_examples.map(&:name).join(', ')}. Consider adding an example?"
343
+ end
344
+
345
+ if components_needing_docs.any?
346
+ puts
347
+ puts "The following components needs docs. Care to contribute them? #{components_needing_docs.map(&:name).join(', ')}"
348
+ end
349
+ end
350
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ namespace :statuses do
4
+ task :dump do
5
+ require File.expand_path("./../../demo/config/environment.rb", __dir__)
6
+ require "primer/view_components"
7
+ # Loads all components for `.descendants` to work properly
8
+ Dir["./app/components/primer/**/*.rb"].sort.each { |file| require file }
9
+
10
+ Primer::ViewComponents.dump_statuses
11
+ end
12
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ module YARD
4
+ # Helper methods to use for yard documentation
5
+ module DocsHelper
6
+ def one_of(enumerable, lower: false)
7
+ values =
8
+ case enumerable
9
+ when Hash
10
+ enumerable.map do |key, value|
11
+ "#{pretty_value(key)} (#{pretty_value(value)})"
12
+ end
13
+ else
14
+ enumerable.map do |key|
15
+ pretty_value(key)
16
+ end
17
+ end
18
+
19
+ prefix = "One of"
20
+ prefix = prefix.downcase if lower
21
+
22
+ "#{prefix} #{values.to_sentence(last_word_connector: ', or ')}."
23
+ end
24
+
25
+ def link_to_system_arguments_docs
26
+ "[System arguments](/system-arguments)"
27
+ end
28
+
29
+ def link_to_typography_docs
30
+ "[Typography](/system-arguments#typography)"
31
+ end
32
+
33
+ def link_to_component(component)
34
+ short_name = component.name.gsub(/Primer|::|Component/, "")
35
+ "[#{short_name}](/components/#{short_name.downcase})"
36
+ end
37
+
38
+ def link_to_octicons
39
+ "[Octicon](https://primer.style/octicons/)"
40
+ end
41
+
42
+ def link_to_heading_practices
43
+ "[Learn more about best heading practices (WAI Headings)](https://www.w3.org/WAI/tutorials/page-structure/headings/)"
44
+ end
45
+
46
+ def pretty_value(val)
47
+ case val
48
+ when nil
49
+ "`nil`"
50
+ when Symbol
51
+ "`:#{val}`"
52
+ else
53
+ "`#{val}`"
54
+ end
55
+ end
56
+ end
57
+ end
data/static/statuses.json CHANGED
@@ -1 +1,54 @@
1
- {"Primer::AutoComplete":"beta","Primer::AutoComplete::Item":"beta","Primer::AvatarComponent":"beta","Primer::AvatarStackComponent":"beta","Primer::BaseComponent":"beta","Primer::BlankslateComponent":"beta","Primer::BorderBoxComponent":"beta","Primer::BoxComponent":"stable","Primer::BreadcrumbComponent":"beta","Primer::BreadcrumbComponent::ItemComponent":"alpha","Primer::ButtonComponent":"beta","Primer::ButtonGroupComponent":"alpha","Primer::ButtonMarketingComponent":"alpha","Primer::CloseButton":"alpha","Primer::CounterComponent":"beta","Primer::DetailsComponent":"beta","Primer::Dropdown::MenuComponent":"alpha","Primer::DropdownComponent":"alpha","Primer::DropdownMenuComponent":"deprecated","Primer::FlashComponent":"beta","Primer::FlexComponent":"alpha","Primer::FlexItemComponent":"alpha","Primer::HeadingComponent":"beta","Primer::HiddenTextExpander":"alpha","Primer::LabelComponent":"beta","Primer::LayoutComponent":"alpha","Primer::LinkComponent":"beta","Primer::MarkdownComponent":"alpha","Primer::MenuComponent":"alpha","Primer::Navigation::TabComponent":"alpha","Primer::OcticonComponent":"beta","Primer::PopoverComponent":"beta","Primer::ProgressBarComponent":"beta","Primer::SpinnerComponent":"beta","Primer::StateComponent":"beta","Primer::SubheadComponent":"beta","Primer::TabContainerComponent":"alpha","Primer::TabNavComponent":"alpha","Primer::TextComponent":"beta","Primer::TimeAgoComponent":"beta","Primer::TimelineItemComponent":"beta","Primer::TimelineItemComponent::BadgeComponent":"alpha","Primer::TooltipComponent":"alpha","Primer::Truncate":"beta","Primer::UnderlineNavComponent":"alpha"}
1
+ {
2
+ "Primer::AutoComplete": "beta",
3
+ "Primer::AutoComplete::Item": "beta",
4
+ "Primer::AvatarComponent": "beta",
5
+ "Primer::AvatarStackComponent": "beta",
6
+ "Primer::BaseButton": "beta",
7
+ "Primer::BaseComponent": "beta",
8
+ "Primer::BlankslateComponent": "beta",
9
+ "Primer::BorderBoxComponent": "beta",
10
+ "Primer::BoxComponent": "stable",
11
+ "Primer::BreadcrumbComponent": "beta",
12
+ "Primer::BreadcrumbComponent::ItemComponent": "alpha",
13
+ "Primer::ButtonComponent": "beta",
14
+ "Primer::ButtonGroup": "beta",
15
+ "Primer::ButtonMarketingComponent": "alpha",
16
+ "Primer::ClipboardCopy": "alpha",
17
+ "Primer::CloseButton": "beta",
18
+ "Primer::CounterComponent": "beta",
19
+ "Primer::DetailsComponent": "beta",
20
+ "Primer::Dropdown::MenuComponent": "alpha",
21
+ "Primer::DropdownComponent": "alpha",
22
+ "Primer::DropdownMenuComponent": "deprecated",
23
+ "Primer::FlashComponent": "beta",
24
+ "Primer::FlexComponent": "deprecated",
25
+ "Primer::FlexItemComponent": "deprecated",
26
+ "Primer::HeadingComponent": "beta",
27
+ "Primer::HiddenTextExpander": "alpha",
28
+ "Primer::IconButton": "beta",
29
+ "Primer::Image": "alpha",
30
+ "Primer::ImageCrop": "alpha",
31
+ "Primer::LabelComponent": "beta",
32
+ "Primer::LayoutComponent": "alpha",
33
+ "Primer::LinkComponent": "beta",
34
+ "Primer::LocalTime": "alpha",
35
+ "Primer::Markdown": "beta",
36
+ "Primer::MenuComponent": "alpha",
37
+ "Primer::Navigation::TabComponent": "alpha",
38
+ "Primer::OcticonComponent": "beta",
39
+ "Primer::OcticonSymbolsComponent": "alpha",
40
+ "Primer::PopoverComponent": "beta",
41
+ "Primer::ProgressBarComponent": "beta",
42
+ "Primer::SpinnerComponent": "beta",
43
+ "Primer::StateComponent": "beta",
44
+ "Primer::SubheadComponent": "beta",
45
+ "Primer::TabContainerComponent": "alpha",
46
+ "Primer::TabNavComponent": "alpha",
47
+ "Primer::TextComponent": "beta",
48
+ "Primer::TimeAgoComponent": "beta",
49
+ "Primer::TimelineItemComponent": "beta",
50
+ "Primer::TimelineItemComponent::BadgeComponent": "alpha",
51
+ "Primer::Tooltip": "beta",
52
+ "Primer::Truncate": "beta",
53
+ "Primer::UnderlineNavComponent": "alpha"
54
+ }