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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +104 -1
- data/README.md +1 -1
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/components/primer/alpha/tooltip.d.ts +24 -0
- data/app/components/primer/alpha/tooltip.js +381 -0
- data/app/components/primer/alpha/tooltip.rb +95 -0
- data/app/components/primer/alpha/tooltip.ts +377 -0
- data/app/components/primer/base_component.rb +2 -2
- data/app/components/primer/beta/auto_complete/auto_complete.html.erb +11 -3
- data/app/components/primer/beta/auto_complete.rb +20 -95
- data/app/components/primer/beta/blankslate.html.erb +6 -2
- data/app/components/primer/beta/blankslate.rb +8 -11
- data/app/components/primer/beta/truncate.rb +1 -0
- data/app/components/primer/content.rb +12 -0
- data/app/components/primer/details_component.rb +1 -1
- data/app/components/primer/dropdown.rb +2 -2
- data/app/components/primer/icon_button.rb +1 -1
- data/app/components/primer/markdown.rb +1 -1
- data/app/components/primer/popover_component.rb +15 -20
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/components/primer/subhead_component.html.erb +1 -1
- data/app/components/primer/subhead_component.rb +1 -1
- data/app/components/primer/tooltip.rb +1 -1
- data/app/lib/primer/test_selector_helper.rb +1 -1
- data/lib/primer/classify/utilities.yml +20 -0
- data/lib/primer/view_components/linters/button_component_migration_counter.rb +1 -1
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/rubocop/cop/primer/component_name_migration.rb +35 -0
- data/lib/rubocop/cop/primer/primer_octicon.rb +1 -1
- data/lib/tasks/docs.rake +19 -11
- data/lib/tasks/utilities.rake +1 -1
- data/static/arguments.yml +34 -1
- data/static/audited_at.json +2 -1
- data/static/classes.yml +5 -4
- data/static/constants.json +20 -8
- data/static/statuses.json +3 -2
- metadata +17 -11
@@ -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]
|
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
|
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
|
-
|
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
|
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
|
@@ -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
|
45
|
-
|
46
|
-
|
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
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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
|
-
|
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
|
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>
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
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
|
#
|
@@ -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
|
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
|
@@ -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
|
-
#
|
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
|
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."
|
@@ -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
|
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
|
-
|
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.
|
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
|
-
|
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 (
|
176
|
+
if (documented_params & component_params).size != component_params.size
|
174
177
|
err = { arguments: {} }
|
175
|
-
(component_params -
|
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
|
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
|
371
|
+
next unless initialize_method&.tags(:example)&.any?
|
364
372
|
|
365
373
|
yard_example_tags = initialize_method.tags(:example)
|
366
374
|
|
data/lib/tasks/utilities.rake
CHANGED
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:
|
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
|
data/static/audited_at.json
CHANGED
@@ -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"
|
data/static/constants.json
CHANGED
@@ -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": "
|
65
|
+
"Primer::Tooltip": "deprecated",
|
65
66
|
"Primer::Truncate": "beta"
|
66
67
|
}
|