primer_view_components 0.0.109 → 0.0.110

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  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/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/{beta → alpha}/banner.css +0 -0
  8. data/app/components/primer/alpha/banner.css.json +1 -0
  9. data/app/components/primer/{beta → alpha}/banner.css.map +1 -1
  10. data/app/components/primer/{beta → alpha}/banner.html.erb +0 -0
  11. data/app/components/primer/{beta → alpha}/banner.pcss +1 -0
  12. data/app/components/primer/{beta → alpha}/banner.rb +12 -12
  13. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  14. data/app/components/primer/alpha/segmented_control.pcss +1 -0
  15. data/app/components/primer/alpha/toggle_switch.css +1 -0
  16. data/app/components/primer/alpha/toggle_switch.css.json +1 -0
  17. data/app/components/primer/alpha/toggle_switch.css.map +1 -0
  18. data/app/components/primer/alpha/toggle_switch.pcss +244 -0
  19. data/app/components/primer/{beta → alpha}/x_banner.d.ts +0 -0
  20. data/app/components/primer/{beta → alpha}/x_banner.js +0 -0
  21. data/app/components/primer/{beta → alpha}/x_banner.ts +0 -0
  22. data/app/components/primer/beta/blankslate.css +1 -0
  23. data/app/components/primer/beta/blankslate.css.json +1 -0
  24. data/app/components/primer/beta/blankslate.css.map +1 -0
  25. data/app/components/primer/beta/blankslate.pcss +90 -0
  26. data/app/components/primer/beta/breadcrumbs.css +1 -0
  27. data/app/components/primer/beta/breadcrumbs.css.json +1 -0
  28. data/app/components/primer/beta/breadcrumbs.css.map +1 -0
  29. data/app/components/primer/beta/breadcrumbs.pcss +30 -0
  30. data/app/components/primer/beta/button.css.map +1 -1
  31. data/app/components/primer/beta/button.pcss +0 -4
  32. data/app/components/primer/beta/counter.css +1 -0
  33. data/app/components/primer/beta/counter.css.json +1 -0
  34. data/app/components/primer/beta/counter.css.map +1 -0
  35. data/app/components/primer/beta/counter.pcss +35 -0
  36. data/app/components/primer/beta/label.css +1 -0
  37. data/app/components/primer/beta/label.css.json +1 -0
  38. data/app/components/primer/beta/label.css.map +1 -0
  39. data/app/components/primer/beta/label.pcss +103 -0
  40. data/app/components/primer/beta/progress_bar.css +1 -0
  41. data/app/components/primer/beta/progress_bar.css.json +1 -0
  42. data/app/components/primer/beta/progress_bar.css.map +1 -0
  43. data/app/components/primer/{progress_bar_component.html.erb → beta/progress_bar.html.erb} +0 -0
  44. data/app/components/primer/beta/progress_bar.pcss +26 -0
  45. data/app/components/primer/beta/progress_bar.rb +72 -0
  46. data/app/components/primer/beta/truncate.css +1 -0
  47. data/app/components/primer/beta/truncate.css.json +1 -0
  48. data/app/components/primer/beta/truncate.css.map +1 -0
  49. data/app/components/primer/beta/truncate.pcss +31 -0
  50. data/app/components/primer/primer.d.ts +1 -1
  51. data/app/components/primer/primer.js +1 -1
  52. data/app/components/primer/primer.pcss +12 -2
  53. data/app/components/primer/primer.ts +1 -1
  54. data/app/components/primer/progress_bar_component.rb +2 -65
  55. data/app/components/primer/state_component.css +1 -0
  56. data/app/components/primer/state_component.css.json +1 -0
  57. data/app/components/primer/state_component.css.map +1 -0
  58. data/app/components/primer/state_component.pcss +50 -0
  59. data/app/components/primer/subhead_component.css +1 -0
  60. data/app/components/primer/subhead_component.css.json +1 -0
  61. data/app/components/primer/subhead_component.css.map +1 -0
  62. data/app/components/primer/subhead_component.pcss +49 -0
  63. data/app/components/primer/truncate.css +1 -0
  64. data/app/components/primer/truncate.css.json +1 -0
  65. data/app/components/primer/truncate.css.map +1 -0
  66. data/app/components/primer/truncate.pcss +30 -0
  67. data/lib/primer/deprecations.rb +2 -1
  68. data/lib/primer/view_components/version.rb +1 -1
  69. data/lib/tasks/docs.rake +3 -3
  70. data/lib/tasks/test.rake +8 -0
  71. data/previews/primer/alpha/banner_preview/with_action_button.html.erb +4 -0
  72. data/previews/primer/{beta → alpha}/banner_preview/with_action_content.html.erb +1 -1
  73. data/previews/primer/alpha/banner_preview.rb +97 -0
  74. data/previews/primer/alpha/segmented_control_preview.rb +106 -20
  75. data/previews/primer/beta/counter_preview.rb +55 -8
  76. data/previews/primer/beta/progress_bar_preview.rb +60 -0
  77. data/static/arguments.json +76 -76
  78. data/static/audited_at.json +2 -1
  79. data/static/constants.json +34 -32
  80. data/static/statuses.json +3 -2
  81. metadata +57 -16
  82. data/app/components/primer/beta/banner.css.json +0 -1
  83. data/previews/primer/beta/banner_preview/with_action_button.html.erb +0 -4
  84. data/previews/primer/beta/banner_preview.rb +0 -54
  85. data/previews/primer/progress_bar_component_preview.rb +0 -28
@@ -23,53 +23,139 @@ module Primer
23
23
  end
24
24
  end
25
25
 
26
- # @param full_width [Boolean] toggle
27
- # @param size select [small, medium, large]
28
- def default(full_width: false, size: :medium)
29
- render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", full_width: full_width, size: size)) do |c|
26
+ # @label Default
27
+ def default
28
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view")) do |c|
30
29
  c.with_item(label: "Preview", selected: true)
31
30
  c.with_item(label: "Raw")
32
31
  c.with_item(label: "Blame")
33
32
  end
34
33
  end
35
34
 
36
- # @param hide_labels [Boolean] toggle
37
- # @param size select [small, medium, large]
38
- def full_width(hide_labels: false, size: :medium)
39
- render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", full_width: true, hide_labels: hide_labels, size: size)) do |c|
40
- c.with_item(label: "Preview", icon: (hide_labels ? :zap : nil), selected: true)
41
- c.with_item(label: "Raw", icon: (hide_labels ? :zap : nil))
42
- c.with_item(label: "Blame", icon: (hide_labels ? :zap : nil))
35
+ # @!group Full width
36
+ # @label Size small
37
+ def full_width_small(hide_labels: false, size: :small)
38
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", full_width: true, size: :small)) do |c|
39
+ c.with_item(label: "Preview", selected: true)
40
+ c.with_item(label: "Raw")
41
+ c.with_item(label: "Blame")
43
42
  end
44
43
  end
45
44
 
46
- # @param full_width [Boolean] toggle
47
- # @param size select [small, medium, large]
48
- def icons_and_text(full_width: false, size: :medium)
49
- render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", full_width: full_width, size: size)) do |c|
45
+ # @label Size medium
46
+ def full_width_medium(hide_labels: false, size: :medium)
47
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", full_width: true, size: :medium)) do |c|
48
+ c.with_item(label: "Preview", selected: true)
49
+ c.with_item(label: "Raw")
50
+ c.with_item(label: "Blame")
51
+ end
52
+ end
53
+
54
+ # @label Size large
55
+ def full_width_large(hide_labels: false, size: :large)
56
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", full_width: true, size: :large)) do |c|
57
+ c.with_item(label: "Preview", selected: true)
58
+ c.with_item(label: "Raw")
59
+ c.with_item(label: "Blame")
60
+ end
61
+ end
62
+ # @!endgroup
63
+
64
+ # @!group Icons and text
65
+ # @label Size small
66
+ def icons_and_text_small
67
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", size: :small)) do |c|
50
68
  c.with_item(label: "Preview", icon: :eye, selected: true)
51
69
  c.with_item(label: "Raw", icon: :"file-code")
52
70
  c.with_item(label: "Blame", icon: :people)
53
71
  end
54
72
  end
55
73
 
56
- # @param full_width [Boolean] toggle
57
- # @param size select [small, medium, large]
58
- def icons_only(full_width: false, size: :medium)
59
- render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", full_width: full_width, hide_labels: true, size: size)) do |c|
74
+ # @label Size medium
75
+ def icons_and_text_medium
76
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", size: :medium)) do |c|
77
+ c.with_item(label: "Preview", icon: :eye, selected: true)
78
+ c.with_item(label: "Raw", icon: :"file-code")
79
+ c.with_item(label: "Blame", icon: :people)
80
+ end
81
+ end
82
+
83
+ # @label Size large
84
+ def icons_and_text_large
85
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", size: :large)) do |c|
86
+ c.with_item(label: "Preview", icon: :eye, selected: true)
87
+ c.with_item(label: "Raw", icon: :"file-code")
88
+ c.with_item(label: "Blame", icon: :people)
89
+ end
90
+ end
91
+ # @!endgroup
92
+
93
+ # @!group Icons only
94
+ # @label Size small
95
+ def icon_only_small
96
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", hide_labels: true, size: :small)) do |c|
97
+ c.with_item(label: "Preview", icon: :eye, selected: true)
98
+ c.with_item(label: "Raw", icon: :"file-code")
99
+ c.with_item(label: "Blame", icon: :people)
100
+ end
101
+ end
102
+
103
+ # @label Size medium
104
+ def icon_only_medium
105
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", hide_labels: true, size: :medium)) do |c|
106
+ c.with_item(label: "Preview", icon: :eye, selected: true)
107
+ c.with_item(label: "Raw", icon: :"file-code")
108
+ c.with_item(label: "Blame", icon: :people)
109
+ end
110
+ end
111
+
112
+ # @label Size large
113
+ def icon_only_large
114
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", hide_labels: true, size: :large)) do |c|
115
+ c.with_item(label: "Preview", icon: :eye, selected: true)
116
+ c.with_item(label: "Raw", icon: :"file-code")
117
+ c.with_item(label: "Blame", icon: :people)
118
+ end
119
+ end
120
+
121
+ # @label Full width, size small
122
+ def icon_only_full_width_small
123
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", hide_labels: true, full_width: true, size: :small)) do |c|
124
+ c.with_item(label: "Preview", icon: :eye, selected: true)
125
+ c.with_item(label: "Raw", icon: :"file-code")
126
+ c.with_item(label: "Blame", icon: :people)
127
+ end
128
+ end
129
+
130
+ # @label Full width, size medium
131
+ def icon_only_full_width_medium
132
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", hide_labels: true, full_width: true, size: :medium)) do |c|
133
+ c.with_item(label: "Preview", icon: :eye, selected: true)
134
+ c.with_item(label: "Raw", icon: :"file-code")
135
+ c.with_item(label: "Blame", icon: :people)
136
+ end
137
+ end
138
+
139
+ # @label Full width, size large
140
+ def icon_only_full_width_large
141
+ render(Primer::Alpha::SegmentedControl.new("aria-label": "File view", hide_labels: true, full_width: true, size: :large)) do |c|
60
142
  c.with_item(label: "Preview", icon: :eye, selected: true)
61
143
  c.with_item(label: "Raw", icon: :"file-code")
62
144
  c.with_item(label: "Blame", icon: :people)
63
145
  end
64
146
  end
147
+ # @!endgroup
65
148
 
66
- def with_links_as_tags
149
+ # NOTE: this preview uses a group to force it's display below the other groups
150
+ # @!group With link as tag
151
+ def with_link_as_tag
67
152
  render(Primer::Alpha::SegmentedControl.new) do |c|
68
153
  c.with_item(tag: :a, href: "#", label: "Preview", icon: :eye, selected: true)
69
154
  c.with_item(tag: :a, href: "#", label: "Raw", icon: :"file-code")
70
155
  c.with_item(tag: :a, href: "#", label: "Blame", icon: :people)
71
156
  end
72
157
  end
158
+ # @!endgroup
73
159
  end
74
160
  end
75
161
  end
@@ -16,20 +16,67 @@ module Primer
16
16
  end
17
17
 
18
18
  # @label Default Options
19
- #
20
- # @param count number
21
- # @param limit number
22
- # @param hide_if_zero toggle
23
- # @param round toggle
24
- # @param scheme [Symbol] select [[Default, default], [Primary, primary], [Secondary, secondary]]]
25
- def default(count: 1_000, limit: nil, round: false, hide_if_zero: false, scheme: :default)
26
- render(Primer::Beta::Counter.new(count: count, round: round, limit: limit, hide_if_zero: hide_if_zero, scheme: scheme))
19
+ def default
20
+ render(Primer::Beta::Counter.new(count: 1_000))
27
21
  end
28
22
 
29
23
  # @label With Text
30
24
  def with_text
31
25
  render(Primer::Beta::Counter.new(text: "∞"))
32
26
  end
27
+
28
+ # @!group Color Schemes
29
+ #
30
+ # @label Default
31
+ def color_scheme_default
32
+ render(Primer::Beta::Counter.new(count: 1_000))
33
+ end
34
+
35
+ # @label Primary
36
+ def color_scheme_primary
37
+ render(Primer::Beta::Counter.new(count: 1_000, scheme: :primary))
38
+ end
39
+
40
+ # @label Secondary
41
+ def color_scheme_secondary
42
+ render(Primer::Beta::Counter.new(count: 1_000, scheme: :secondary))
43
+ end
44
+ #
45
+ # @!endgroup
46
+
47
+ # @!group Rounded Number
48
+ #
49
+ # @label Default (No Rounding)
50
+ def rounding_default
51
+ render(Primer::Beta::Counter.new(count: 1_234))
52
+ end
53
+
54
+ # @label Rounded Above 1,000
55
+ def rounding_above_1000
56
+ render(Primer::Beta::Counter.new(count: 1_234, round: true))
57
+ end
58
+
59
+ # @label Rounded Below 1,000
60
+ def rounding_below_1000
61
+ render(Primer::Beta::Counter.new(count: 999, round: true))
62
+ end
63
+
64
+ # @label Rounded Large Numbers w/ Default Limit
65
+ def rounding_large_number
66
+ render(Primer::Beta::Counter.new(count: 4_567_890, round: true))
67
+ end
68
+
69
+ # @label Rounded Large Numbers, Less Than Custom Limit
70
+ def rounding_large_number_less_than_custom_limit
71
+ render(Primer::Beta::Counter.new(count: 4_567_890, limit: 1_000_000_000, round: true))
72
+ end
73
+
74
+ # @label Rounded Large Numbers, Greater Than Custom Limit
75
+ def rounding_large_number_greater_than_custom_limit
76
+ render(Primer::Beta::Counter.new(count: 4_567_890, limit: 1_000_000, round: true))
77
+ end
78
+ #
79
+ # @!endgroup
33
80
  end
34
81
  end
35
82
  end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Primer
4
+ module Beta
5
+ # @label ProgressBar
6
+ class ProgressBarPreview < ViewComponent::Preview
7
+ # @label Playground
8
+ #
9
+ # @param size [Symbol] select [default, small, large]
10
+ def playground(size: :default)
11
+ render(Primer::Beta::ProgressBar.new(size: size)) do |component|
12
+ component.with_item(percentage: 10)
13
+ component.with_item(bg: :accent_emphasis, percentage: 20)
14
+ component.with_item(bg: :danger_emphasis, percentage: 30)
15
+ end
16
+ end
17
+
18
+ # @label Default
19
+ #
20
+ # @param size [Symbol] select [default, small, large]
21
+ def default(size: :default)
22
+ render(Primer::Beta::ProgressBar.new(size: size)) do |component|
23
+ component.with_item(percentage: 10)
24
+ component.with_item(bg: :accent_emphasis, percentage: 20)
25
+ component.with_item(bg: :danger_emphasis, percentage: 30)
26
+ end
27
+ end
28
+
29
+ # @!group Sizes
30
+ #
31
+ # @label Size small
32
+ def size_small
33
+ render(Primer::Beta::ProgressBar.new(size: :small)) do |component|
34
+ component.with_item(percentage: 10)
35
+ component.with_item(bg: :accent_emphasis, percentage: 20)
36
+ component.with_item(bg: :danger_emphasis, percentage: 30)
37
+ end
38
+ end
39
+
40
+ # @label Size default
41
+ def size_default
42
+ render(Primer::Beta::ProgressBar.new(size: :default)) do |component|
43
+ component.with_item(percentage: 10)
44
+ component.with_item(bg: :accent_emphasis, percentage: 20)
45
+ component.with_item(bg: :danger_emphasis, percentage: 30)
46
+ end
47
+ end
48
+
49
+ # @label Size large
50
+ def size_large
51
+ render(Primer::Beta::ProgressBar.new(size: :large)) do |component|
52
+ component.with_item(percentage: 10)
53
+ component.with_item(bg: :accent_emphasis, percentage: 20)
54
+ component.with_item(bg: :danger_emphasis, percentage: 30)
55
+ end
56
+ end
57
+ # @!endgroup
58
+ end
59
+ end
60
+ end
@@ -205,6 +205,62 @@
205
205
  }
206
206
  ]
207
207
  },
208
+ {
209
+ "component": "Banner",
210
+ "status": "alpha",
211
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/banner.rb",
212
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/banner/default/",
213
+ "parameters": [
214
+ {
215
+ "name": "full",
216
+ "type": "Boolean",
217
+ "default": "`false`",
218
+ "description": "Whether the component should take up the full width of the screen."
219
+ },
220
+ {
221
+ "name": "full_when_narrow",
222
+ "type": "Boolean",
223
+ "default": "`false`",
224
+ "description": "Whether the component should take up the full width of the screen when rendered inside smaller viewports."
225
+ },
226
+ {
227
+ "name": "dismissible",
228
+ "type": "Boolean",
229
+ "default": "`false`",
230
+ "description": "Whether the component can be dismissed with an \"x\" button."
231
+ },
232
+ {
233
+ "name": "description",
234
+ "type": "String",
235
+ "default": "`nil`",
236
+ "description": "Description text rendered underneath the message."
237
+ },
238
+ {
239
+ "name": "icon",
240
+ "type": "Symbol",
241
+ "default": "`nil`",
242
+ "description": "The name of an [Octicon](https://primer.style/octicons/) icon to use. If no icon is provided, a default one will be chosen based on the scheme."
243
+ },
244
+ {
245
+ "name": "scheme",
246
+ "type": "Symbol",
247
+ "default": "`:default`",
248
+ "description": "One of `:danger`, `:default`, `:success`, or `:warning`."
249
+ },
250
+ {
251
+ "name": "reappear",
252
+ "type": "Boolean",
253
+ "default": "`false`",
254
+ "description": "Whether or not the flash banner should reappear after being dismissed. Only for use in test and preview environments."
255
+ },
256
+ {
257
+ "name": "system_arguments",
258
+ "type": "Hash",
259
+ "default": "N/A",
260
+ "description": "[System arguments](/system-arguments)"
261
+ }
262
+ ]
263
+ },
208
264
  {
209
265
  "component": "ButtonMarketing",
210
266
  "status": "alpha",
@@ -1117,62 +1173,6 @@
1117
1173
  }
1118
1174
  ]
1119
1175
  },
1120
- {
1121
- "component": "Banner",
1122
- "status": "beta",
1123
- "source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/banner.rb",
1124
- "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/banner/default/",
1125
- "parameters": [
1126
- {
1127
- "name": "full",
1128
- "type": "Boolean",
1129
- "default": "`false`",
1130
- "description": "Whether the component should take up the full width of the screen."
1131
- },
1132
- {
1133
- "name": "full_when_narrow",
1134
- "type": "Boolean",
1135
- "default": "`false`",
1136
- "description": "Whether the component should take up the full width of the screen when rendered inside smaller viewports."
1137
- },
1138
- {
1139
- "name": "dismissible",
1140
- "type": "Boolean",
1141
- "default": "`false`",
1142
- "description": "Whether the component can be dismissed with an \"x\" button."
1143
- },
1144
- {
1145
- "name": "description",
1146
- "type": "String",
1147
- "default": "`nil`",
1148
- "description": "Description text rendered underneath the message."
1149
- },
1150
- {
1151
- "name": "icon",
1152
- "type": "Symbol",
1153
- "default": "`nil`",
1154
- "description": "The name of an [Octicon](https://primer.style/octicons/) icon to use. If no icon is provided, a default one will be chosen based on the scheme."
1155
- },
1156
- {
1157
- "name": "scheme",
1158
- "type": "Symbol",
1159
- "default": "`:default`",
1160
- "description": "One of `:danger`, `:default`, `:success`, or `:warning`."
1161
- },
1162
- {
1163
- "name": "reappear",
1164
- "type": "Boolean",
1165
- "default": "`false`",
1166
- "description": "Whether or not the flash banner should reappear after being dismissed. Only for use in test and preview environments."
1167
- },
1168
- {
1169
- "name": "system_arguments",
1170
- "type": "Hash",
1171
- "default": "N/A",
1172
- "description": "[System arguments](/system-arguments)"
1173
- }
1174
- ]
1175
- },
1176
1176
  {
1177
1177
  "component": "BaseButton",
1178
1178
  "status": "beta",
@@ -1683,6 +1683,26 @@
1683
1683
  }
1684
1684
  ]
1685
1685
  },
1686
+ {
1687
+ "component": "ProgressBar",
1688
+ "status": "beta",
1689
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/progress_bar.rb",
1690
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/progress_bar/default/",
1691
+ "parameters": [
1692
+ {
1693
+ "name": "size",
1694
+ "type": "Symbol",
1695
+ "default": "`:default`",
1696
+ "description": "One of `:default`, `:large`, or `:small`. Increases height."
1697
+ },
1698
+ {
1699
+ "name": "system_arguments",
1700
+ "type": "Hash",
1701
+ "default": "N/A",
1702
+ "description": "[System arguments](/system-arguments)"
1703
+ }
1704
+ ]
1705
+ },
1686
1706
  {
1687
1707
  "component": "Text",
1688
1708
  "status": "beta",
@@ -2221,26 +2241,6 @@
2221
2241
  }
2222
2242
  ]
2223
2243
  },
2224
- {
2225
- "component": "ProgressBar",
2226
- "status": "beta",
2227
- "source": "https://github.com/primer/view_components/tree/main/app/components/primer/progress_bar_component.rb",
2228
- "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/progress_bar/default/",
2229
- "parameters": [
2230
- {
2231
- "name": "size",
2232
- "type": "Symbol",
2233
- "default": "`:default`",
2234
- "description": "One of `:default`, `:large`, or `:small`. Increases height."
2235
- },
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",
@@ -5,6 +5,7 @@
5
5
  "Primer::Alpha::ActionList::Item": "",
6
6
  "Primer::Alpha::AutoComplete": "",
7
7
  "Primer::Alpha::AutoComplete::Item": "",
8
+ "Primer::Alpha::Banner": "",
8
9
  "Primer::Alpha::ButtonMarketing": "",
9
10
  "Primer::Alpha::Dialog": "",
10
11
  "Primer::Alpha::Dialog::Body": "",
@@ -33,7 +34,6 @@
33
34
  "Primer::Beta::AutoComplete::Item": "",
34
35
  "Primer::Beta::Avatar": "",
35
36
  "Primer::Beta::AvatarStack": "",
36
- "Primer::Beta::Banner": "",
37
37
  "Primer::Beta::BaseButton": "",
38
38
  "Primer::Beta::Blankslate": "",
39
39
  "Primer::Beta::BorderBox": "",
@@ -50,6 +50,7 @@
50
50
  "Primer::Beta::IconButton": "",
51
51
  "Primer::Beta::Label": "",
52
52
  "Primer::Beta::Link": "",
53
+ "Primer::Beta::ProgressBar": "",
53
54
  "Primer::Beta::Text": "",
54
55
  "Primer::Beta::Truncate": "",
55
56
  "Primer::Beta::Truncate::TruncateText": "",
@@ -72,6 +72,27 @@
72
72
  },
73
73
  "Primer::Alpha::AutoComplete::Item": {
74
74
  },
75
+ "Primer::Alpha::Banner": {
76
+ "DEFAULT_ICONS": {
77
+ "default": "bell",
78
+ "warning": "alert",
79
+ "danger": "stop",
80
+ "success": "check-circle"
81
+ },
82
+ "DEFAULT_SCHEME": "default",
83
+ "LEGACY_SCHEME_MAPPINGS": {
84
+ "default": "",
85
+ "warning": "flash-warn",
86
+ "danger": "flash-error",
87
+ "success": "flash-success"
88
+ },
89
+ "SCHEME_MAPPINGS": {
90
+ "default": "",
91
+ "warning": "Banner--warning",
92
+ "danger": "Banner--error",
93
+ "success": "Banner--success"
94
+ }
95
+ },
75
96
  "Primer::Alpha::ButtonMarketing": {
76
97
  "DEFAULT_SCHEME": "default",
77
98
  "DEFAULT_TAG": "button",
@@ -396,27 +417,6 @@
396
417
  "span"
397
418
  ]
398
419
  },
399
- "Primer::Beta::Banner": {
400
- "DEFAULT_ICONS": {
401
- "default": "bell",
402
- "warning": "alert",
403
- "danger": "stop",
404
- "success": "check-circle"
405
- },
406
- "DEFAULT_SCHEME": "default",
407
- "LEGACY_SCHEME_MAPPINGS": {
408
- "default": "",
409
- "warning": "flash-warn",
410
- "danger": "flash-error",
411
- "success": "flash-success"
412
- },
413
- "SCHEME_MAPPINGS": {
414
- "default": "",
415
- "warning": "Banner--warning",
416
- "danger": "Banner--error",
417
- "success": "Banner--success"
418
- }
419
- },
420
420
  "Primer::Beta::BaseButton": {
421
421
  "DEFAULT_TAG": "button",
422
422
  "DEFAULT_TYPE": "button",
@@ -670,6 +670,19 @@
670
670
  "span"
671
671
  ]
672
672
  },
673
+ "Primer::Beta::ProgressBar": {
674
+ "SIZE_DEFAULT": "default",
675
+ "SIZE_MAPPINGS": {
676
+ "default": "",
677
+ "small": "Progress--small",
678
+ "large": "Progress--large"
679
+ },
680
+ "SIZE_OPTIONS": [
681
+ "default",
682
+ "small",
683
+ "large"
684
+ ]
685
+ },
673
686
  "Primer::Beta::Text": {
674
687
  "DEFAULT_TAG": "span"
675
688
  },
@@ -889,17 +902,6 @@
889
902
  "DEFAULT_HEADING_TAG": "h4"
890
903
  },
891
904
  "Primer::ProgressBarComponent": {
892
- "SIZE_DEFAULT": "default",
893
- "SIZE_MAPPINGS": {
894
- "default": "",
895
- "small": "Progress--small",
896
- "large": "Progress--large"
897
- },
898
- "SIZE_OPTIONS": [
899
- "default",
900
- "small",
901
- "large"
902
- ]
903
905
  },
904
906
  "Primer::SpinnerComponent": {
905
907
  "DEFAULT_SIZE": "medium",
data/static/statuses.json CHANGED
@@ -5,6 +5,7 @@
5
5
  "Primer::Alpha::ActionList::Item": "alpha",
6
6
  "Primer::Alpha::AutoComplete": "deprecated",
7
7
  "Primer::Alpha::AutoComplete::Item": "deprecated",
8
+ "Primer::Alpha::Banner": "alpha",
8
9
  "Primer::Alpha::ButtonMarketing": "alpha",
9
10
  "Primer::Alpha::Dialog": "alpha",
10
11
  "Primer::Alpha::Dialog::Body": "alpha",
@@ -33,7 +34,6 @@
33
34
  "Primer::Beta::AutoComplete::Item": "beta",
34
35
  "Primer::Beta::Avatar": "beta",
35
36
  "Primer::Beta::AvatarStack": "beta",
36
- "Primer::Beta::Banner": "beta",
37
37
  "Primer::Beta::BaseButton": "beta",
38
38
  "Primer::Beta::Blankslate": "beta",
39
39
  "Primer::Beta::BorderBox": "beta",
@@ -50,6 +50,7 @@
50
50
  "Primer::Beta::IconButton": "beta",
51
51
  "Primer::Beta::Label": "beta",
52
52
  "Primer::Beta::Link": "beta",
53
+ "Primer::Beta::ProgressBar": "beta",
53
54
  "Primer::Beta::Text": "beta",
54
55
  "Primer::Beta::Truncate": "beta",
55
56
  "Primer::Beta::Truncate::TruncateText": "alpha",
@@ -78,7 +79,7 @@
78
79
  "Primer::OcticonComponent": "beta",
79
80
  "Primer::OcticonSymbolsComponent": "alpha",
80
81
  "Primer::PopoverComponent": "beta",
81
- "Primer::ProgressBarComponent": "beta",
82
+ "Primer::ProgressBarComponent": "deprecated",
82
83
  "Primer::SpinnerComponent": "beta",
83
84
  "Primer::StateComponent": "beta",
84
85
  "Primer::SubheadComponent": "beta",