primer_view_components 0.0.110 → 0.0.112
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +50 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.rb +2 -2
- data/app/components/primer/alpha/auto_complete.css +1 -0
- data/app/components/primer/alpha/auto_complete.css.json +1 -0
- data/app/components/primer/alpha/auto_complete.css.map +1 -0
- data/app/components/primer/alpha/auto_complete.pcss +118 -0
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/banner.pcss +2 -3
- data/app/components/primer/alpha/button_marketing.css +1 -0
- data/app/components/primer/alpha/button_marketing.css.json +1 -0
- data/app/components/primer/alpha/button_marketing.css.map +1 -0
- data/app/components/primer/alpha/button_marketing.pcss +175 -0
- data/app/components/primer/{dropdown → alpha/dropdown}/menu.d.ts +0 -0
- data/app/components/primer/{dropdown → alpha/dropdown}/menu.html.erb +0 -0
- data/app/components/primer/{dropdown → alpha/dropdown}/menu.js +0 -0
- data/app/components/primer/alpha/dropdown/menu.rb +105 -0
- data/app/components/primer/{dropdown → alpha/dropdown}/menu.ts +0 -0
- data/app/components/primer/alpha/dropdown.css +1 -0
- data/app/components/primer/alpha/dropdown.css.json +1 -0
- data/app/components/primer/alpha/dropdown.css.map +1 -0
- data/app/components/primer/{dropdown.d.ts → alpha/dropdown.d.ts} +0 -0
- data/app/components/primer/{dropdown.html.erb → alpha/dropdown.html.erb} +0 -0
- data/app/components/primer/{dropdown.js → alpha/dropdown.js} +0 -0
- data/app/components/primer/alpha/dropdown.pcss +260 -0
- data/app/components/primer/alpha/dropdown.rb +154 -0
- data/app/components/primer/{dropdown.ts → alpha/dropdown.ts} +0 -0
- data/app/components/primer/alpha/tab_nav.css +1 -0
- data/app/components/primer/alpha/tab_nav.css.json +1 -0
- data/app/components/primer/alpha/tab_nav.css.map +1 -0
- data/app/components/primer/alpha/tab_nav.pcss +100 -0
- data/app/components/primer/alpha/underline_nav.css +1 -0
- data/app/components/primer/alpha/underline_nav.css.json +1 -0
- data/app/components/primer/alpha/underline_nav.css.map +1 -0
- data/app/components/primer/alpha/underline_nav.pcss +133 -0
- data/app/components/primer/alpha/x_banner.d.ts +2 -1
- data/app/components/primer/alpha/x_banner.js +0 -1
- data/app/components/primer/alpha/x_banner.ts +1 -1
- data/app/components/primer/beta/avatar.css +1 -0
- data/app/components/primer/beta/avatar.css.json +1 -0
- data/app/components/primer/beta/avatar.css.map +1 -0
- data/app/components/primer/beta/avatar.pcss +73 -0
- data/app/components/primer/beta/avatar_stack.css +1 -0
- data/app/components/primer/beta/avatar_stack.css.json +1 -0
- data/app/components/primer/beta/avatar_stack.css.map +1 -0
- data/app/components/primer/beta/avatar_stack.pcss +141 -0
- data/app/components/primer/beta/border_box.css +1 -0
- data/app/components/primer/beta/border_box.css.json +1 -0
- data/app/components/primer/beta/border_box.css.map +1 -0
- data/app/components/primer/beta/border_box.pcss +284 -0
- data/app/components/primer/beta/button.rb +1 -1
- data/app/components/primer/beta/flash.css +1 -0
- data/app/components/primer/beta/flash.css.json +1 -0
- data/app/components/primer/beta/flash.css.map +1 -0
- data/app/components/primer/beta/flash.pcss +143 -0
- data/app/components/primer/beta/link.css +1 -0
- data/app/components/primer/beta/link.css.json +1 -0
- data/app/components/primer/beta/link.css.map +1 -0
- data/app/components/primer/beta/link.pcss +60 -0
- data/app/components/primer/beta/popover.css +1 -0
- data/app/components/primer/beta/popover.css.json +1 -0
- data/app/components/primer/beta/popover.css.map +1 -0
- data/app/components/primer/{popover_component.html.erb → beta/popover.html.erb} +0 -0
- data/app/components/primer/beta/popover.pcss +225 -0
- data/app/components/primer/beta/popover.rb +127 -0
- data/app/components/primer/component.rb +2 -2
- data/app/components/primer/dropdown/menu.rb +5 -90
- data/app/components/primer/dropdown.rb +2 -145
- data/app/components/primer/menu_component.css +1 -0
- data/app/components/primer/menu_component.css.json +1 -0
- data/app/components/primer/menu_component.css.map +1 -0
- data/app/components/primer/menu_component.pcss +119 -0
- data/app/components/primer/popover_component.rb +3 -120
- data/app/components/primer/primer.d.ts +1 -1
- data/app/components/primer/primer.js +1 -1
- data/app/components/primer/primer.pcss +14 -1
- data/app/components/primer/primer.ts +1 -1
- data/app/components/primer/timeline_item_component.css +1 -0
- data/app/components/primer/timeline_item_component.css.json +1 -0
- data/app/components/primer/timeline_item_component.css.map +1 -0
- data/app/components/primer/timeline_item_component.pcss +93 -0
- data/lib/primer/deprecations.rb +4 -3
- data/lib/primer/view_components/linters/deprecated_components_counter.rb +15 -4
- data/lib/primer/view_components/linters/severity_schema.rb +14 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/tasks/docs.rake +3 -3
- data/previews/primer/alpha/banner_preview.rb +1 -1
- data/previews/primer/alpha/button_marketing_preview.rb +36 -0
- data/previews/primer/alpha/dropdown_preview.rb +210 -0
- data/previews/primer/alpha/tab_nav_preview.rb +55 -0
- data/previews/primer/beta/avatar_preview.rb +61 -5
- data/previews/primer/beta/avatar_stack_preview.rb +54 -12
- data/previews/primer/beta/blankslate_preview.rb +29 -5
- data/previews/primer/beta/border_box_preview.rb +65 -13
- data/previews/primer/beta/flash_preview.rb +45 -8
- data/previews/primer/beta/label_preview.rb +86 -8
- data/previews/primer/beta/link_preview.rb +28 -0
- data/previews/primer/beta/popover_preview.rb +79 -0
- data/static/arguments.json +40 -40
- data/static/audited_at.json +4 -3
- data/static/constants.json +56 -52
- data/static/statuses.json +8 -7
- metadata +70 -16
- data/app/components/primer/counter_component.rb +0 -7
- data/app/components/primer/image.rb +0 -7
- data/app/components/primer/progress_bar_component.rb +0 -7
- data/previews/primer/dropdown_preview.rb +0 -57
- data/previews/primer/popover_component_preview.rb +0 -34
@@ -18,15 +18,52 @@ module Primer
|
|
18
18
|
|
19
19
|
# @label Default
|
20
20
|
#
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
#
|
26
|
-
#
|
27
|
-
|
28
|
-
|
21
|
+
def default
|
22
|
+
render(Primer::Beta::Flash.new) { "This is a flash message!" }
|
23
|
+
end
|
24
|
+
|
25
|
+
# @!group Color Schemes
|
26
|
+
#
|
27
|
+
# @label Default
|
28
|
+
def color_scheme_default
|
29
|
+
render(Primer::Beta::Flash.new) { "This is a flash message!" }
|
30
|
+
end
|
31
|
+
|
32
|
+
# @label Warning
|
33
|
+
def color_scheme_warning
|
34
|
+
render(Primer::Beta::Flash.new(scheme: :warning)) { "This is a warning flash message!" }
|
29
35
|
end
|
36
|
+
|
37
|
+
# @label Danger
|
38
|
+
def color_scheme_danger
|
39
|
+
render(Primer::Beta::Flash.new(scheme: :danger)) { "This is a danger flash message!" }
|
40
|
+
end
|
41
|
+
|
42
|
+
# @label Success
|
43
|
+
def color_scheme_success
|
44
|
+
render(Primer::Beta::Flash.new(scheme: :success)) { "This is a success flash message!" }
|
45
|
+
end
|
46
|
+
#
|
47
|
+
# @!endgroup
|
48
|
+
|
49
|
+
# @!group More options
|
50
|
+
#
|
51
|
+
# @label Full width
|
52
|
+
def options_full
|
53
|
+
render(Primer::Beta::Flash.new(full: true)) { "This is a full width flash message!" }
|
54
|
+
end
|
55
|
+
|
56
|
+
# @label Dismissible
|
57
|
+
def options_dismissible
|
58
|
+
render(Primer::Beta::Flash.new(dismissible: true)) { "This is a dismissible flash message!" }
|
59
|
+
end
|
60
|
+
|
61
|
+
# @label With icon
|
62
|
+
def options_with_icon
|
63
|
+
render(Primer::Beta::Flash.new(icon: :info)) { "This is a flash message with an icon!" }
|
64
|
+
end
|
65
|
+
#
|
66
|
+
# @!endgroup
|
30
67
|
end
|
31
68
|
end
|
32
69
|
end
|
@@ -4,23 +4,101 @@ module Primer
|
|
4
4
|
module Beta
|
5
5
|
# @label Label
|
6
6
|
class LabelPreview < ViewComponent::Preview
|
7
|
-
# @label
|
7
|
+
# @label Playground
|
8
8
|
#
|
9
9
|
# @param size [Symbol] select [medium, large]
|
10
10
|
# @param tag [Symbol] select [span, summary, a, div]
|
11
11
|
# @param inline [Boolean] toggle
|
12
|
-
def
|
12
|
+
def playground(size: :medium, tag: :span, inline: false)
|
13
13
|
render(Primer::Beta::Label.new(tag: tag, size: size, inline: inline)) { "Label" }
|
14
14
|
end
|
15
15
|
|
16
|
-
# @label
|
16
|
+
# @label Default Options
|
17
|
+
def default
|
18
|
+
render(Primer::Beta::Label.new) { "Label" }
|
19
|
+
end
|
20
|
+
|
21
|
+
# @!group Color Schemes
|
17
22
|
#
|
18
|
-
# @
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
+
# @label Default
|
24
|
+
def color_scheme_default
|
25
|
+
render(Primer::Beta::Label.new) { "Default" }
|
26
|
+
end
|
27
|
+
|
28
|
+
# @label Primary
|
29
|
+
def color_scheme_primary
|
30
|
+
render(Primer::Beta::Label.new(scheme: :primary)) { "Primary" }
|
31
|
+
end
|
32
|
+
|
33
|
+
# @label Secondary
|
34
|
+
def color_scheme_secondary
|
35
|
+
render(Primer::Beta::Label.new(scheme: :secondary)) { "Secondary" }
|
36
|
+
end
|
37
|
+
|
38
|
+
# @label Accent
|
39
|
+
def color_scheme_accent
|
40
|
+
render(Primer::Beta::Label.new(scheme: :accent)) { "Accent" }
|
41
|
+
end
|
42
|
+
|
43
|
+
# @label Success
|
44
|
+
def color_scheme_success
|
45
|
+
render(Primer::Beta::Label.new(scheme: :success)) { "Success" }
|
46
|
+
end
|
47
|
+
|
48
|
+
# @label Attention
|
49
|
+
def color_scheme_attention
|
50
|
+
render(Primer::Beta::Label.new(scheme: :attention)) { "Attention" }
|
23
51
|
end
|
52
|
+
|
53
|
+
# @label Danger
|
54
|
+
def color_scheme_danger
|
55
|
+
render(Primer::Beta::Label.new(scheme: :danger)) { "Danger" }
|
56
|
+
end
|
57
|
+
|
58
|
+
# @label Severe
|
59
|
+
def color_scheme_severe
|
60
|
+
render(Primer::Beta::Label.new(scheme: :severe)) { "Severe" }
|
61
|
+
end
|
62
|
+
|
63
|
+
# @label Done
|
64
|
+
def color_scheme_done
|
65
|
+
render(Primer::Beta::Label.new(scheme: :done)) { "Done" }
|
66
|
+
end
|
67
|
+
|
68
|
+
# @label Sponsors
|
69
|
+
def color_scheme_sponsors
|
70
|
+
render(Primer::Beta::Label.new(scheme: :sponsors)) { "Sponsors" }
|
71
|
+
end
|
72
|
+
#
|
73
|
+
# @!endgroup
|
74
|
+
|
75
|
+
# @!group Sizes
|
76
|
+
#
|
77
|
+
# @label Default
|
78
|
+
def size_default
|
79
|
+
render(Primer::Beta::Label.new) { "Default" }
|
80
|
+
end
|
81
|
+
|
82
|
+
# @label Large
|
83
|
+
def size_large
|
84
|
+
render(Primer::Beta::Label.new(size: :large)) { "Large" }
|
85
|
+
end
|
86
|
+
#
|
87
|
+
# @!endgroup
|
88
|
+
|
89
|
+
# @!group Inline
|
90
|
+
#
|
91
|
+
# @label Default
|
92
|
+
def inline_default
|
93
|
+
render(Primer::Beta::Label.new) { "Default" }
|
94
|
+
end
|
95
|
+
|
96
|
+
# @label Inline
|
97
|
+
def inline_inline
|
98
|
+
render(Primer::Beta::Label.new(inline: true)) { "Inline" }
|
99
|
+
end
|
100
|
+
#
|
101
|
+
# @!endgroup
|
24
102
|
end
|
25
103
|
end
|
26
104
|
end
|
@@ -36,6 +36,34 @@ module Primer
|
|
36
36
|
"Link with tooltip"
|
37
37
|
end
|
38
38
|
end
|
39
|
+
|
40
|
+
# @!group Color Scheme
|
41
|
+
#
|
42
|
+
# @label Default
|
43
|
+
def color_scheme_default
|
44
|
+
render(Primer::Beta::Link.new(href: "#")) { "This is a default link color." }
|
45
|
+
end
|
46
|
+
|
47
|
+
# @label Primary
|
48
|
+
def color_scheme_primary
|
49
|
+
render(Primer::Beta::Link.new(href: "#", scheme: :primary)) { "This is a primary link color." }
|
50
|
+
end
|
51
|
+
|
52
|
+
# @label Primary, Muted
|
53
|
+
def color_scheme_primary_muted
|
54
|
+
render(Primer::Beta::Link.new(href: "#", scheme: :primary, muted: true)) { "This is a muted primary link color." }
|
55
|
+
end
|
56
|
+
|
57
|
+
# @label Secondary
|
58
|
+
def color_scheme_secondary
|
59
|
+
render(Primer::Beta::Link.new(href: "#", scheme: :secondary)) { "This is a secondary link color." }
|
60
|
+
end
|
61
|
+
|
62
|
+
# @label Secondary, Muted
|
63
|
+
def color_scheme_secondary_muted
|
64
|
+
render(Primer::Beta::Link.new(href: "#", scheme: :secondary, muted: true)) { "This is a muted secondary link color." }
|
65
|
+
end
|
66
|
+
# @!endgroup
|
39
67
|
end
|
40
68
|
end
|
41
69
|
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Primer
|
4
|
+
module Beta
|
5
|
+
# @label Popover
|
6
|
+
class PopoverPreview < ViewComponent::Preview
|
7
|
+
# @label Playground
|
8
|
+
#
|
9
|
+
# @param caret [Symbol] select [top, right, bottom, left, top_right, top_left, bottom_right, bottom_left, left_bottom, left_top, right_bottom, right_top]
|
10
|
+
def playground(caret: :top)
|
11
|
+
render Primer::Beta::Popover.new do |component|
|
12
|
+
component.with_heading do
|
13
|
+
"Activity feed"
|
14
|
+
end
|
15
|
+
component.with_body(caret: caret) do
|
16
|
+
"This is the Popover body."
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
# @label Default
|
22
|
+
#
|
23
|
+
# @param caret [Symbol] select [top, right, bottom, left, top_right, top_left, bottom_right, bottom_left, left_bottom, left_top, right_bottom, right_top]
|
24
|
+
def default(caret: :top)
|
25
|
+
render Primer::Beta::Popover.new do |component|
|
26
|
+
component.with_heading do
|
27
|
+
"Activity feed"
|
28
|
+
end
|
29
|
+
component.with_body(caret: caret) do
|
30
|
+
"This is the Popover body."
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# @label Large
|
36
|
+
def large
|
37
|
+
render Primer::Beta::Popover.new do |component|
|
38
|
+
component.with_body(large: true) do
|
39
|
+
"This is a large Popover body."
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# @!group Directions
|
45
|
+
def bottom_right
|
46
|
+
render Primer::Beta::Popover.new do |component|
|
47
|
+
component.with_body(caret: :bottom_right) do
|
48
|
+
"This is the Popover body."
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def top_right
|
54
|
+
render Primer::Beta::Popover.new do |component|
|
55
|
+
component.with_body(caret: :top_right) do
|
56
|
+
"This is the Popover body."
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
def bottom_left
|
62
|
+
render Primer::Beta::Popover.new do |component|
|
63
|
+
component.with_body(caret: :bottom_left) do
|
64
|
+
"This is the Popover body."
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
def top_left
|
70
|
+
render Primer::Beta::Popover.new do |component|
|
71
|
+
component.with_body(caret: :top_left) do
|
72
|
+
"This is the Popover body."
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
# @!endgroup
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
data/static/arguments.json
CHANGED
@@ -355,6 +355,32 @@
|
|
355
355
|
}
|
356
356
|
]
|
357
357
|
},
|
358
|
+
{
|
359
|
+
"component": "Dropdown",
|
360
|
+
"status": "alpha",
|
361
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/dropdown.rb",
|
362
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/dropdown/default/",
|
363
|
+
"parameters": [
|
364
|
+
{
|
365
|
+
"name": "overlay",
|
366
|
+
"type": "Symbol",
|
367
|
+
"default": "`:default`",
|
368
|
+
"description": "One of `:dark`, `:default`, or `:none`."
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"name": "with_caret",
|
372
|
+
"type": "Boolean",
|
373
|
+
"default": "`false`",
|
374
|
+
"description": "Whether or not a caret should be rendered in the button."
|
375
|
+
},
|
376
|
+
{
|
377
|
+
"name": "system_arguments",
|
378
|
+
"type": "Hash",
|
379
|
+
"default": "N/A",
|
380
|
+
"description": "[System arguments](/system-arguments)"
|
381
|
+
}
|
382
|
+
]
|
383
|
+
},
|
358
384
|
{
|
359
385
|
"component": "HiddenTextExpander",
|
360
386
|
"status": "alpha",
|
@@ -1683,6 +1709,20 @@
|
|
1683
1709
|
}
|
1684
1710
|
]
|
1685
1711
|
},
|
1712
|
+
{
|
1713
|
+
"component": "Popover",
|
1714
|
+
"status": "beta",
|
1715
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/popover.rb",
|
1716
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/popover/default/",
|
1717
|
+
"parameters": [
|
1718
|
+
{
|
1719
|
+
"name": "system_arguments",
|
1720
|
+
"type": "Hash",
|
1721
|
+
"default": "N/A",
|
1722
|
+
"description": "[System arguments](/system-arguments)"
|
1723
|
+
}
|
1724
|
+
]
|
1725
|
+
},
|
1686
1726
|
{
|
1687
1727
|
"component": "ProgressBar",
|
1688
1728
|
"status": "beta",
|
@@ -1845,32 +1885,6 @@
|
|
1845
1885
|
}
|
1846
1886
|
]
|
1847
1887
|
},
|
1848
|
-
{
|
1849
|
-
"component": "Dropdown",
|
1850
|
-
"status": "alpha",
|
1851
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/dropdown.rb",
|
1852
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/dropdown/default/",
|
1853
|
-
"parameters": [
|
1854
|
-
{
|
1855
|
-
"name": "overlay",
|
1856
|
-
"type": "Symbol",
|
1857
|
-
"default": "`:default`",
|
1858
|
-
"description": "One of `:dark`, `:default`, or `:none`."
|
1859
|
-
},
|
1860
|
-
{
|
1861
|
-
"name": "with_caret",
|
1862
|
-
"type": "Boolean",
|
1863
|
-
"default": "`false`",
|
1864
|
-
"description": "Whether or not a caret should be rendered in the button."
|
1865
|
-
},
|
1866
|
-
{
|
1867
|
-
"name": "system_arguments",
|
1868
|
-
"type": "Hash",
|
1869
|
-
"default": "N/A",
|
1870
|
-
"description": "[System arguments](/system-arguments)"
|
1871
|
-
}
|
1872
|
-
]
|
1873
|
-
},
|
1874
1888
|
{
|
1875
1889
|
"component": "DropdownMenu",
|
1876
1890
|
"status": "deprecated",
|
@@ -2227,20 +2241,6 @@
|
|
2227
2241
|
}
|
2228
2242
|
]
|
2229
2243
|
},
|
2230
|
-
{
|
2231
|
-
"component": "Popover",
|
2232
|
-
"status": "beta",
|
2233
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/popover_component.rb",
|
2234
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/popover/default/",
|
2235
|
-
"parameters": [
|
2236
|
-
{
|
2237
|
-
"name": "system_arguments",
|
2238
|
-
"type": "Hash",
|
2239
|
-
"default": "N/A",
|
2240
|
-
"description": "[System arguments](/system-arguments)"
|
2241
|
-
}
|
2242
|
-
]
|
2243
|
-
},
|
2244
2244
|
{
|
2245
2245
|
"component": "Spinner",
|
2246
2246
|
"status": "beta",
|
data/static/audited_at.json
CHANGED
@@ -11,6 +11,9 @@
|
|
11
11
|
"Primer::Alpha::Dialog::Body": "",
|
12
12
|
"Primer::Alpha::Dialog::Footer": "",
|
13
13
|
"Primer::Alpha::Dialog::Header": "",
|
14
|
+
"Primer::Alpha::Dropdown": "",
|
15
|
+
"Primer::Alpha::Dropdown::Menu": "",
|
16
|
+
"Primer::Alpha::Dropdown::Menu::Item": "",
|
14
17
|
"Primer::Alpha::HiddenTextExpander": "",
|
15
18
|
"Primer::Alpha::Image": "",
|
16
19
|
"Primer::Alpha::ImageCrop": "",
|
@@ -50,6 +53,7 @@
|
|
50
53
|
"Primer::Beta::IconButton": "",
|
51
54
|
"Primer::Beta::Label": "",
|
52
55
|
"Primer::Beta::Link": "",
|
56
|
+
"Primer::Beta::Popover": "",
|
53
57
|
"Primer::Beta::ProgressBar": "",
|
54
58
|
"Primer::Beta::Text": "",
|
55
59
|
"Primer::Beta::Truncate": "",
|
@@ -61,14 +65,12 @@
|
|
61
65
|
"Primer::ClipboardCopy": "",
|
62
66
|
"Primer::ConditionalWrapper": "",
|
63
67
|
"Primer::Content": "",
|
64
|
-
"Primer::CounterComponent": "",
|
65
68
|
"Primer::Dropdown": "",
|
66
69
|
"Primer::Dropdown::Menu": "",
|
67
70
|
"Primer::Dropdown::Menu::Item": "",
|
68
71
|
"Primer::DropdownMenuComponent": "",
|
69
72
|
"Primer::HellipButton": "",
|
70
73
|
"Primer::IconButton": "",
|
71
|
-
"Primer::Image": "",
|
72
74
|
"Primer::LabelComponent": "",
|
73
75
|
"Primer::LayoutComponent": "",
|
74
76
|
"Primer::LinkComponent": "",
|
@@ -79,7 +81,6 @@
|
|
79
81
|
"Primer::OcticonComponent": "",
|
80
82
|
"Primer::OcticonSymbolsComponent": "",
|
81
83
|
"Primer::PopoverComponent": "",
|
82
|
-
"Primer::ProgressBarComponent": "",
|
83
84
|
"Primer::SpinnerComponent": "",
|
84
85
|
"Primer::StateComponent": "",
|
85
86
|
"Primer::SubheadComponent": "",
|
data/static/constants.json
CHANGED
@@ -179,6 +179,43 @@
|
|
179
179
|
},
|
180
180
|
"Primer::Alpha::Dialog::Header": {
|
181
181
|
},
|
182
|
+
"Primer::Alpha::Dropdown": {
|
183
|
+
"Menu": "Primer::Alpha::Dropdown::Menu"
|
184
|
+
},
|
185
|
+
"Primer::Alpha::Dropdown::Menu": {
|
186
|
+
"AS_DEFAULT": "default",
|
187
|
+
"AS_OPTIONS": [
|
188
|
+
"default",
|
189
|
+
"list"
|
190
|
+
],
|
191
|
+
"DIRECTION_DEFAULT": "se",
|
192
|
+
"DIRECTION_OPTIONS": [
|
193
|
+
"se",
|
194
|
+
"sw",
|
195
|
+
"w",
|
196
|
+
"e",
|
197
|
+
"ne",
|
198
|
+
"s"
|
199
|
+
],
|
200
|
+
"Item": "Primer::Alpha::Dropdown::Menu::Item",
|
201
|
+
"SCHEME_DEFAULT": "default",
|
202
|
+
"SCHEME_MAPPINGS": {
|
203
|
+
"default": "",
|
204
|
+
"dark": "dropdown-menu-dark"
|
205
|
+
}
|
206
|
+
},
|
207
|
+
"Primer::Alpha::Dropdown::Menu::Item": {
|
208
|
+
"BUTTON_TAGS": [
|
209
|
+
"button",
|
210
|
+
"summary"
|
211
|
+
],
|
212
|
+
"TAG_DEFAULT": "a",
|
213
|
+
"TAG_OPTIONS": [
|
214
|
+
"a",
|
215
|
+
"button",
|
216
|
+
"summary"
|
217
|
+
]
|
218
|
+
},
|
182
219
|
"Primer::Alpha::HiddenTextExpander": {
|
183
220
|
},
|
184
221
|
"Primer::Alpha::Image": {
|
@@ -670,6 +707,24 @@
|
|
670
707
|
"span"
|
671
708
|
]
|
672
709
|
},
|
710
|
+
"Primer::Beta::Popover": {
|
711
|
+
"CARET_DEFAULT": "top",
|
712
|
+
"CARET_MAPPINGS": {
|
713
|
+
"top": "",
|
714
|
+
"bottom": "Popover-message--bottom",
|
715
|
+
"bottom_right": "Popover-message--bottom-right",
|
716
|
+
"bottom_left": "Popover-message--bottom-left",
|
717
|
+
"left": "Popover-message--left",
|
718
|
+
"left_bottom": "Popover-message--left-bottom",
|
719
|
+
"left_top": "Popover-message--left-top",
|
720
|
+
"right": "Popover-message--right",
|
721
|
+
"right_bottom": "Popover-message--right-bottom",
|
722
|
+
"right_top": "Popover-message--right-top",
|
723
|
+
"top_left": "Popover-message--top-left",
|
724
|
+
"top_right": "Popover-message--top-right"
|
725
|
+
},
|
726
|
+
"DEFAULT_HEADING_TAG": "h4"
|
727
|
+
},
|
673
728
|
"Primer::Beta::ProgressBar": {
|
674
729
|
"SIZE_DEFAULT": "default",
|
675
730
|
"SIZE_MAPPINGS": {
|
@@ -732,44 +787,13 @@
|
|
732
787
|
},
|
733
788
|
"Primer::Content": {
|
734
789
|
},
|
735
|
-
"Primer::CounterComponent": {
|
736
|
-
},
|
737
790
|
"Primer::Dropdown": {
|
738
791
|
"Menu": "Primer::Dropdown::Menu"
|
739
792
|
},
|
740
793
|
"Primer::Dropdown::Menu": {
|
741
|
-
"
|
742
|
-
"AS_OPTIONS": [
|
743
|
-
"default",
|
744
|
-
"list"
|
745
|
-
],
|
746
|
-
"DIRECTION_DEFAULT": "se",
|
747
|
-
"DIRECTION_OPTIONS": [
|
748
|
-
"se",
|
749
|
-
"sw",
|
750
|
-
"w",
|
751
|
-
"e",
|
752
|
-
"ne",
|
753
|
-
"s"
|
754
|
-
],
|
755
|
-
"Item": "Primer::Dropdown::Menu::Item",
|
756
|
-
"SCHEME_DEFAULT": "default",
|
757
|
-
"SCHEME_MAPPINGS": {
|
758
|
-
"default": "",
|
759
|
-
"dark": "dropdown-menu-dark"
|
760
|
-
}
|
794
|
+
"Item": "Primer::Dropdown::Menu::Item"
|
761
795
|
},
|
762
796
|
"Primer::Dropdown::Menu::Item": {
|
763
|
-
"BUTTON_TAGS": [
|
764
|
-
"button",
|
765
|
-
"summary"
|
766
|
-
],
|
767
|
-
"TAG_DEFAULT": "a",
|
768
|
-
"TAG_OPTIONS": [
|
769
|
-
"a",
|
770
|
-
"button",
|
771
|
-
"summary"
|
772
|
-
]
|
773
797
|
},
|
774
798
|
"Primer::DropdownMenuComponent": {
|
775
799
|
"DIRECTION_DEFAULT": "se",
|
@@ -800,8 +824,6 @@
|
|
800
824
|
"danger"
|
801
825
|
]
|
802
826
|
},
|
803
|
-
"Primer::Image": {
|
804
|
-
},
|
805
827
|
"Primer::LabelComponent": {
|
806
828
|
},
|
807
829
|
"Primer::LayoutComponent": {
|
@@ -884,24 +906,6 @@
|
|
884
906
|
"Primer::OcticonSymbolsComponent": {
|
885
907
|
},
|
886
908
|
"Primer::PopoverComponent": {
|
887
|
-
"CARET_DEFAULT": "top",
|
888
|
-
"CARET_MAPPINGS": {
|
889
|
-
"top": "",
|
890
|
-
"bottom": "Popover-message--bottom",
|
891
|
-
"bottom_right": "Popover-message--bottom-right",
|
892
|
-
"bottom_left": "Popover-message--bottom-left",
|
893
|
-
"left": "Popover-message--left",
|
894
|
-
"left_bottom": "Popover-message--left-bottom",
|
895
|
-
"left_top": "Popover-message--left-top",
|
896
|
-
"right": "Popover-message--right",
|
897
|
-
"right_bottom": "Popover-message--right-bottom",
|
898
|
-
"right_top": "Popover-message--right-top",
|
899
|
-
"top_left": "Popover-message--top-left",
|
900
|
-
"top_right": "Popover-message--top-right"
|
901
|
-
},
|
902
|
-
"DEFAULT_HEADING_TAG": "h4"
|
903
|
-
},
|
904
|
-
"Primer::ProgressBarComponent": {
|
905
909
|
},
|
906
910
|
"Primer::SpinnerComponent": {
|
907
911
|
"DEFAULT_SIZE": "medium",
|
data/static/statuses.json
CHANGED
@@ -11,6 +11,9 @@
|
|
11
11
|
"Primer::Alpha::Dialog::Body": "alpha",
|
12
12
|
"Primer::Alpha::Dialog::Footer": "alpha",
|
13
13
|
"Primer::Alpha::Dialog::Header": "alpha",
|
14
|
+
"Primer::Alpha::Dropdown": "alpha",
|
15
|
+
"Primer::Alpha::Dropdown::Menu": "alpha",
|
16
|
+
"Primer::Alpha::Dropdown::Menu::Item": "alpha",
|
14
17
|
"Primer::Alpha::HiddenTextExpander": "alpha",
|
15
18
|
"Primer::Alpha::Image": "alpha",
|
16
19
|
"Primer::Alpha::ImageCrop": "alpha",
|
@@ -50,6 +53,7 @@
|
|
50
53
|
"Primer::Beta::IconButton": "beta",
|
51
54
|
"Primer::Beta::Label": "beta",
|
52
55
|
"Primer::Beta::Link": "beta",
|
56
|
+
"Primer::Beta::Popover": "beta",
|
53
57
|
"Primer::Beta::ProgressBar": "beta",
|
54
58
|
"Primer::Beta::Text": "beta",
|
55
59
|
"Primer::Beta::Truncate": "beta",
|
@@ -61,14 +65,12 @@
|
|
61
65
|
"Primer::ClipboardCopy": "beta",
|
62
66
|
"Primer::ConditionalWrapper": "alpha",
|
63
67
|
"Primer::Content": "stable",
|
64
|
-
"Primer::
|
65
|
-
"Primer::Dropdown": "
|
66
|
-
"Primer::Dropdown::Menu": "
|
67
|
-
"Primer::Dropdown::Menu::Item": "alpha",
|
68
|
+
"Primer::Dropdown": "deprecated",
|
69
|
+
"Primer::Dropdown::Menu": "deprecated",
|
70
|
+
"Primer::Dropdown::Menu::Item": "deprecated",
|
68
71
|
"Primer::DropdownMenuComponent": "deprecated",
|
69
72
|
"Primer::HellipButton": "alpha",
|
70
73
|
"Primer::IconButton": "deprecated",
|
71
|
-
"Primer::Image": "deprecated",
|
72
74
|
"Primer::LabelComponent": "deprecated",
|
73
75
|
"Primer::LayoutComponent": "alpha",
|
74
76
|
"Primer::LinkComponent": "deprecated",
|
@@ -78,8 +80,7 @@
|
|
78
80
|
"Primer::Navigation::TabComponent": "alpha",
|
79
81
|
"Primer::OcticonComponent": "beta",
|
80
82
|
"Primer::OcticonSymbolsComponent": "alpha",
|
81
|
-
"Primer::PopoverComponent": "
|
82
|
-
"Primer::ProgressBarComponent": "deprecated",
|
83
|
+
"Primer::PopoverComponent": "deprecated",
|
83
84
|
"Primer::SpinnerComponent": "beta",
|
84
85
|
"Primer::StateComponent": "beta",
|
85
86
|
"Primer::SubheadComponent": "beta",
|