primer_view_components 0.0.109 → 0.0.111
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +42 -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/{beta → alpha}/banner.css +0 -0
- data/app/components/primer/alpha/banner.css.json +1 -0
- data/app/components/primer/{beta → alpha}/banner.css.map +1 -1
- data/app/components/primer/{beta → alpha}/banner.html.erb +0 -0
- data/app/components/primer/{beta → alpha}/banner.pcss +1 -0
- data/app/components/primer/{beta → alpha}/banner.rb +12 -12
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.pcss +1 -0
- data/app/components/primer/alpha/toggle_switch.css +1 -0
- data/app/components/primer/alpha/toggle_switch.css.json +1 -0
- data/app/components/primer/alpha/toggle_switch.css.map +1 -0
- data/app/components/primer/alpha/toggle_switch.pcss +244 -0
- data/app/components/primer/{beta → alpha}/x_banner.d.ts +2 -1
- data/app/components/primer/{beta → alpha}/x_banner.js +0 -1
- data/app/components/primer/{beta → 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/blankslate.css +1 -0
- data/app/components/primer/beta/blankslate.css.json +1 -0
- data/app/components/primer/beta/blankslate.css.map +1 -0
- data/app/components/primer/beta/blankslate.pcss +90 -0
- data/app/components/primer/beta/breadcrumbs.css +1 -0
- data/app/components/primer/beta/breadcrumbs.css.json +1 -0
- data/app/components/primer/beta/breadcrumbs.css.map +1 -0
- data/app/components/primer/beta/breadcrumbs.pcss +30 -0
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +0 -4
- data/app/components/primer/beta/button.rb +1 -1
- data/app/components/primer/beta/counter.css +1 -0
- data/app/components/primer/beta/counter.css.json +1 -0
- data/app/components/primer/beta/counter.css.map +1 -0
- data/app/components/primer/beta/counter.pcss +35 -0
- 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/label.css +1 -0
- data/app/components/primer/beta/label.css.json +1 -0
- data/app/components/primer/beta/label.css.map +1 -0
- data/app/components/primer/beta/label.pcss +103 -0
- data/app/components/primer/beta/progress_bar.css +1 -0
- data/app/components/primer/beta/progress_bar.css.json +1 -0
- data/app/components/primer/beta/progress_bar.css.map +1 -0
- data/app/components/primer/{progress_bar_component.html.erb → beta/progress_bar.html.erb} +0 -0
- data/app/components/primer/beta/progress_bar.pcss +26 -0
- data/app/components/primer/beta/progress_bar.rb +72 -0
- data/app/components/primer/beta/truncate.css +1 -0
- data/app/components/primer/beta/truncate.css.json +1 -0
- data/app/components/primer/beta/truncate.css.map +1 -0
- data/app/components/primer/beta/truncate.pcss +31 -0
- data/app/components/primer/dropdown.css +1 -0
- data/app/components/primer/dropdown.css.json +1 -0
- data/app/components/primer/dropdown.css.map +1 -0
- data/app/components/primer/dropdown.pcss +260 -0
- data/app/components/primer/popover_component.css +1 -0
- data/app/components/primer/popover_component.css.json +1 -0
- data/app/components/primer/popover_component.css.map +1 -0
- data/app/components/primer/popover_component.pcss +225 -0
- data/app/components/primer/primer.d.ts +1 -1
- data/app/components/primer/primer.js +1 -1
- data/app/components/primer/primer.pcss +18 -2
- data/app/components/primer/primer.ts +1 -1
- data/app/components/primer/progress_bar_component.rb +2 -65
- data/app/components/primer/state_component.css +1 -0
- data/app/components/primer/state_component.css.json +1 -0
- data/app/components/primer/state_component.css.map +1 -0
- data/app/components/primer/state_component.pcss +50 -0
- data/app/components/primer/subhead_component.css +1 -0
- data/app/components/primer/subhead_component.css.json +1 -0
- data/app/components/primer/subhead_component.css.map +1 -0
- data/app/components/primer/subhead_component.pcss +49 -0
- 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/app/components/primer/truncate.css +1 -0
- data/app/components/primer/truncate.css.json +1 -0
- data/app/components/primer/truncate.css.map +1 -0
- data/app/components/primer/truncate.pcss +30 -0
- data/lib/primer/deprecations.rb +2 -2
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/tasks/docs.rake +3 -3
- data/lib/tasks/test.rake +8 -0
- data/previews/primer/alpha/banner_preview/with_action_button.html.erb +4 -0
- data/previews/primer/{beta → alpha}/banner_preview/with_action_content.html.erb +1 -1
- data/previews/primer/alpha/banner_preview.rb +97 -0
- data/previews/primer/alpha/segmented_control_preview.rb +106 -20
- 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/counter_preview.rb +55 -8
- data/previews/primer/beta/flash_preview.rb +45 -8
- data/previews/primer/beta/label_preview.rb +86 -8
- data/previews/primer/beta/progress_bar_preview.rb +60 -0
- data/previews/primer/dropdown_preview.rb +161 -10
- data/static/arguments.json +76 -76
- data/static/audited_at.json +2 -2
- data/static/constants.json +34 -34
- data/static/statuses.json +3 -3
- metadata +81 -17
- data/app/components/primer/beta/banner.css.json +0 -1
- data/app/components/primer/counter_component.rb +0 -7
- data/previews/primer/beta/banner_preview/with_action_button.html.erb +0 -4
- data/previews/primer/beta/banner_preview.rb +0 -54
- data/previews/primer/progress_bar_component_preview.rb +0 -28
@@ -21,25 +21,20 @@ module Primer
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
# @label Default
|
24
|
+
# @label Default
|
25
25
|
#
|
26
|
-
|
27
|
-
|
28
|
-
def default(overlay: :default, with_caret: false)
|
29
|
-
render(Primer::Dropdown.new(overlay: overlay, with_caret: with_caret)) do |c|
|
26
|
+
def default
|
27
|
+
render(Primer::Dropdown.new) do |c|
|
30
28
|
c.with_button { "Dropdown" }
|
31
|
-
|
32
|
-
c.with_menu(header: "Header") do |m|
|
29
|
+
c.with_menu do |m|
|
33
30
|
m.with_item { "Item 1" }
|
34
31
|
m.with_item { "Item 2" }
|
35
|
-
m.with_item(divider: true)
|
36
32
|
m.with_item { "Item 3" }
|
37
|
-
m.with_item { "Item 4" }
|
38
33
|
end
|
39
34
|
end
|
40
35
|
end
|
41
36
|
|
42
|
-
# @label Menu
|
37
|
+
# @label Menu
|
43
38
|
#
|
44
39
|
# @param as [Symbol] select [list, default]
|
45
40
|
# @param direction [Symbol] select [se, sw, w, e, ne, s]
|
@@ -53,5 +48,161 @@ module Primer
|
|
53
48
|
m.with_item { "Item 4" }
|
54
49
|
end
|
55
50
|
end
|
51
|
+
|
52
|
+
# @!group Direction
|
53
|
+
#
|
54
|
+
# @label Direction e
|
55
|
+
def direction_e
|
56
|
+
render(Primer::Dropdown.new(display: :inline_block)) do |c|
|
57
|
+
c.with_button { "Dropdown" }
|
58
|
+
c.with_menu(direction: :e) do |m|
|
59
|
+
m.with_item { "Item 1" }
|
60
|
+
m.with_item { "Item 2" }
|
61
|
+
m.with_item { "Item 3" }
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
# @label Direction ne
|
67
|
+
def direction_ne
|
68
|
+
render(Primer::Dropdown.new(display: :inline_block)) do |c|
|
69
|
+
c.with_button { "Dropdown" }
|
70
|
+
c.with_menu(direction: :ne) do |m|
|
71
|
+
m.with_item { "Item 1" }
|
72
|
+
m.with_item { "Item 2" }
|
73
|
+
m.with_item { "Item 3" }
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
# @label Direction s
|
79
|
+
def direction_s
|
80
|
+
render(Primer::Dropdown.new(display: :inline_block)) do |c|
|
81
|
+
c.with_button { "Dropdown" }
|
82
|
+
c.with_menu(direction: :s) do |m|
|
83
|
+
m.with_item { "Item 1" }
|
84
|
+
m.with_item { "Item 2" }
|
85
|
+
m.with_item { "Item 3" }
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# @label Direction se
|
91
|
+
def direction_se
|
92
|
+
render(Primer::Dropdown.new(display: :inline_block)) do |c|
|
93
|
+
c.with_button { "Dropdown" }
|
94
|
+
c.with_menu(direction: :se) do |m|
|
95
|
+
m.with_item { "Item 1" }
|
96
|
+
m.with_item { "Item 2" }
|
97
|
+
m.with_item { "Item 3" }
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# @label Direction sw
|
103
|
+
def direction_sw
|
104
|
+
render(Primer::Dropdown.new(display: :inline_block)) do |c|
|
105
|
+
c.with_button { "Dropdown" }
|
106
|
+
c.with_menu(direction: :sw) do |m|
|
107
|
+
m.with_item { "Item 1" }
|
108
|
+
m.with_item { "Item 2" }
|
109
|
+
m.with_item { "Item 3" }
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# @label Direction w
|
115
|
+
def direction_w
|
116
|
+
render(Primer::Dropdown.new(display: :inline_block)) do |c|
|
117
|
+
c.with_button { "Dropdown" }
|
118
|
+
c.with_menu(direction: :w) do |m|
|
119
|
+
m.with_item { "Item 1" }
|
120
|
+
m.with_item { "Item 2" }
|
121
|
+
m.with_item { "Item 3" }
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
#
|
126
|
+
# @!endgroup
|
127
|
+
|
128
|
+
# @!group Options
|
129
|
+
#
|
130
|
+
# @label With caret
|
131
|
+
def options_with_caret
|
132
|
+
render(Primer::Dropdown.new(with_caret: true)) do |c|
|
133
|
+
c.with_button { "Dropdown" }
|
134
|
+
c.with_menu do |m|
|
135
|
+
m.with_item { "Item 1" }
|
136
|
+
m.with_item { "Item 2" }
|
137
|
+
m.with_item { "Item 3" }
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# @label With header
|
143
|
+
def options_with_header
|
144
|
+
render(Primer::Dropdown.new) do |c|
|
145
|
+
c.with_button { "Dropdown" }
|
146
|
+
c.with_menu(header: "Header") do |m|
|
147
|
+
m.with_item { "Item 1" }
|
148
|
+
m.with_item { "Item 2" }
|
149
|
+
m.with_item { "Item 3" }
|
150
|
+
end
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# @label With dividers
|
155
|
+
def options_with_dividers
|
156
|
+
render(Primer::Dropdown.new) do |c|
|
157
|
+
c.with_button { "Dropdown" }
|
158
|
+
c.with_menu do |m|
|
159
|
+
m.with_item { "Item 1" }
|
160
|
+
m.with_item { "Item 2" }
|
161
|
+
m.with_item(divider: true)
|
162
|
+
m.with_item { "Item 3" }
|
163
|
+
m.with_item { "Item 4" }
|
164
|
+
m.with_item(divider: true)
|
165
|
+
m.with_item { "Item 5" }
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# @label As list
|
171
|
+
def options_as_list
|
172
|
+
render(Primer::Dropdown.new) do |c|
|
173
|
+
c.with_button { "Dropdown" }
|
174
|
+
c.with_menu(as: :list) do |m|
|
175
|
+
m.with_item { "Item 1" }
|
176
|
+
m.with_item { "Item 2" }
|
177
|
+
m.with_item { "Item 3" }
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
# @label Overlay none
|
183
|
+
def options_overlay_none
|
184
|
+
render(Primer::Dropdown.new(overlay: :none)) do |c|
|
185
|
+
c.with_button { "Dropdown" }
|
186
|
+
c.with_menu do |m|
|
187
|
+
m.with_item { "Item 1" }
|
188
|
+
m.with_item { "Item 2" }
|
189
|
+
m.with_item { "Item 3" }
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
# @label Overlay dark
|
195
|
+
def options_overlay_dark
|
196
|
+
render(Primer::Dropdown.new(overlay: :dark)) do |c|
|
197
|
+
c.with_button { "Dropdown" }
|
198
|
+
c.with_menu do |m|
|
199
|
+
m.with_item { "Item 1" }
|
200
|
+
m.with_item { "Item 2" }
|
201
|
+
m.with_item { "Item 3" }
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
#
|
206
|
+
# @!endgroup
|
56
207
|
end
|
57
208
|
end
|
data/static/arguments.json
CHANGED
@@ -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",
|
data/static/audited_at.json
CHANGED
@@ -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": "",
|
@@ -60,7 +61,6 @@
|
|
60
61
|
"Primer::ClipboardCopy": "",
|
61
62
|
"Primer::ConditionalWrapper": "",
|
62
63
|
"Primer::Content": "",
|
63
|
-
"Primer::CounterComponent": "",
|
64
64
|
"Primer::Dropdown": "",
|
65
65
|
"Primer::Dropdown::Menu": "",
|
66
66
|
"Primer::Dropdown::Menu::Item": "",
|
data/static/constants.json
CHANGED
@@ -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
|
},
|
@@ -719,8 +732,6 @@
|
|
719
732
|
},
|
720
733
|
"Primer::Content": {
|
721
734
|
},
|
722
|
-
"Primer::CounterComponent": {
|
723
|
-
},
|
724
735
|
"Primer::Dropdown": {
|
725
736
|
"Menu": "Primer::Dropdown::Menu"
|
726
737
|
},
|
@@ -889,17 +900,6 @@
|
|
889
900
|
"DEFAULT_HEADING_TAG": "h4"
|
890
901
|
},
|
891
902
|
"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
903
|
},
|
904
904
|
"Primer::SpinnerComponent": {
|
905
905
|
"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",
|
@@ -60,7 +61,6 @@
|
|
60
61
|
"Primer::ClipboardCopy": "beta",
|
61
62
|
"Primer::ConditionalWrapper": "alpha",
|
62
63
|
"Primer::Content": "stable",
|
63
|
-
"Primer::CounterComponent": "deprecated",
|
64
64
|
"Primer::Dropdown": "alpha",
|
65
65
|
"Primer::Dropdown::Menu": "alpha",
|
66
66
|
"Primer::Dropdown::Menu::Item": "alpha",
|
@@ -78,7 +78,7 @@
|
|
78
78
|
"Primer::OcticonComponent": "beta",
|
79
79
|
"Primer::OcticonSymbolsComponent": "alpha",
|
80
80
|
"Primer::PopoverComponent": "beta",
|
81
|
-
"Primer::ProgressBarComponent": "
|
81
|
+
"Primer::ProgressBarComponent": "deprecated",
|
82
82
|
"Primer::SpinnerComponent": "beta",
|
83
83
|
"Primer::StateComponent": "beta",
|
84
84
|
"Primer::SubheadComponent": "beta",
|