primer_view_components 0.0.66 → 0.0.69

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +104 -1
  3. data/README.md +1 -1
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/components/primer/alpha/tooltip.d.ts +24 -0
  7. data/app/components/primer/alpha/tooltip.js +381 -0
  8. data/app/components/primer/alpha/tooltip.rb +95 -0
  9. data/app/components/primer/alpha/tooltip.ts +377 -0
  10. data/app/components/primer/base_component.rb +2 -2
  11. data/app/components/primer/beta/auto_complete/auto_complete.html.erb +11 -3
  12. data/app/components/primer/beta/auto_complete.rb +20 -95
  13. data/app/components/primer/beta/blankslate.html.erb +6 -2
  14. data/app/components/primer/beta/blankslate.rb +8 -11
  15. data/app/components/primer/beta/truncate.rb +1 -0
  16. data/app/components/primer/content.rb +12 -0
  17. data/app/components/primer/details_component.rb +1 -1
  18. data/app/components/primer/dropdown.rb +2 -2
  19. data/app/components/primer/icon_button.rb +1 -1
  20. data/app/components/primer/markdown.rb +1 -1
  21. data/app/components/primer/popover_component.rb +15 -20
  22. data/app/components/primer/primer.d.ts +1 -0
  23. data/app/components/primer/primer.js +1 -0
  24. data/app/components/primer/primer.ts +1 -0
  25. data/app/components/primer/subhead_component.html.erb +1 -1
  26. data/app/components/primer/subhead_component.rb +1 -1
  27. data/app/components/primer/tooltip.rb +1 -1
  28. data/app/lib/primer/test_selector_helper.rb +1 -1
  29. data/lib/primer/classify/utilities.yml +20 -0
  30. data/lib/primer/view_components/linters/button_component_migration_counter.rb +1 -1
  31. data/lib/primer/view_components/version.rb +1 -1
  32. data/lib/rubocop/cop/primer/component_name_migration.rb +35 -0
  33. data/lib/rubocop/cop/primer/primer_octicon.rb +1 -1
  34. data/lib/tasks/docs.rake +19 -11
  35. data/lib/tasks/utilities.rake +1 -1
  36. data/static/arguments.yml +34 -1
  37. data/static/audited_at.json +2 -1
  38. data/static/classes.yml +5 -4
  39. data/static/constants.json +20 -8
  40. data/static/statuses.json +3 -2
  41. metadata +17 -11
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Primer
4
+ # Use `Content` as a helper to render content passed to a slot without adding any tags.
5
+ class Content < Primer::Component
6
+ status :stable
7
+
8
+ def call
9
+ content
10
+ end
11
+ end
12
+ end
@@ -49,7 +49,7 @@ module Primer
49
49
  # <% end %>
50
50
  #
51
51
  # @param overlay [Symbol] Dictates the type of overlay to render with. <%= one_of(Primer::DetailsComponent::OVERLAY_MAPPINGS.keys) %>
52
- # @param reset [Boolean] Defatuls to false. If set to true, it will remove the default caret and remove style from the summary element
52
+ # @param reset [Boolean] Defaults to false. If set to true, it will remove the default caret and remove style from the summary element
53
53
  # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
54
54
  def initialize(overlay: NO_OVERLAY, reset: false, **system_arguments)
55
55
  @system_arguments = deny_tag_argument(**system_arguments)
@@ -6,12 +6,12 @@ module Primer
6
6
  class Dropdown < Primer::Component
7
7
  # Required trigger for the dropdown. Has the same arguments as <%= link_to_component(Primer::ButtonComponent) %>,
8
8
  # but it is locked as a `summary` tag.
9
- renders_one :button, lambda { |**system_arguments, &block|
9
+ renders_one :button, lambda { |**system_arguments|
10
10
  @button_arguments = system_arguments
11
11
  @button_arguments[:button] = true
12
12
  @button_arguments[:dropdown] = @with_caret
13
13
 
14
- view_context.capture { block&.call }
14
+ Primer::Content.new
15
15
  }
16
16
 
17
17
  # Required context menu for the dropdown.
@@ -6,7 +6,7 @@ module Primer
6
6
  # @accessibility
7
7
  # `IconButton` requires an `aria-label`, which will provide assistive technologies with an accessible label.
8
8
  # The `aria-label` should describe the action to be invoked rather than the icon itself. For instance,
9
- # if your `IconButton` renders a magnifying glass icon and invokves a search action, the `aria-label` should be
9
+ # if your `IconButton` renders a magnifying glass icon and invokes a search action, the `aria-label` should be
10
10
  # `"Search"` instead of `"Magnifying glass"`.
11
11
  # [Learn more about best functional image practices (WAI Images)](https://www.w3.org/WAI/tutorials/images/functional)
12
12
  class IconButton < Primer::Component
@@ -93,7 +93,7 @@ module Primer
93
93
  # <ol>
94
94
  # <li>Michael Jackson</li>
95
95
  # <li>Michael Bolton</li>
96
- # <li>Michael Buble</li>
96
+ # <li>Michael Bublé</li>
97
97
  # </ol>
98
98
  #
99
99
  # <p>And an unordered task list:</p>
@@ -41,22 +41,21 @@ module Primer
41
41
  # @param caret [Symbol] <%= one_of(Primer::PopoverComponent::CARET_MAPPINGS.keys) %>
42
42
  # @param large [Boolean] Whether to use the large version of the component.
43
43
  # @param system_arguments [Hash] <%= link_to_system_arguments_docs %>
44
- renders_one :body, lambda { |caret: CARET_DEFAULT, large: false, **system_arguments, &block|
45
- system_arguments[:classes] = class_names(
46
- system_arguments[:classes],
44
+ renders_one :body, lambda { |caret: CARET_DEFAULT, large: false, **system_arguments|
45
+ @body_arguments = system_arguments
46
+ @body_arguments[:classes] = class_names(
47
+ @body_arguments[:classes],
47
48
  "Popover-message Box",
48
49
  CARET_MAPPINGS[fetch_or_fallback(CARET_MAPPINGS.keys, caret, CARET_DEFAULT)],
49
50
  "Popover-message--large" => large
50
51
  )
51
- system_arguments[:p] ||= 4
52
- system_arguments[:mt] ||= 2
53
- system_arguments[:mx] ||= :auto
54
- system_arguments[:text_align] ||= :left
55
- system_arguments[:box_shadow] ||= :large
52
+ @body_arguments[:p] ||= 4
53
+ @body_arguments[:mt] ||= 2
54
+ @body_arguments[:mx] ||= :auto
55
+ @body_arguments[:text_align] ||= :left
56
+ @body_arguments[:box_shadow] ||= :large
56
57
 
57
- # This is a hack to allow the parent to set the slot's content
58
- @body_arguments = system_arguments
59
- view_context.capture { block&.call }
58
+ Primer::Content.new
60
59
  }
61
60
 
62
61
  # @example Default
@@ -89,20 +88,16 @@ module Primer
89
88
  # <% end %>
90
89
  # <% end %>
91
90
  #
92
- # @example With HTML body
91
+ # @example With multiple elements in the body
93
92
  # <%= render Primer::PopoverComponent.new do |component| %>
94
93
  # <% component.heading do %>
95
94
  # Activity feed
96
95
  # <% end %>
97
96
  # <% component.body(caret: :left) do %>
98
- # <p> This is the Popover body.</p>
99
- # <div>
100
- # This is using HTML.
101
- # <ul>
102
- # <li>Thing #1</li>
103
- # <li>Thing #2</li>
104
- # </ul>
105
- # </div>
97
+ # <p>This is the Popover body.</p>
98
+ # <%= render Primer::ButtonComponent.new(type: :submit) do %>
99
+ # Got it!
100
+ # <% end %>
106
101
  # <% end %>
107
102
  # <% end %>
108
103
  #
@@ -5,3 +5,4 @@ import './time_ago_component';
5
5
  import './local_time';
6
6
  import './image_crop';
7
7
  import './dropdown';
8
+ import './alpha/tooltip';
@@ -5,3 +5,4 @@ import './time_ago_component';
5
5
  import './local_time';
6
6
  import './image_crop';
7
7
  import './dropdown';
8
+ import './alpha/tooltip';
@@ -5,3 +5,4 @@ import './time_ago_component'
5
5
  import './local_time'
6
6
  import './image_crop'
7
7
  import './dropdown'
8
+ import './alpha/tooltip'
@@ -1,5 +1,5 @@
1
1
  <%= render Primer::BaseComponent.new(**@system_arguments) do %>
2
2
  <%= heading %>
3
- <%= actions %>
4
3
  <%= description %>
4
+ <%= actions %>
5
5
  <% end %>
@@ -4,7 +4,7 @@ module Primer
4
4
  # Use `Subhead` as the start of a section. The `:heading` slot will render an `<h2>` font-sized text.
5
5
  #
6
6
  # - Optionally set the `:description` slot to render a short description and the `:actions` slot for a related action.
7
- # - Use a succint, one-line description for the `:description` slot. For longer descriptions, omit the description slot and render a paragraph below the `Subhead`.
7
+ # - Use a succinct, one-line description for the `:description` slot. For longer descriptions, omit the description slot and render a paragraph below the `Subhead`.
8
8
  # - Use the actions slot to render a related action to the right of the heading. Use <%= link_to_component(Primer::ButtonComponent) %> or <%= link_to_component(Primer::LinkComponent) %>.
9
9
  #
10
10
  # @accessibility
@@ -3,7 +3,7 @@
3
3
  module Primer
4
4
  # `Tooltip` is a wrapper component that will apply a tooltip to the provided content.
5
5
  class Tooltip < Primer::Component
6
- status :beta
6
+ status :deprecated
7
7
 
8
8
  DIRECTION_DEFAULT = :n
9
9
  ALIGN_DEFAULT = :default
@@ -4,7 +4,7 @@ module Primer
4
4
  # Module to allow components to deal with the `test_selector` argument.
5
5
  # It will only add the selector if env is not Production.
6
6
  #
7
- # test_selecotr: "foo" => data-test-selector="foo"
7
+ # test_selector: "foo" => data-test-selector="foo"
8
8
  module TestSelectorHelper
9
9
  TEST_SELECTOR_TAG = :test_selector
10
10
 
@@ -39,6 +39,10 @@
39
39
  - color-fg-severe
40
40
  :danger:
41
41
  - color-fg-danger
42
+ :open:
43
+ - color-fg-open
44
+ :closed:
45
+ - color-fg-closed
42
46
  :done:
43
47
  - color-fg-done
44
48
  :sponsors:
@@ -78,6 +82,14 @@
78
82
  - color-bg-danger
79
83
  :danger_emphasis:
80
84
  - color-bg-danger-emphasis
85
+ :open:
86
+ - color-bg-open
87
+ :open_emphasis:
88
+ - color-bg-open-emphasis
89
+ :closed:
90
+ - color-bg-closed
91
+ :closed_emphasis:
92
+ - color-bg-closed-emphasis
81
93
  :done:
82
94
  - color-bg-done
83
95
  :done_emphasis:
@@ -113,6 +125,14 @@
113
125
  - color-border-danger
114
126
  :danger_emphasis:
115
127
  - color-border-danger-emphasis
128
+ :open:
129
+ - color-border-open
130
+ :open_emphasis:
131
+ - color-border-open-emphasis
132
+ :closed:
133
+ - color-border-closed
134
+ :closed_emphasis:
135
+ - color-border-closed-emphasis
116
136
  :done:
117
137
  - color-border-done
118
138
  :done_emphasis:
@@ -15,7 +15,7 @@ module ERBLint
15
15
  constant: "TAG_OPTIONS"
16
16
  ).freeze
17
17
 
18
- # CloseButton component has preference when this class is seen in conjuction with `btn`.
18
+ # CloseButton component has preference when this class is seen in conjunction with `btn`.
19
19
  DISALLOWED_CLASSES = %w[close-button].freeze
20
20
  CLASSES = %w[btn btn-link].freeze
21
21
  MESSAGE = "We are migrating buttons to use [Primer::ButtonComponent](https://primer.style/view-components/components/button), please try to use that instead of raw HTML."
@@ -5,7 +5,7 @@ module Primer
5
5
  module VERSION
6
6
  MAJOR = 0
7
7
  MINOR = 0
8
- PATCH = 66
8
+ PATCH = 69
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH].join(".")
11
11
  end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rubocop"
4
+
5
+ # :nocov:
6
+ module RuboCop
7
+ module Cop
8
+ module Primer
9
+ # This cop ensures that components don't use deprecated component names
10
+ #
11
+ # bad
12
+ # Primer::ComponentNameComponent.new()
13
+ #
14
+ # good
15
+ # Primer::Beta::ComponentName.new()
16
+ class ComponentNameMigration < BaseCop
17
+ DEPRECATIONS = {
18
+ "Primer::TestComponent" => "Primer::Beta::Test"
19
+ }.freeze
20
+
21
+ def on_send(node)
22
+ return unless node.method_name == :new && !node.receiver.nil? && DEPRECATIONS.key?(node.receiver.const_name)
23
+
24
+ add_offense(node.receiver, message: "Don't use deprecated names")
25
+ end
26
+
27
+ def autocorrect(node)
28
+ lambda do |corrector|
29
+ corrector.replace(node, DEPRECATIONS[node.const_name])
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -207,7 +207,7 @@ module RuboCop
207
207
  return node.source unless node.type == :str
208
208
  return ":#{node.value}" unless node.value.include?("-")
209
209
 
210
- # If the icon contains `-` we need to cast the string as a symbole
210
+ # If the icon contains `-` we need to cast the string as a symbol
211
211
  # E.g: `arrow-down` becomes `:"arrow-down"`
212
212
  ":#{node.source}"
213
213
  end
data/lib/tasks/docs.rake CHANGED
@@ -82,7 +82,8 @@ namespace :docs do
82
82
  Primer::Alpha::UnderlineNav,
83
83
  Primer::Alpha::UnderlinePanels,
84
84
  Primer::Alpha::TabNav,
85
- Primer::Alpha::TabPanels
85
+ Primer::Alpha::TabPanels,
86
+ Primer::Alpha::Tooltip
86
87
  ]
87
88
 
88
89
  js_components = [
@@ -94,7 +95,8 @@ namespace :docs do
94
95
  Primer::TabContainerComponent,
95
96
  Primer::TimeAgoComponent,
96
97
  Primer::Alpha::UnderlinePanels,
97
- Primer::Alpha::TabPanels
98
+ Primer::Alpha::TabPanels,
99
+ Primer::Alpha::Tooltip
98
100
  ]
99
101
 
100
102
  all_components = Primer::Component.descendants - [Primer::BaseComponent]
@@ -106,7 +108,8 @@ namespace :docs do
106
108
  errors = []
107
109
 
108
110
  # Deletes docs before regenerating them, guaranteeing that we don't keep stale docs.
109
- FileUtils.rm_rf(Dir.glob("docs/content/components/**/*.md"))
111
+ components_content_glob = File.join(*%w[docs content components ** *.md])
112
+ FileUtils.rm_rf(components_content_glob)
110
113
 
111
114
  components.sort_by(&:name).each do |component|
112
115
  documentation = registry.get(component.name)
@@ -114,7 +117,7 @@ namespace :docs do
114
117
  data = docs_metadata(component)
115
118
 
116
119
  path = Pathname.new(data[:path])
117
- path.dirname.mkdir unless path.dirname.exist?
120
+ path.dirname.mkpath unless path.dirname.exist?
118
121
  File.open(path, "w") do |f|
119
122
  f.puts("---")
120
123
  f.puts("title: #{data[:title]}")
@@ -167,12 +170,12 @@ namespace :docs do
167
170
  f.puts("| Name | Type | Default | Description |")
168
171
  f.puts("| :- | :- | :- | :- |")
169
172
 
170
- docummented_params = params.map(&:name)
173
+ documented_params = params.map(&:name)
171
174
  component_params = component.instance_method(:initialize).parameters.map { |p| p.last.to_s }
172
175
 
173
- if (docummented_params & component_params).size != component_params.size
176
+ if (documented_params & component_params).size != component_params.size
174
177
  err = { arguments: {} }
175
- (component_params - docummented_params).each do |arg|
178
+ (component_params - documented_params).each do |arg|
176
179
  err[:arguments][arg] = "Not documented"
177
180
  end
178
181
 
@@ -315,7 +318,6 @@ namespace :docs do
315
318
  nav_entries = Dir[File.join(*%w[adr *.md])].sort.map do |orig_path|
316
319
  orig_file_name = File.basename(orig_path)
317
320
  url_name = orig_file_name.chomp(".md")
318
- title = ActiveSupport::Inflector.titleize(url_name.sub(/\A\d+-/, ""))
319
321
 
320
322
  file_contents = File.read(orig_path)
321
323
  file_contents = <<~CONTENTS.sub(/\n+\z/, "\n")
@@ -323,6 +325,12 @@ namespace :docs do
323
325
  #{file_contents}
324
326
  CONTENTS
325
327
 
328
+ title_match = /^# (.+)/.match(file_contents)
329
+ title = title_match[1]
330
+
331
+ # Don't include initial ADR for recording ADRs
332
+ next nil if title == "Record architecture decisions"
333
+
326
334
  File.write(File.join(adr_content_dir, orig_file_name), file_contents)
327
335
  puts "Copied #{orig_path}"
328
336
 
@@ -332,9 +340,9 @@ namespace :docs do
332
340
  nav_yaml_file = File.join(*%w[docs src @primer gatsby-theme-doctocat nav.yml])
333
341
  nav_yaml = YAML.load_file(nav_yaml_file)
334
342
  adr_entry = {
335
- "title" => "Architecture Decisions",
343
+ "title" => "Architecture decisions",
336
344
  "url" => "/adr",
337
- "children" => nav_entries
345
+ "children" => nav_entries.compact
338
346
  }
339
347
 
340
348
  existing_index = nav_yaml.index { |entry| entry["url"] == "/adr" }
@@ -360,7 +368,7 @@ namespace :docs do
360
368
  short_name = component.name.gsub(/Primer|::/, "")
361
369
  initialize_method = documentation.meths.find(&:constructor?)
362
370
 
363
- next unless initialize_method.tags(:example).any?
371
+ next unless initialize_method&.tags(:example)&.any?
364
372
 
365
373
  yard_example_tags = initialize_method.tags(:example)
366
374
 
@@ -86,7 +86,7 @@ namespace :utilities do
86
86
  classname.sub!(/^[^-]+-/, "")
87
87
  end
88
88
 
89
- # Change the rest from hypens to underscores
89
+ # Change the rest from hyphens to underscores
90
90
  classname.sub!(/-/, "_")
91
91
 
92
92
  # convert padding/margin negative values ie n7 to -7
data/static/arguments.yml CHANGED
@@ -95,6 +95,30 @@
95
95
  type: Hash
96
96
  default: N/A
97
97
  description: "[System arguments](/system-arguments)"
98
+ - component: Tooltip
99
+ source: https://github.com/primer/view_components/tree/main/app/components/primer/alpha/tooltip.rb
100
+ parameters:
101
+ - name: for_id
102
+ type: String
103
+ default: N/A
104
+ description: The ID of the element that the tooltip should be attached to.
105
+ - name: type
106
+ type: Symbol
107
+ default: N/A
108
+ description: One of `:description` and `:label`.
109
+ - name: direction
110
+ type: Symbol
111
+ default: "`:s`"
112
+ description: One of `:e`, `:n`, `:ne`, `:nw`, `:s`, `:se`, `:sw`, or `:w`.
113
+ - name: text
114
+ type: String
115
+ default: N/A
116
+ description: The text content of the tooltip. This should be brief and no longer
117
+ than a sentence.
118
+ - name: system_arguments
119
+ type: Hash
120
+ default: N/A
121
+ description: "[System arguments](/system-arguments)"
98
122
  - component: UnderlineNav
99
123
  source: https://github.com/primer/view_components/tree/main/app/components/primer/alpha/underline_nav.rb
100
124
  parameters:
@@ -165,6 +189,10 @@
165
189
  - component: AutoComplete
166
190
  source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/auto_complete.rb
167
191
  parameters:
192
+ - name: label_text
193
+ type: String
194
+ default: N/A
195
+ description: The label of the input.
168
196
  - name: src
169
197
  type: String
170
198
  default: N/A
@@ -177,6 +205,11 @@
177
205
  type: String
178
206
  default: N/A
179
207
  description: Id of the list element.
208
+ - name: is_label_visible
209
+ type: Boolean
210
+ default: "`true`"
211
+ description: Controls if the label is visible. If `false`, screen reader only
212
+ text will be added.
180
213
  - name: system_arguments
181
214
  type: Hash
182
215
  default: N/A
@@ -444,7 +477,7 @@
444
477
  - name: reset
445
478
  type: Boolean
446
479
  default: "`false`"
447
- description: Defatuls to false. If set to true, it will remove the default caret
480
+ description: Defaults to false. If set to true, it will remove the default caret
448
481
  and remove style from the summary element
449
482
  - name: system_arguments
450
483
  type: Hash
@@ -6,12 +6,12 @@
6
6
  "Primer::Alpha::Layout::Sidebar": "",
7
7
  "Primer::Alpha::TabNav": "",
8
8
  "Primer::Alpha::TabPanels": "",
9
+ "Primer::Alpha::Tooltip": "",
9
10
  "Primer::Alpha::UnderlineNav": "",
10
11
  "Primer::Alpha::UnderlinePanels": "",
11
12
  "Primer::BaseButton": "",
12
13
  "Primer::BaseComponent": "",
13
14
  "Primer::Beta::AutoComplete": "",
14
- "Primer::Beta::AutoComplete::Input": "",
15
15
  "Primer::Beta::AutoComplete::Item": "",
16
16
  "Primer::Beta::Avatar": "",
17
17
  "Primer::Beta::AvatarStack": "",
@@ -28,6 +28,7 @@
28
28
  "Primer::ButtonGroup": "",
29
29
  "Primer::ClipboardCopy": "",
30
30
  "Primer::CloseButton": "",
31
+ "Primer::Content": "",
31
32
  "Primer::CounterComponent": "",
32
33
  "Primer::DetailsComponent": "",
33
34
  "Primer::Dropdown": "",
data/static/classes.yml CHANGED
@@ -88,7 +88,10 @@
88
88
  - ".avatar-more"
89
89
  - ".avatar-small"
90
90
  - ".blankslate"
91
+ - ".blankslate-action"
92
+ - ".blankslate-heading"
91
93
  - ".blankslate-icon"
94
+ - ".blankslate-image"
92
95
  - ".blankslate-narrow"
93
96
  - ".blankslate-spacious"
94
97
  - ".border"
@@ -163,17 +166,15 @@
163
166
  - ".form-control"
164
167
  - ".gutter-condensed"
165
168
  - ".gutter-lg"
166
- - ".h2"
167
169
  - ".hidden-text-expander"
168
170
  - ".inline"
169
171
  - ".left-0"
170
172
  - ".lh-0"
171
173
  - ".list-style-none"
174
+ - ".m-2"
172
175
  - ".markdown-body"
173
176
  - ".mb-0"
174
- - ".mb-1"
175
177
  - ".mb-2"
176
- - ".mb-3"
177
178
  - ".menu"
178
179
  - ".menu-heading"
179
180
  - ".menu-item"
@@ -181,7 +182,6 @@
181
182
  - ".mr-2"
182
183
  - ".mr-n1"
183
184
  - ".mt-2"
184
- - ".mt-3"
185
185
  - ".mt-5"
186
186
  - ".mx-auto"
187
187
  - ".no-underline"
@@ -194,6 +194,7 @@
194
194
  - ".pr-2"
195
195
  - ".pt-5"
196
196
  - ".right-0"
197
+ - ".sr-only"
197
198
  - ".tabnav"
198
199
  - ".tabnav-tab"
199
200
  - ".tabnav-tabs"
@@ -138,6 +138,24 @@
138
138
  "div"
139
139
  ]
140
140
  },
141
+ "Primer::Alpha::Tooltip": {
142
+ "DIRECTION_DEFAULT": "s",
143
+ "DIRECTION_OPTIONS": [
144
+ "s",
145
+ "n",
146
+ "e",
147
+ "w",
148
+ "ne",
149
+ "nw",
150
+ "se",
151
+ "sw"
152
+ ],
153
+ "TYPE_FALLBACK": "description",
154
+ "TYPE_OPTIONS": [
155
+ "label",
156
+ "description"
157
+ ]
158
+ },
141
159
  "Primer::Alpha::UnderlineNav": {
142
160
  "BODY_TAG_DEFAULT": "ul",
143
161
  "TAG_DEFAULT": "nav",
@@ -181,16 +199,8 @@
181
199
  ]
182
200
  },
183
201
  "Primer::Beta::AutoComplete": {
184
- "Input": "Primer::Beta::AutoComplete::Input",
185
202
  "Item": "Primer::Beta::AutoComplete::Item"
186
203
  },
187
- "Primer::Beta::AutoComplete::Input": {
188
- "DEFAULT_TYPE": "text",
189
- "TYPE_OPTIONS": [
190
- "text",
191
- "search"
192
- ]
193
- },
194
204
  "Primer::Beta::AutoComplete::Item": {
195
205
  },
196
206
  "Primer::Beta::Avatar": {
@@ -317,6 +327,8 @@
317
327
  "submit"
318
328
  ]
319
329
  },
330
+ "Primer::Content": {
331
+ },
320
332
  "Primer::CounterComponent": {
321
333
  "DEFAULT_SCHEME": "default",
322
334
  "DEPRECATED_SCHEME_OPTIONS": [
data/static/statuses.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "Primer::Alpha::Layout::Sidebar": "alpha",
7
7
  "Primer::Alpha::TabNav": "alpha",
8
8
  "Primer::Alpha::TabPanels": "alpha",
9
+ "Primer::Alpha::Tooltip": "alpha",
9
10
  "Primer::Alpha::UnderlineNav": "alpha",
10
11
  "Primer::Alpha::UnderlinePanels": "alpha",
11
12
  "Primer::BaseButton": "beta",
12
13
  "Primer::BaseComponent": "beta",
13
14
  "Primer::Beta::AutoComplete": "beta",
14
- "Primer::Beta::AutoComplete::Input": "alpha",
15
15
  "Primer::Beta::AutoComplete::Item": "beta",
16
16
  "Primer::Beta::Avatar": "beta",
17
17
  "Primer::Beta::AvatarStack": "beta",
@@ -28,6 +28,7 @@
28
28
  "Primer::ButtonGroup": "beta",
29
29
  "Primer::ClipboardCopy": "beta",
30
30
  "Primer::CloseButton": "beta",
31
+ "Primer::Content": "stable",
31
32
  "Primer::CounterComponent": "beta",
32
33
  "Primer::DetailsComponent": "beta",
33
34
  "Primer::Dropdown": "alpha",
@@ -61,6 +62,6 @@
61
62
  "Primer::TimeAgoComponent": "beta",
62
63
  "Primer::TimelineItemComponent": "beta",
63
64
  "Primer::TimelineItemComponent::BadgeComponent": "alpha",
64
- "Primer::Tooltip": "beta",
65
+ "Primer::Tooltip": "deprecated",
65
66
  "Primer::Truncate": "beta"
66
67
  }