primer_view_components 0.0.61 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +746 -613
- data/app/components/primer/alpha/border_box/header.rb +1 -2
- data/app/components/primer/alpha/button_marketing.rb +4 -4
- data/app/components/primer/alpha/tab_nav.rb +1 -1
- data/app/components/primer/alpha/tab_panels.rb +2 -2
- data/app/components/primer/alpha/underline_nav.rb +2 -1
- data/app/components/primer/alpha/underline_panels.rb +2 -2
- data/app/components/primer/base_component.rb +8 -36
- data/app/components/primer/beta/auto_complete/item.rb +1 -1
- data/app/components/primer/beta/auto_complete.rb +4 -2
- data/app/components/primer/beta/avatar.rb +1 -1
- data/app/components/primer/beta/blankslate.html.erb +2 -2
- data/app/components/primer/beta/blankslate.rb +7 -6
- data/app/components/primer/beta/breadcrumbs.rb +2 -2
- data/app/components/primer/beta/text.rb +1 -1
- data/app/components/primer/border_box_component.rb +1 -1
- data/app/components/primer/box_component.rb +3 -2
- data/app/components/primer/button_component.html.erb +3 -9
- data/app/components/primer/button_component.rb +61 -28
- data/app/components/primer/button_group.rb +9 -15
- data/app/components/primer/clipboard_copy.rb +1 -1
- data/app/components/primer/close_button.rb +1 -1
- data/app/components/primer/component.rb +77 -0
- data/app/components/primer/counter_component.rb +1 -1
- data/app/components/primer/details_component.rb +1 -1
- data/app/components/primer/dropdown/menu.rb +1 -1
- data/app/components/primer/dropdown.html.erb +0 -1
- data/app/components/primer/dropdown.rb +2 -1
- data/app/components/primer/dropdown_menu_component.rb +1 -1
- data/app/components/primer/flash_component.rb +3 -2
- data/app/components/primer/flex_component.rb +16 -16
- data/app/components/primer/flex_item_component.rb +1 -1
- data/app/components/primer/hellip_button.rb +1 -1
- data/app/components/primer/hidden_text_expander.rb +1 -1
- data/app/components/primer/image.rb +3 -3
- data/app/components/primer/image_crop.rb +2 -1
- data/app/components/primer/label_component.rb +23 -13
- data/app/components/primer/layout_component.rb +1 -0
- data/app/components/primer/local_time.rb +1 -1
- data/app/components/primer/markdown.rb +1 -1
- data/app/components/primer/menu_component.rb +2 -1
- data/app/components/primer/navigation/tab_component.rb +1 -0
- data/app/components/primer/octicon_component.rb +4 -2
- data/app/components/primer/octicon_symbols_component.rb +2 -2
- data/app/components/primer/popover_component.rb +3 -3
- data/app/components/primer/progress_bar_component.rb +7 -6
- data/app/components/primer/spinner_component.html.erb +4 -7
- data/app/components/primer/spinner_component.rb +1 -1
- data/app/components/primer/subhead_component.rb +3 -1
- data/app/components/primer/tab_container_component.rb +1 -1
- data/app/components/primer/time_ago_component.rb +1 -1
- data/app/components/primer/timeline_item_component.rb +4 -3
- data/app/components/primer/tooltip.rb +1 -0
- data/app/lib/primer/octicon/cache.rb +4 -10
- data/lib/primer/classify/utilities.rb +17 -44
- data/lib/primer/classify/utilities.yml +298 -68
- data/lib/primer/classify.rb +92 -178
- data/lib/primer/view_components/engine.rb +1 -0
- data/lib/primer/view_components/linters/argument_mappers/button.rb +4 -4
- data/lib/primer/view_components/linters/blankslate_api_migration.rb +11 -5
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_arguments.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_button_arguments.rb +51 -0
- data/lib/rubocop/cop/primer/deprecated_label_schemes.rb +68 -0
- data/lib/rubocop/cop/primer/deprecated_layout_component.rb +30 -0
- data/lib/rubocop/cop/primer/primer_octicon.rb +1 -3
- data/lib/tasks/custom_utilities.yml +298 -0
- data/lib/tasks/docs.rake +1 -1
- data/lib/tasks/utilities.rake +21 -4
- data/static/arguments.yml +16 -7
- data/static/classes.yml +19 -18
- data/static/constants.json +25 -15
- metadata +10 -12
- data/app/components/primer/auto_complete/auto_complete.d.ts +0 -1
- data/app/components/primer/auto_complete/auto_complete.js +0 -1
- data/app/components/primer/auto_complete/auto_component.d.ts +0 -1
- data/app/components/primer/auto_complete/auto_component.js +0 -1
- data/lib/primer/classify/cache.rb +0 -109
- data/lib/primer/classify/flex.rb +0 -111
@@ -0,0 +1,298 @@
|
|
1
|
+
:font_size:
|
2
|
+
"00":
|
3
|
+
- f00
|
4
|
+
1:
|
5
|
+
- f1
|
6
|
+
2:
|
7
|
+
- f2
|
8
|
+
3:
|
9
|
+
- f3
|
10
|
+
4:
|
11
|
+
- f4
|
12
|
+
5:
|
13
|
+
- f5
|
14
|
+
6:
|
15
|
+
- f6
|
16
|
+
:small:
|
17
|
+
- text-small
|
18
|
+
:normal:
|
19
|
+
- text-normal
|
20
|
+
:top:
|
21
|
+
0:
|
22
|
+
- top-0
|
23
|
+
false:
|
24
|
+
- top-0
|
25
|
+
:bottom:
|
26
|
+
0:
|
27
|
+
- bottom-0
|
28
|
+
false:
|
29
|
+
- bottom-0
|
30
|
+
:left:
|
31
|
+
0:
|
32
|
+
- left-0
|
33
|
+
false:
|
34
|
+
- left-0
|
35
|
+
:right:
|
36
|
+
0:
|
37
|
+
- right-0
|
38
|
+
false:
|
39
|
+
- right-0
|
40
|
+
:underline:
|
41
|
+
true:
|
42
|
+
- text-underline
|
43
|
+
false:
|
44
|
+
- no-underline
|
45
|
+
:font_family:
|
46
|
+
:mono:
|
47
|
+
- text-mono
|
48
|
+
:font_style:
|
49
|
+
:italic:
|
50
|
+
- text-italic
|
51
|
+
:text_transform:
|
52
|
+
:uppercase:
|
53
|
+
- text-uppercase
|
54
|
+
:text_align:
|
55
|
+
:right:
|
56
|
+
- text-right
|
57
|
+
:left:
|
58
|
+
- text-left
|
59
|
+
:center:
|
60
|
+
- text-center
|
61
|
+
:font_weight:
|
62
|
+
:light:
|
63
|
+
- text-light
|
64
|
+
:normal:
|
65
|
+
- text-normal
|
66
|
+
:bold:
|
67
|
+
- text-bold
|
68
|
+
:semibold:
|
69
|
+
- text-semibold
|
70
|
+
:emphasized:
|
71
|
+
- text-emphasized
|
72
|
+
:box_shadow:
|
73
|
+
true:
|
74
|
+
- color-shadow-small
|
75
|
+
:small:
|
76
|
+
- color-shadow-small
|
77
|
+
:medium:
|
78
|
+
- color-shadow-medium
|
79
|
+
:large:
|
80
|
+
- color-shadow-large
|
81
|
+
:extra_large:
|
82
|
+
- color-shadow-extra-large
|
83
|
+
:none:
|
84
|
+
- box-shadow-none
|
85
|
+
false:
|
86
|
+
- box-shadow-none
|
87
|
+
:border:
|
88
|
+
:left:
|
89
|
+
- border-left
|
90
|
+
:top:
|
91
|
+
- border-top
|
92
|
+
:bottom:
|
93
|
+
- border-bottom
|
94
|
+
:right:
|
95
|
+
- border-right
|
96
|
+
:y:
|
97
|
+
- border-y
|
98
|
+
:x:
|
99
|
+
- border-x
|
100
|
+
true:
|
101
|
+
- border
|
102
|
+
0:
|
103
|
+
- border-0
|
104
|
+
false:
|
105
|
+
- border-0
|
106
|
+
:dashed:
|
107
|
+
- border-dashed
|
108
|
+
:border_top:
|
109
|
+
0:
|
110
|
+
- border-top-0
|
111
|
+
:border_bottom:
|
112
|
+
0:
|
113
|
+
- border-bottom-0
|
114
|
+
:border_left:
|
115
|
+
0:
|
116
|
+
- border-left-0
|
117
|
+
:border_right:
|
118
|
+
0:
|
119
|
+
- border-right-0
|
120
|
+
:border_radius:
|
121
|
+
0:
|
122
|
+
- rounded-0
|
123
|
+
1:
|
124
|
+
- rounded-1
|
125
|
+
2:
|
126
|
+
- rounded-2
|
127
|
+
3:
|
128
|
+
- rounded-3
|
129
|
+
:justify_content:
|
130
|
+
:flex_start:
|
131
|
+
- flex-justify-start
|
132
|
+
- flex-sm-justify-start
|
133
|
+
- flex-md-justify-start
|
134
|
+
- flex-lg-justify-start
|
135
|
+
- flex-xl-justify-start
|
136
|
+
:flex_end:
|
137
|
+
- flex-justify-end
|
138
|
+
- flex-sm-justify-end
|
139
|
+
- flex-md-justify-end
|
140
|
+
- flex-lg-justify-end
|
141
|
+
- flex-xl-justify-end
|
142
|
+
:center:
|
143
|
+
- flex-justify-center
|
144
|
+
- flex-sm-justify-center
|
145
|
+
- flex-md-justify-center
|
146
|
+
- flex-lg-justify-center
|
147
|
+
- flex-xl-justify-center
|
148
|
+
:space_between:
|
149
|
+
- flex-justify-between
|
150
|
+
- flex-sm-justify-between
|
151
|
+
- flex-md-justify-between
|
152
|
+
- flex-lg-justify-between
|
153
|
+
- flex-xl-justify-between
|
154
|
+
:space_around:
|
155
|
+
- flex-justify-around
|
156
|
+
- flex-sm-justify-around
|
157
|
+
- flex-md-justify-around
|
158
|
+
- flex-lg-justify-around
|
159
|
+
- flex-xl-justify-around
|
160
|
+
:align_items:
|
161
|
+
:flex_start:
|
162
|
+
- flex-items-start
|
163
|
+
- flex-sm-items-start
|
164
|
+
- flex-md-items-start
|
165
|
+
- flex-lg-items-start
|
166
|
+
- flex-xl-items-start
|
167
|
+
:flex_end:
|
168
|
+
- flex-items-end
|
169
|
+
- flex-sm-items-end
|
170
|
+
- flex-md-items-end
|
171
|
+
- flex-lg-items-end
|
172
|
+
- flex-xl-items-end
|
173
|
+
:center:
|
174
|
+
- flex-items-center
|
175
|
+
- flex-sm-items-center
|
176
|
+
- flex-md-items-center
|
177
|
+
- flex-lg-items-center
|
178
|
+
- flex-xl-items-center
|
179
|
+
:baseline:
|
180
|
+
- flex-items-baseline
|
181
|
+
- flex-sm-items-baseline
|
182
|
+
- flex-md-items-baseline
|
183
|
+
- flex-lg-items-baseline
|
184
|
+
- flex-xl-items-baseline
|
185
|
+
:stretch:
|
186
|
+
- flex-items-stretch
|
187
|
+
- flex-sm-items-stretch
|
188
|
+
- flex-md-items-stretch
|
189
|
+
- flex-lg-items-stretch
|
190
|
+
- flex-xl-items-stretch
|
191
|
+
:flex_wrap:
|
192
|
+
:wrap:
|
193
|
+
- flex-wrap
|
194
|
+
- flex-sm-wrap
|
195
|
+
- flex-md-wrap
|
196
|
+
- flex-lg-wrap
|
197
|
+
- flex-xl-wrap
|
198
|
+
:nowrap:
|
199
|
+
- flex-nowrap
|
200
|
+
- flex-sm-nowrap
|
201
|
+
- flex-md-nowrap
|
202
|
+
- flex-lg-nowrap
|
203
|
+
- flex-xl-nowrap
|
204
|
+
:reverse:
|
205
|
+
- flex-wrap-reverse
|
206
|
+
- flex-sm-wrap-reverse
|
207
|
+
- flex-md-wrap-reverse
|
208
|
+
- flex-lg-wrap-reverse
|
209
|
+
- flex-xl-wrap-reverse
|
210
|
+
:direction:
|
211
|
+
:column:
|
212
|
+
- flex-column
|
213
|
+
- flex-sm-column
|
214
|
+
- flex-md-column
|
215
|
+
- flex-lg-column
|
216
|
+
- flex-xl-column
|
217
|
+
:column_reverse:
|
218
|
+
- flex-column-reverse
|
219
|
+
- flex-sm-column-reverse
|
220
|
+
- flex-md-column-reverse
|
221
|
+
- flex-lg-column-reverse
|
222
|
+
- flex-xl-column-reverse
|
223
|
+
:row:
|
224
|
+
- flex-row
|
225
|
+
- flex-sm-row
|
226
|
+
- flex-md-row
|
227
|
+
- flex-lg-row
|
228
|
+
- flex-xl-row
|
229
|
+
:row_reverse:
|
230
|
+
- flex-row-reverse
|
231
|
+
- flex-sm-row-reverse
|
232
|
+
- flex-md-row-reverse
|
233
|
+
- flex-lg-row-reverse
|
234
|
+
- flex-xl-row-reverse
|
235
|
+
:flex:
|
236
|
+
1:
|
237
|
+
- flex-1
|
238
|
+
- flex-sm-1
|
239
|
+
- flex-md-1
|
240
|
+
- flex-lg-1
|
241
|
+
- flex-xl-1
|
242
|
+
:auto:
|
243
|
+
- flex-auto
|
244
|
+
- flex-sm-auto
|
245
|
+
- flex-md-auto
|
246
|
+
- flex-lg-auto
|
247
|
+
- flex-xl-auto
|
248
|
+
:align_self:
|
249
|
+
:auto:
|
250
|
+
- flex-self-auto
|
251
|
+
- flex-sm-self-auto
|
252
|
+
- flex-md-self-auto
|
253
|
+
- flex-lg-self-auto
|
254
|
+
- flex-xl-self-auto
|
255
|
+
:start:
|
256
|
+
- flex-self-start
|
257
|
+
- flex-sm-self-start
|
258
|
+
- flex-md-self-start
|
259
|
+
- flex-lg-self-start
|
260
|
+
- flex-xl-self-start
|
261
|
+
:end:
|
262
|
+
- flex-self-end
|
263
|
+
- flex-sm-self-end
|
264
|
+
- flex-md-self-end
|
265
|
+
- flex-lg-self-end
|
266
|
+
- flex-xl-self-end
|
267
|
+
:center:
|
268
|
+
- flex-self-center
|
269
|
+
- flex-sm-self-center
|
270
|
+
- flex-md-self-center
|
271
|
+
- flex-lg-self-center
|
272
|
+
- flex-xl-self-center
|
273
|
+
:baseline:
|
274
|
+
- flex-self-baseline
|
275
|
+
- flex-sm-self-baseline
|
276
|
+
- flex-md-self-baseline
|
277
|
+
- flex-lg-self-baseline
|
278
|
+
- flex-xl-self-baseline
|
279
|
+
:stretch:
|
280
|
+
- flex-self-stretch
|
281
|
+
- flex-sm-self-stretch
|
282
|
+
- flex-md-self-stretch
|
283
|
+
- flex-lg-self-stretch
|
284
|
+
- flex-xl-self-stretch
|
285
|
+
:flex_grow:
|
286
|
+
0:
|
287
|
+
- flex-grow-0
|
288
|
+
- flex-sm-grow-0
|
289
|
+
- flex-md-grow-0
|
290
|
+
- flex-lg-grow-0
|
291
|
+
- flex-xl-grow-0
|
292
|
+
:flex_shrink:
|
293
|
+
0:
|
294
|
+
- flex-shrink-0
|
295
|
+
- flex-sm-shrink-0
|
296
|
+
- flex-md-shrink-0
|
297
|
+
- flex-lg-shrink-0
|
298
|
+
- flex-xl-shrink-0
|
data/lib/tasks/docs.rake
CHANGED
@@ -312,7 +312,7 @@ namespace :docs do
|
|
312
312
|
FileUtils.rm_rf(File.join(adr_content_dir))
|
313
313
|
FileUtils.mkdir(adr_content_dir)
|
314
314
|
|
315
|
-
nav_entries = Dir[File.join(*%w[adr *.md])].map do |orig_path|
|
315
|
+
nav_entries = Dir[File.join(*%w[adr *.md])].sort.map do |orig_path|
|
316
316
|
orig_file_name = File.basename(orig_path)
|
317
317
|
url_name = orig_file_name.chomp(".md")
|
318
318
|
title = ActiveSupport::Inflector.titleize(url_name.sub(/\A\d+-/, ""))
|
data/lib/tasks/utilities.rake
CHANGED
@@ -5,7 +5,6 @@ namespace :utilities do
|
|
5
5
|
require "yaml"
|
6
6
|
require "json"
|
7
7
|
require File.expand_path("./../../demo/config/environment.rb", __dir__)
|
8
|
-
require "primer/classify/utilities"
|
9
8
|
|
10
9
|
# Keys that are looked for to be included in the utilities.yml file
|
11
10
|
# rubocop:disable Lint/ConstantDefinitionInBlock
|
@@ -13,8 +12,6 @@ namespace :utilities do
|
|
13
12
|
/^anim\b/,
|
14
13
|
/^color-bg\b/,
|
15
14
|
/^color-border\b/,
|
16
|
-
/^color-icon\b/,
|
17
|
-
/^color-text\b/,
|
18
15
|
/^color-fg\b/,
|
19
16
|
/^col\b/,
|
20
17
|
/^container\b/,
|
@@ -31,6 +28,20 @@ namespace :utilities do
|
|
31
28
|
/^v\b/
|
32
29
|
].freeze
|
33
30
|
|
31
|
+
# Replacements for some classnames that end up being a different argument key
|
32
|
+
REPLACEMENT_KEYS = {
|
33
|
+
"^anim" => "animation",
|
34
|
+
"^v-align" => "vertical_align",
|
35
|
+
"^d" => "display",
|
36
|
+
"^wb" => "word_break",
|
37
|
+
"^v" => "visibility",
|
38
|
+
"^width" => "w",
|
39
|
+
"^height" => "h",
|
40
|
+
"^color-bg" => "bg",
|
41
|
+
"^color-border" => "border_color",
|
42
|
+
"^color-fg" => "color"
|
43
|
+
}.freeze
|
44
|
+
|
34
45
|
BREAKPOINTS = [nil, "sm", "md", "lg", "xl"].freeze
|
35
46
|
# rubocop:enable Lint/ConstantDefinitionInBlock
|
36
47
|
|
@@ -41,6 +52,10 @@ namespace :utilities do
|
|
41
52
|
)
|
42
53
|
)["selectors"]["values"]
|
43
54
|
|
55
|
+
custom_utility_data = YAML.load_file(
|
56
|
+
File.join(__dir__, "custom_utilities.yml")
|
57
|
+
)
|
58
|
+
|
44
59
|
layout_data =
|
45
60
|
JSON.parse(
|
46
61
|
File.read(
|
@@ -65,7 +80,7 @@ namespace :utilities do
|
|
65
80
|
key = ""
|
66
81
|
|
67
82
|
# Look for a replacement key
|
68
|
-
|
83
|
+
REPLACEMENT_KEYS.each do |k, v|
|
69
84
|
next unless classname.match?(Regexp.new(k))
|
70
85
|
|
71
86
|
key = v
|
@@ -112,6 +127,8 @@ namespace :utilities do
|
|
112
127
|
x.transform_values { |y| y.reverse.drop_while(&:nil?).reverse }
|
113
128
|
end
|
114
129
|
|
130
|
+
output.merge!(custom_utility_data)
|
131
|
+
|
115
132
|
File.open("lib/primer/classify/utilities.yml", "w") do |f|
|
116
133
|
f.puts YAML.dump(output)
|
117
134
|
end
|
data/static/arguments.yml
CHANGED
@@ -324,9 +324,13 @@
|
|
324
324
|
description: One of `:danger`, `:default`, `:invisible`, `:link`, `:outline`,
|
325
325
|
or `:primary`.
|
326
326
|
- name: variant
|
327
|
+
type: Symbol
|
328
|
+
default: "`nil`"
|
329
|
+
description: DEPRECATED. One of `:medium` and `:small`.
|
330
|
+
- name: size
|
327
331
|
type: Symbol
|
328
332
|
default: "`:medium`"
|
329
|
-
description: One of `:
|
333
|
+
description: One of `:medium` and `:small`.
|
330
334
|
- name: tag
|
331
335
|
type: Symbol
|
332
336
|
default: "`:button`"
|
@@ -343,10 +347,10 @@
|
|
343
347
|
type: Boolean
|
344
348
|
default: "`false`"
|
345
349
|
description: 'Whether button is full-width with `display: block`.'
|
346
|
-
- name:
|
350
|
+
- name: dropdown
|
347
351
|
type: Boolean
|
348
352
|
default: "`false`"
|
349
|
-
description: Whether or not to render a caret.
|
353
|
+
description: Whether or not to render a dropdown caret.
|
350
354
|
- name: system_arguments
|
351
355
|
type: Hash
|
352
356
|
default: N/A
|
@@ -355,9 +359,13 @@
|
|
355
359
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/button_group.rb
|
356
360
|
parameters:
|
357
361
|
- name: variant
|
362
|
+
type: Symbol
|
363
|
+
default: "`nil`"
|
364
|
+
description: DEPRECATED. One of `:medium` and `:small`.
|
365
|
+
- name: size
|
358
366
|
type: Symbol
|
359
367
|
default: "`:medium`"
|
360
|
-
description: One of `:
|
368
|
+
description: One of `:medium` and `:small`.
|
361
369
|
- name: system_arguments
|
362
370
|
type: Hash
|
363
371
|
default: N/A
|
@@ -655,9 +663,10 @@
|
|
655
663
|
description: One of `:a`, `:div`, `:span`, or `:summary`.
|
656
664
|
- name: scheme
|
657
665
|
type: Symbol
|
658
|
-
default: "`
|
659
|
-
description: One of `:
|
660
|
-
`:
|
666
|
+
default: "`:default`"
|
667
|
+
description: One of `:accent`, `:attention`, `:danger`, `:default`, `:done`, `:info`,
|
668
|
+
`:orange`, `:primary`, `:purple`, `:secondary`, `:severe`, `:sponsors`, `:success`,
|
669
|
+
or `:warning`.
|
661
670
|
- name: variant
|
662
671
|
type: Symbol
|
663
672
|
default: "`nil`"
|
data/static/classes.yml
CHANGED
@@ -20,13 +20,16 @@
|
|
20
20
|
- ".Counter--primary"
|
21
21
|
- ".Counter--secondary"
|
22
22
|
- ".Label"
|
23
|
+
- ".Label--accent"
|
24
|
+
- ".Label--attention"
|
23
25
|
- ".Label--danger"
|
24
|
-
- ".Label--
|
26
|
+
- ".Label--done"
|
25
27
|
- ".Label--large"
|
26
28
|
- ".Label--primary"
|
27
29
|
- ".Label--secondary"
|
30
|
+
- ".Label--severe"
|
31
|
+
- ".Label--sponsors"
|
28
32
|
- ".Label--success"
|
29
|
-
- ".Label--warning"
|
30
33
|
- ".Layout"
|
31
34
|
- ".Layout--flowRow-until-lg"
|
32
35
|
- ".Layout--flowRow-until-md"
|
@@ -96,35 +99,32 @@
|
|
96
99
|
- ".btn-block"
|
97
100
|
- ".btn-danger"
|
98
101
|
- ".btn-invisible"
|
99
|
-
- ".btn-large"
|
100
102
|
- ".btn-large-mktg"
|
101
103
|
- ".btn-link"
|
102
104
|
- ".btn-mktg"
|
105
|
+
- ".btn-muted-mktg"
|
103
106
|
- ".btn-octicon"
|
104
107
|
- ".btn-octicon-danger"
|
105
108
|
- ".btn-outline"
|
106
|
-
- ".btn-outline-mktg"
|
107
109
|
- ".btn-primary"
|
108
|
-
- ".btn-
|
110
|
+
- ".btn-signup-mktg"
|
109
111
|
- ".btn-sm"
|
110
|
-
- ".btn-
|
112
|
+
- ".btn-subtle-mktg"
|
111
113
|
- ".circle"
|
112
114
|
- ".close-button"
|
113
115
|
- ".col-2"
|
114
116
|
- ".col-3"
|
115
117
|
- ".col-9"
|
116
|
-
- ".color-bg-
|
117
|
-
- ".color-bg-danger-
|
118
|
-
- ".color-bg-
|
119
|
-
- ".color-bg-
|
120
|
-
- ".color-bg-success-
|
121
|
-
- ".color-
|
122
|
-
- ".color-
|
118
|
+
- ".color-bg-accent-emphasis"
|
119
|
+
- ".color-bg-danger-emphasis"
|
120
|
+
- ".color-bg-emphasis"
|
121
|
+
- ".color-bg-subtle"
|
122
|
+
- ".color-bg-success-emphasis"
|
123
|
+
- ".color-border-accent-emphasis"
|
124
|
+
- ".color-fg-danger"
|
125
|
+
- ".color-fg-on-emphasis"
|
123
126
|
- ".color-fg-success"
|
124
|
-
- ".color-icon-success"
|
125
127
|
- ".color-shadow-large"
|
126
|
-
- ".color-text-danger"
|
127
|
-
- ".color-text-white"
|
128
128
|
- ".container-lg"
|
129
129
|
- ".container-md"
|
130
130
|
- ".container-xl"
|
@@ -138,7 +138,6 @@
|
|
138
138
|
- ".details-overlay"
|
139
139
|
- ".details-reset"
|
140
140
|
- ".dropdown"
|
141
|
-
- ".dropdown-caret"
|
142
141
|
- ".dropdown-divider"
|
143
142
|
- ".dropdown-header"
|
144
143
|
- ".dropdown-item"
|
@@ -178,8 +177,11 @@
|
|
178
177
|
- ".menu"
|
179
178
|
- ".menu-heading"
|
180
179
|
- ".menu-item"
|
180
|
+
- ".ml-2"
|
181
181
|
- ".mr-2"
|
182
|
+
- ".mr-n1"
|
182
183
|
- ".mt-2"
|
184
|
+
- ".mt-3"
|
183
185
|
- ".mt-5"
|
184
186
|
- ".mx-auto"
|
185
187
|
- ".no-underline"
|
@@ -192,7 +194,6 @@
|
|
192
194
|
- ".pr-2"
|
193
195
|
- ".pt-5"
|
194
196
|
- ".right-0"
|
195
|
-
- ".sr-only"
|
196
197
|
- ".tabnav"
|
197
198
|
- ".tabnav-tab"
|
198
199
|
- ".tabnav-tabs"
|
data/static/constants.json
CHANGED
@@ -17,9 +17,9 @@
|
|
17
17
|
"DEFAULT_VARIANT": "default",
|
18
18
|
"SCHEME_MAPPINGS": {
|
19
19
|
"default": "",
|
20
|
-
"primary": "btn-
|
21
|
-
"outline": "btn-
|
22
|
-
"transparent": "btn-
|
20
|
+
"primary": "btn-signup-mktg",
|
21
|
+
"outline": "btn-muted-mktg",
|
22
|
+
"transparent": "btn-subtle-mktg"
|
23
23
|
},
|
24
24
|
"SCHEME_OPTIONS": [
|
25
25
|
"default",
|
@@ -279,7 +279,7 @@
|
|
279
279
|
},
|
280
280
|
"Primer::ButtonComponent": {
|
281
281
|
"DEFAULT_SCHEME": "default",
|
282
|
-
"
|
282
|
+
"DEFAULT_SIZE": "medium",
|
283
283
|
"LINK_SCHEME": "link",
|
284
284
|
"SCHEME_MAPPINGS": {
|
285
285
|
"default": "",
|
@@ -297,15 +297,13 @@
|
|
297
297
|
"invisible",
|
298
298
|
"link"
|
299
299
|
],
|
300
|
-
"
|
300
|
+
"SIZE_MAPPINGS": {
|
301
301
|
"small": "btn-sm",
|
302
|
-
"medium": ""
|
303
|
-
"large": "btn-large"
|
302
|
+
"medium": ""
|
304
303
|
},
|
305
|
-
"
|
304
|
+
"SIZE_OPTIONS": [
|
306
305
|
"small",
|
307
|
-
"medium"
|
308
|
-
"large"
|
306
|
+
"medium"
|
309
307
|
]
|
310
308
|
},
|
311
309
|
"Primer::ButtonGroup": {
|
@@ -506,29 +504,41 @@
|
|
506
504
|
"Primer::ImageCrop": {
|
507
505
|
},
|
508
506
|
"Primer::LabelComponent": {
|
507
|
+
"DEFAULT_SCHEME": "default",
|
509
508
|
"DEFAULT_TAG": "span",
|
510
509
|
"DEPRECATED_SCHEME_OPTIONS": [
|
510
|
+
"info",
|
511
|
+
"warning",
|
511
512
|
"orange",
|
512
513
|
"purple"
|
513
514
|
],
|
514
515
|
"SCHEME_MAPPINGS": {
|
516
|
+
"default": "",
|
515
517
|
"primary": "Label--primary",
|
516
518
|
"secondary": "Label--secondary",
|
517
|
-
"
|
519
|
+
"accent": "Label--accent",
|
518
520
|
"success": "Label--success",
|
519
|
-
"
|
521
|
+
"attention": "Label--attention",
|
520
522
|
"danger": "Label--danger",
|
523
|
+
"severe": "Label--severe",
|
524
|
+
"done": "Label--done",
|
525
|
+
"sponsors": "Label--sponsors",
|
526
|
+
"info": "Label--info",
|
527
|
+
"warning": "Label--warning",
|
521
528
|
"orange": "Label--orange",
|
522
529
|
"purple": "Label--purple"
|
523
530
|
},
|
524
531
|
"SCHEME_OPTIONS": [
|
532
|
+
"default",
|
525
533
|
"primary",
|
526
534
|
"secondary",
|
527
|
-
"
|
535
|
+
"accent",
|
528
536
|
"success",
|
529
|
-
"
|
537
|
+
"attention",
|
530
538
|
"danger",
|
531
|
-
|
539
|
+
"severe",
|
540
|
+
"done",
|
541
|
+
"sponsors"
|
532
542
|
],
|
533
543
|
"TAG_OPTIONS": [
|
534
544
|
"span",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.65
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -366,7 +366,7 @@ dependencies:
|
|
366
366
|
- - "~>"
|
367
367
|
- !ruby/object:Gem::Version
|
368
368
|
version: 0.9.25
|
369
|
-
description:
|
369
|
+
description:
|
370
370
|
email:
|
371
371
|
- opensource+primer_view_components@github.com
|
372
372
|
executables: []
|
@@ -391,10 +391,6 @@ files:
|
|
391
391
|
- app/components/primer/alpha/underline_nav.rb
|
392
392
|
- app/components/primer/alpha/underline_panels.html.erb
|
393
393
|
- app/components/primer/alpha/underline_panels.rb
|
394
|
-
- app/components/primer/auto_complete/auto_complete.d.ts
|
395
|
-
- app/components/primer/auto_complete/auto_complete.js
|
396
|
-
- app/components/primer/auto_complete/auto_component.d.ts
|
397
|
-
- app/components/primer/auto_complete/auto_component.js
|
398
394
|
- app/components/primer/base_button.rb
|
399
395
|
- app/components/primer/base_component.rb
|
400
396
|
- app/components/primer/beta/auto_complete.rb
|
@@ -511,8 +507,6 @@ files:
|
|
511
507
|
- app/lib/primer/underline_nav_helper.rb
|
512
508
|
- app/lib/primer/view_helper.rb
|
513
509
|
- lib/primer/classify.rb
|
514
|
-
- lib/primer/classify/cache.rb
|
515
|
-
- lib/primer/classify/flex.rb
|
516
510
|
- lib/primer/classify/utilities.rb
|
517
511
|
- lib/primer/classify/utilities.yml
|
518
512
|
- lib/primer/classify/validation.rb
|
@@ -549,10 +543,14 @@ files:
|
|
549
543
|
- lib/rubocop/cop/primer.rb
|
550
544
|
- lib/rubocop/cop/primer/base_cop.rb
|
551
545
|
- lib/rubocop/cop/primer/deprecated_arguments.rb
|
546
|
+
- lib/rubocop/cop/primer/deprecated_button_arguments.rb
|
547
|
+
- lib/rubocop/cop/primer/deprecated_label_schemes.rb
|
548
|
+
- lib/rubocop/cop/primer/deprecated_layout_component.rb
|
552
549
|
- lib/rubocop/cop/primer/no_tag_memoize.rb
|
553
550
|
- lib/rubocop/cop/primer/primer_octicon.rb
|
554
551
|
- lib/rubocop/cop/primer/system_argument_instead_of_class.rb
|
555
552
|
- lib/tasks/coverage.rake
|
553
|
+
- lib/tasks/custom_utilities.yml
|
556
554
|
- lib/tasks/docs.rake
|
557
555
|
- lib/tasks/helpers/ast_processor.rb
|
558
556
|
- lib/tasks/helpers/ast_traverser.rb
|
@@ -573,7 +571,7 @@ licenses:
|
|
573
571
|
- MIT
|
574
572
|
metadata:
|
575
573
|
allowed_push_host: https://rubygems.org
|
576
|
-
post_install_message:
|
574
|
+
post_install_message:
|
577
575
|
rdoc_options: []
|
578
576
|
require_paths:
|
579
577
|
- lib
|
@@ -589,7 +587,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
589
587
|
version: '0'
|
590
588
|
requirements: []
|
591
589
|
rubygems_version: 3.1.2
|
592
|
-
signing_key:
|
590
|
+
signing_key:
|
593
591
|
specification_version: 4
|
594
592
|
summary: ViewComponents for the Primer Design System
|
595
593
|
test_files: []
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/auto-complete-element';
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/auto-complete-element';
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/auto-complete-element';
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/auto-complete-element';
|