primer_view_components 0.0.83 → 0.0.86
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/components/primer/alpha/auto_complete/auto_complete.html.erb +24 -0
- data/app/components/primer/alpha/auto_complete/item.rb +46 -0
- data/app/components/primer/alpha/auto_complete.rb +158 -0
- data/app/components/primer/alpha/button_marketing.rb +1 -1
- data/app/components/primer/alpha/text_field.rb +105 -0
- data/app/components/primer/alpha/tool-tip-element.d.ts +3 -1
- data/app/components/primer/alpha/tool-tip-element.js +20 -13
- data/app/components/primer/alpha/tool-tip-element.ts +23 -14
- data/app/components/primer/alpha/tooltip.rb +1 -1
- data/app/components/primer/beta/auto_complete/auto_complete.html.erb +21 -17
- data/app/components/primer/beta/auto_complete/item.html.erb +21 -0
- data/app/components/primer/beta/auto_complete/item.rb +42 -6
- data/app/components/primer/beta/auto_complete.rb +93 -55
- data/app/components/primer/beta/base_button.rb +47 -0
- data/app/components/primer/{alpha → beta}/border_box/header.html.erb +0 -0
- data/app/components/primer/{alpha → beta}/border_box/header.rb +6 -6
- data/app/components/primer/{border_box_component.html.erb → beta/border_box.html.erb} +0 -0
- data/app/components/primer/beta/border_box.rb +147 -0
- data/app/components/primer/blankslate_component.rb +2 -150
- data/app/components/primer/border_box_component.rb +2 -140
- data/app/components/primer/button_component.html.erb +12 -4
- data/app/components/primer/button_component.rb +2 -2
- data/app/components/primer/clipboard_copy.rb +6 -2
- data/app/components/primer/close_button.rb +1 -1
- data/app/components/primer/conditional_wrapper.rb +36 -0
- data/app/components/primer/hellip_button.rb +1 -1
- data/app/components/primer/icon_button.html.erb +6 -0
- data/app/components/primer/icon_button.rb +46 -10
- data/app/components/primer/link_component.html.erb +12 -0
- data/app/components/primer/link_component.rb +2 -9
- data/app/lib/primer/join_style_arguments_helper.rb +1 -1
- data/lib/primer/classify/utilities.rb +3 -6
- data/lib/primer/form_components.rb +36 -0
- data/lib/primer/forms/acts_as_component.rb +118 -0
- data/lib/primer/forms/base.html.erb +8 -0
- data/lib/primer/forms/base.rb +137 -0
- data/lib/primer/forms/base_component.rb +58 -0
- data/lib/primer/forms/buffer_rewriter.rb +50 -0
- data/lib/primer/forms/caption.html.erb +10 -0
- data/lib/primer/forms/caption.rb +29 -0
- data/lib/primer/forms/check_box.html.erb +9 -0
- data/lib/primer/forms/check_box.rb +16 -0
- data/lib/primer/forms/check_box_group.html.erb +12 -0
- data/lib/primer/forms/check_box_group.rb +14 -0
- data/lib/primer/forms/dsl/check_box_group_input.rb +41 -0
- data/lib/primer/forms/dsl/check_box_input.rb +27 -0
- data/lib/primer/forms/dsl/form_object.rb +25 -0
- data/lib/primer/forms/dsl/form_reference_input.rb +36 -0
- data/lib/primer/forms/dsl/hidden_input.rb +29 -0
- data/lib/primer/forms/dsl/input.rb +259 -0
- data/lib/primer/forms/dsl/input_group.rb +41 -0
- data/lib/primer/forms/dsl/input_methods.rb +86 -0
- data/lib/primer/forms/dsl/multi_input.rb +58 -0
- data/lib/primer/forms/dsl/radio_button_group_input.rb +38 -0
- data/lib/primer/forms/dsl/radio_button_input.rb +37 -0
- data/lib/primer/forms/dsl/select_list_input.rb +53 -0
- data/lib/primer/forms/dsl/submit_button_input.rb +28 -0
- data/lib/primer/forms/dsl/text_area_input.rb +33 -0
- data/lib/primer/forms/dsl/text_field_input.rb +65 -0
- data/lib/primer/forms/form_control.html.erb +18 -0
- data/lib/primer/forms/form_control.rb +23 -0
- data/lib/primer/forms/form_list.html.erb +5 -0
- data/lib/primer/forms/form_list.rb +21 -0
- data/lib/primer/forms/form_reference.html.erb +3 -0
- data/lib/primer/forms/form_reference.rb +14 -0
- data/lib/primer/forms/group.html.erb +5 -0
- data/lib/primer/forms/group.rb +27 -0
- data/lib/primer/forms/hidden_field.html.erb +1 -0
- data/lib/primer/forms/hidden_field.rb +15 -0
- data/lib/primer/forms/multi.html.erb +3 -0
- data/lib/primer/forms/multi.rb +14 -0
- data/lib/primer/forms/radio_button.html.erb +14 -0
- data/lib/primer/forms/radio_button.rb +29 -0
- data/lib/primer/forms/radio_button_group.html.erb +12 -0
- data/lib/primer/forms/radio_button_group.rb +14 -0
- data/lib/primer/forms/select_list.html.erb +5 -0
- data/lib/primer/forms/select_list.rb +26 -0
- data/lib/primer/forms/separator.html.erb +1 -0
- data/lib/primer/forms/separator.rb +8 -0
- data/lib/primer/forms/spacing_wrapper.html.erb +3 -0
- data/lib/primer/forms/spacing_wrapper.rb +8 -0
- data/lib/primer/forms/submit_button.html.erb +4 -0
- data/lib/primer/forms/submit_button.rb +50 -0
- data/lib/primer/forms/text_area.html.erb +5 -0
- data/lib/primer/forms/text_area.rb +16 -0
- data/lib/primer/forms/text_field.html.erb +19 -0
- data/lib/primer/forms/text_field.rb +14 -0
- data/lib/primer/view_components/engine.rb +23 -0
- data/lib/primer/view_components/linters/argument_mappers/button.rb +2 -2
- data/lib/primer/view_components/linters/button_component_migration_counter.rb +1 -1
- data/lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb +4 -8
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/rubocop/cop/primer/component_name_migration.rb +3 -0
- data/lib/tasks/deprecated.rake +22 -0
- data/lib/tasks/docs.rake +8 -6
- data/static/arguments.yml +188 -52
- data/static/audited_at.json +7 -2
- data/static/classes.yml +25 -8
- data/static/constants.json +66 -39
- data/static/statuses.json +8 -3
- metadata +71 -7
- data/app/components/primer/base_button.rb +0 -43
- data/app/components/primer/blankslate_component.html.erb +0 -30
data/static/arguments.yml
CHANGED
@@ -1,11 +1,4 @@
|
|
1
1
|
---
|
2
|
-
- component: BorderBoxHeader
|
3
|
-
source: https://github.com/primer/view_components/tree/main/app/components/primer/alpha/border_box/header.rb
|
4
|
-
parameters:
|
5
|
-
- name: system_arguments
|
6
|
-
type: Hash
|
7
|
-
default: N/A
|
8
|
-
description: "[System arguments](/system-arguments)"
|
9
2
|
- component: ButtonMarketing
|
10
3
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/alpha/button_marketing.rb
|
11
4
|
parameters:
|
@@ -95,6 +88,100 @@
|
|
95
88
|
type: Hash
|
96
89
|
default: N/A
|
97
90
|
description: "[System arguments](/system-arguments)"
|
91
|
+
- component: TextField
|
92
|
+
source: https://github.com/primer/view_components/tree/main/app/components/primer/alpha/text_field.rb
|
93
|
+
parameters:
|
94
|
+
- name: name
|
95
|
+
type: String
|
96
|
+
default: N/A
|
97
|
+
description: Value for the HTML name attribute.
|
98
|
+
- name: id
|
99
|
+
type: String
|
100
|
+
default: N/A
|
101
|
+
description: Value for the HTML id attribute.
|
102
|
+
- name: class
|
103
|
+
type: String
|
104
|
+
default: N/A
|
105
|
+
description: A list of CSS classes to add to the input. Exists for compatibility
|
106
|
+
with Rails form builders.
|
107
|
+
- name: classes
|
108
|
+
type: String
|
109
|
+
default: N/A
|
110
|
+
description: A list of CSS classes to add to the input. Combined with the `:class`
|
111
|
+
argument.
|
112
|
+
- name: caption
|
113
|
+
type: String
|
114
|
+
default: N/A
|
115
|
+
description: Caption text to render below the input.
|
116
|
+
- name: label
|
117
|
+
type: String
|
118
|
+
default: N/A
|
119
|
+
description: Label text displayed above the input.
|
120
|
+
- name: visually_hide_label
|
121
|
+
type: Boolean
|
122
|
+
default: N/A
|
123
|
+
description: Whether or not to visually hide the label. If `true` the label will
|
124
|
+
be hidden visually but still available to screen readers.
|
125
|
+
- name: size
|
126
|
+
type: Symbol
|
127
|
+
default: N/A
|
128
|
+
description: The size of the field. One of `:large`, `:medium`, or `:small`.
|
129
|
+
- name: show_clear_button
|
130
|
+
type: Boolean
|
131
|
+
default: N/A
|
132
|
+
description: Whether or not to include a clear button inside the input that clears
|
133
|
+
the input's contents when clicked.
|
134
|
+
- name: clear_button_id
|
135
|
+
type: String
|
136
|
+
default: N/A
|
137
|
+
description: The HTML id attribute of the clear button.
|
138
|
+
- name: full_width
|
139
|
+
type: Boolean
|
140
|
+
default: N/A
|
141
|
+
description: Controls whether or not the input takes the full width of its container.
|
142
|
+
- name: disabled
|
143
|
+
type: Boolean
|
144
|
+
default: N/A
|
145
|
+
description: Whether or not the input should accept keyboard and mouse input.
|
146
|
+
- name: invalid
|
147
|
+
type: Boolean
|
148
|
+
default: N/A
|
149
|
+
description: If `true`, renders the input in a visually invalid state.
|
150
|
+
- name: placeholder
|
151
|
+
type: String
|
152
|
+
default: N/A
|
153
|
+
description: Placeholder text.
|
154
|
+
- name: inset
|
155
|
+
type: Boolean
|
156
|
+
default: N/A
|
157
|
+
description: If `true`, renders the input in a visually inset state.
|
158
|
+
- name: monospace
|
159
|
+
type: Boolean
|
160
|
+
default: N/A
|
161
|
+
description: If `true`, uses a monospace font for the input field.
|
162
|
+
- name: leading_visual
|
163
|
+
type: Hash
|
164
|
+
default: N/A
|
165
|
+
description: Renders a leading visual icon before the text field's cursor. The
|
166
|
+
hash will be passed to Primer's [Octicon component](https://primer.style/view-components/components/octicon).
|
167
|
+
- name: validation_message
|
168
|
+
type: String
|
169
|
+
default: N/A
|
170
|
+
description: A validation message to display beneath the input. Implicitly sets
|
171
|
+
`invalid` to `true`.
|
172
|
+
- name: label_arguments
|
173
|
+
type: Hash
|
174
|
+
default: N/A
|
175
|
+
description: System arugments passed to the Rails builder's `#label` method. These
|
176
|
+
arguments will appear as HTML attributes on the `<label>` tag.
|
177
|
+
- name: system_arguments
|
178
|
+
type: Hash
|
179
|
+
default: N/A
|
180
|
+
description: "[System arguments](/system-arguments)"
|
181
|
+
- name: block
|
182
|
+
type: Proc
|
183
|
+
default: N/A
|
184
|
+
description: Unused.
|
98
185
|
- component: Tooltip
|
99
186
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/alpha/tooltip.rb
|
100
187
|
parameters:
|
@@ -167,25 +254,6 @@
|
|
167
254
|
type: Hash
|
168
255
|
default: N/A
|
169
256
|
description: "[System arguments](/system-arguments)"
|
170
|
-
- component: BaseButton
|
171
|
-
source: https://github.com/primer/view_components/tree/main/app/components/primer/base_button.rb
|
172
|
-
parameters:
|
173
|
-
- name: tag
|
174
|
-
type: Symbol
|
175
|
-
default: "`:button`"
|
176
|
-
description: One of `:a`, `:button`, or `:summary`.
|
177
|
-
- name: type
|
178
|
-
type: Symbol
|
179
|
-
default: "`:button`"
|
180
|
-
description: One of `:button`, `:reset`, or `:submit`.
|
181
|
-
- name: block
|
182
|
-
type: Boolean
|
183
|
-
default: "`false`"
|
184
|
-
description: 'Whether button is full-width with `display: block`.'
|
185
|
-
- name: system_arguments
|
186
|
-
type: Hash
|
187
|
-
default: N/A
|
188
|
-
description: "[System arguments](/system-arguments)"
|
189
257
|
- component: AutoComplete
|
190
258
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/auto_complete.rb
|
191
259
|
parameters:
|
@@ -210,28 +278,47 @@
|
|
210
278
|
type: String
|
211
279
|
default: N/A
|
212
280
|
description: Id of the list element.
|
213
|
-
- name:
|
281
|
+
- name: visually_hide_label
|
214
282
|
type: Boolean
|
215
283
|
default: "`false`"
|
216
|
-
description: Controls if
|
217
|
-
|
218
|
-
|
219
|
-
default: "`true`"
|
220
|
-
description: Controls if the label is visible. If `false`, screen reader only
|
221
|
-
text will be added.
|
222
|
-
- name: is_clearable
|
284
|
+
description: Controls if the label is visible. If `true`, screen reader only text
|
285
|
+
will be added.
|
286
|
+
- name: show_clear_button
|
223
287
|
type: Boolean
|
224
288
|
default: "`false`"
|
225
289
|
description: Adds optional clear button.
|
226
|
-
- name: is_label_inline
|
227
|
-
type: Boolean
|
228
|
-
default: "`false`"
|
229
|
-
description: Controls if the label is inline. On smaller screens, label will always
|
230
|
-
become stacked.
|
231
290
|
- name: system_arguments
|
232
291
|
type: Hash
|
233
292
|
default: N/A
|
234
293
|
description: "[System arguments](/system-arguments)"
|
294
|
+
- name: size
|
295
|
+
type: Hash
|
296
|
+
default: "`:medium`"
|
297
|
+
description: Input size can be small, medium (default), or large
|
298
|
+
- name: full_width
|
299
|
+
type: Boolean
|
300
|
+
default: "`false`"
|
301
|
+
description: Input can be full-width or fit to content
|
302
|
+
- name: disabled
|
303
|
+
type: Boolean
|
304
|
+
default: "`false`"
|
305
|
+
description: Disabled input
|
306
|
+
- name: invalid
|
307
|
+
type: Boolean
|
308
|
+
default: "`false`"
|
309
|
+
description: Invalid input
|
310
|
+
- name: placeholder
|
311
|
+
type: String
|
312
|
+
default: "`nil`"
|
313
|
+
description: The placeholder text displayed within the input
|
314
|
+
- name: inset
|
315
|
+
type: Boolean
|
316
|
+
default: "`false`"
|
317
|
+
description: subtle input background color
|
318
|
+
- name: monospace
|
319
|
+
type: Boolean
|
320
|
+
default: "`false`"
|
321
|
+
description: monospace input font family
|
235
322
|
- component: AutoCompleteItem
|
236
323
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/auto_complete/item.rb
|
237
324
|
parameters:
|
@@ -247,6 +334,14 @@
|
|
247
334
|
type: Boolean
|
248
335
|
default: "`false`"
|
249
336
|
description: Whether the item is disabled.
|
337
|
+
- name: description_variant
|
338
|
+
type: Hash
|
339
|
+
default: "`:block`"
|
340
|
+
description: Changes the description style. Allowed values are :inline, :block
|
341
|
+
- name: description
|
342
|
+
type: String
|
343
|
+
default: N/A
|
344
|
+
description: Display description text below label
|
250
345
|
- name: system_arguments
|
251
346
|
type: Hash
|
252
347
|
default: N/A
|
@@ -304,6 +399,25 @@
|
|
304
399
|
type: Hash
|
305
400
|
default: N/A
|
306
401
|
description: "[System arguments](/system-arguments)"
|
402
|
+
- component: BaseButton
|
403
|
+
source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/base_button.rb
|
404
|
+
parameters:
|
405
|
+
- name: tag
|
406
|
+
type: Symbol
|
407
|
+
default: "`:button`"
|
408
|
+
description: One of `:a`, `:button`, or `:summary`.
|
409
|
+
- name: type
|
410
|
+
type: Symbol
|
411
|
+
default: "`:button`"
|
412
|
+
description: One of `:button`, `:reset`, or `:submit`.
|
413
|
+
- name: block
|
414
|
+
type: Boolean
|
415
|
+
default: "`false`"
|
416
|
+
description: 'Whether button is full-width with `display: block`.'
|
417
|
+
- name: system_arguments
|
418
|
+
type: Hash
|
419
|
+
default: N/A
|
420
|
+
description: "[System arguments](/system-arguments)"
|
307
421
|
- component: Blankslate
|
308
422
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/blankslate.rb
|
309
423
|
parameters:
|
@@ -323,6 +437,24 @@
|
|
323
437
|
type: Hash
|
324
438
|
default: N/A
|
325
439
|
description: "[System arguments](/system-arguments)"
|
440
|
+
- component: BorderBox
|
441
|
+
source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/border_box.rb
|
442
|
+
parameters:
|
443
|
+
- name: padding
|
444
|
+
type: Symbol
|
445
|
+
default: "`:default`"
|
446
|
+
description: One of `:condensed`, `:default`, or `:spacious`.
|
447
|
+
- name: system_arguments
|
448
|
+
type: Hash
|
449
|
+
default: N/A
|
450
|
+
description: "[System arguments](/system-arguments)"
|
451
|
+
- component: BorderBoxHeader
|
452
|
+
source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/border_box/header.rb
|
453
|
+
parameters:
|
454
|
+
- name: system_arguments
|
455
|
+
type: Hash
|
456
|
+
default: N/A
|
457
|
+
description: "[System arguments](/system-arguments)"
|
326
458
|
- component: Breadcrumbs
|
327
459
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/beta/breadcrumbs.rb
|
328
460
|
parameters:
|
@@ -375,17 +507,6 @@
|
|
375
507
|
type: Hash
|
376
508
|
default: N/A
|
377
509
|
description: "[System arguments](/system-arguments)"
|
378
|
-
- component: BorderBox
|
379
|
-
source: https://github.com/primer/view_components/tree/main/app/components/primer/border_box_component.rb
|
380
|
-
parameters:
|
381
|
-
- name: padding
|
382
|
-
type: Symbol
|
383
|
-
default: "`:default`"
|
384
|
-
description: One of `:condensed`, `:default`, or `:spacious`.
|
385
|
-
- name: system_arguments
|
386
|
-
type: Hash
|
387
|
-
default: N/A
|
388
|
-
description: "[System arguments](/system-arguments)"
|
389
510
|
- component: Box
|
390
511
|
source: https://github.com/primer/view_components/tree/main/app/components/primer/box_component.rb
|
391
512
|
parameters:
|
@@ -662,11 +783,26 @@
|
|
662
783
|
type: Symbol
|
663
784
|
default: N/A
|
664
785
|
description: One of `:button`, `:reset`, or `:submit`.
|
786
|
+
- name: aria-label
|
787
|
+
type: String
|
788
|
+
default: N/A
|
789
|
+
description: String that can be read by assistive technology. A label should be
|
790
|
+
short and concise. See the accessibility section for more information.
|
791
|
+
- name: aria-description
|
792
|
+
type: String
|
793
|
+
default: N/A
|
794
|
+
description: String that can be read by assistive technology. A description can
|
795
|
+
be longer as it is intended to provide more context and information. See the
|
796
|
+
accessibility section for more information.
|
797
|
+
- name: tooltip_direction
|
798
|
+
type: Symbol
|
799
|
+
default: "`:s`"
|
800
|
+
description: One of `:e`, `:n`, `:ne`, `:nw`, `:s`, `:se`, `:sw`, or `:w`.
|
665
801
|
- name: box
|
666
802
|
type: Boolean
|
667
803
|
default: "`false`"
|
668
|
-
description: Whether the button is in a [BorderBox](/components/borderbox).
|
669
|
-
`true`, the button will have the `Box-btn-octicon` class.
|
804
|
+
description: Whether the button is in a [BorderBox](/components/beta/borderbox).
|
805
|
+
If `true`, the button will have the `Box-btn-octicon` class.
|
670
806
|
- name: system_arguments
|
671
807
|
type: Hash
|
672
808
|
default: N/A
|
data/static/audited_at.json
CHANGED
@@ -1,21 +1,25 @@
|
|
1
1
|
{
|
2
|
-
"Primer::Alpha::
|
2
|
+
"Primer::Alpha::AutoComplete": "",
|
3
|
+
"Primer::Alpha::AutoComplete::Item": "",
|
3
4
|
"Primer::Alpha::ButtonMarketing": "",
|
4
5
|
"Primer::Alpha::Layout": "",
|
5
6
|
"Primer::Alpha::Layout::Main": "",
|
6
7
|
"Primer::Alpha::Layout::Sidebar": "",
|
7
8
|
"Primer::Alpha::TabNav": "",
|
8
9
|
"Primer::Alpha::TabPanels": "",
|
10
|
+
"Primer::Alpha::TextField": "",
|
9
11
|
"Primer::Alpha::Tooltip": "",
|
10
12
|
"Primer::Alpha::UnderlineNav": "",
|
11
13
|
"Primer::Alpha::UnderlinePanels": "",
|
12
|
-
"Primer::BaseButton": "",
|
13
14
|
"Primer::BaseComponent": "",
|
14
15
|
"Primer::Beta::AutoComplete": "",
|
15
16
|
"Primer::Beta::AutoComplete::Item": "",
|
16
17
|
"Primer::Beta::Avatar": "",
|
17
18
|
"Primer::Beta::AvatarStack": "",
|
19
|
+
"Primer::Beta::BaseButton": "",
|
18
20
|
"Primer::Beta::Blankslate": "",
|
21
|
+
"Primer::Beta::BorderBox": "",
|
22
|
+
"Primer::Beta::BorderBox::Header": "",
|
19
23
|
"Primer::Beta::Breadcrumbs": "",
|
20
24
|
"Primer::Beta::Breadcrumbs::Item": "",
|
21
25
|
"Primer::Beta::Flash": "",
|
@@ -29,6 +33,7 @@
|
|
29
33
|
"Primer::ButtonGroup": "",
|
30
34
|
"Primer::ClipboardCopy": "",
|
31
35
|
"Primer::CloseButton": "",
|
36
|
+
"Primer::ConditionalWrapper": "",
|
32
37
|
"Primer::Content": "",
|
33
38
|
"Primer::CounterComponent": "",
|
34
39
|
"Primer::DetailsComponent": "",
|
data/static/classes.yml
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
---
|
2
|
+
- ".ActionList"
|
3
|
+
- ".ActionList-content"
|
4
|
+
- ".ActionList-item"
|
5
|
+
- ".ActionList-item-label"
|
2
6
|
- ".AvatarStack"
|
3
7
|
- ".AvatarStack--right"
|
4
8
|
- ".AvatarStack--three-plus"
|
@@ -19,6 +23,21 @@
|
|
19
23
|
- ".Counter"
|
20
24
|
- ".Counter--primary"
|
21
25
|
- ".Counter--secondary"
|
26
|
+
- ".FormControl"
|
27
|
+
- ".FormControl--fullWidth"
|
28
|
+
- ".FormControl-caption"
|
29
|
+
- ".FormControl-inlineValidation"
|
30
|
+
- ".FormControl-input"
|
31
|
+
- ".FormControl-input-leadingVisual"
|
32
|
+
- ".FormControl-input-leadingVisualWrap"
|
33
|
+
- ".FormControl-input-trailingAction"
|
34
|
+
- ".FormControl-input-wrap"
|
35
|
+
- ".FormControl-input-wrap--leadingVisual"
|
36
|
+
- ".FormControl-input-wrap--trailingAction"
|
37
|
+
- ".FormControl-inset"
|
38
|
+
- ".FormControl-label"
|
39
|
+
- ".FormControl-medium"
|
40
|
+
- ".FormControl-monospace"
|
22
41
|
- ".Label"
|
23
42
|
- ".Label--accent"
|
24
43
|
- ".Label--attention"
|
@@ -45,10 +64,15 @@
|
|
45
64
|
- ".Layout-main-centered-md"
|
46
65
|
- ".Layout-main-centered-xl"
|
47
66
|
- ".Layout-sidebar"
|
48
|
-
- ".Link"
|
49
67
|
- ".Link--muted"
|
50
68
|
- ".Link--primary"
|
51
69
|
- ".Link--secondary"
|
70
|
+
- ".Overlay"
|
71
|
+
- ".Overlay--height-auto"
|
72
|
+
- ".Overlay--width-auto"
|
73
|
+
- ".Overlay-backdrop--anchor"
|
74
|
+
- ".Overlay-body"
|
75
|
+
- ".Overlay-body--paddingNone"
|
52
76
|
- ".Popover"
|
53
77
|
- ".Popover-message"
|
54
78
|
- ".Popover-message--large"
|
@@ -82,12 +106,6 @@
|
|
82
106
|
- ".UnderlineNav-item"
|
83
107
|
- ".UnderlineNav-octicon"
|
84
108
|
- ".anim-rotate"
|
85
|
-
- ".autocomplete-body"
|
86
|
-
- ".autocomplete-embedded-icon-wrap"
|
87
|
-
- ".autocomplete-item"
|
88
|
-
- ".autocomplete-label-inline"
|
89
|
-
- ".autocomplete-label-stacked"
|
90
|
-
- ".autocomplete-results"
|
91
109
|
- ".avatar"
|
92
110
|
- ".avatar-more"
|
93
111
|
- ".avatar-small"
|
@@ -167,7 +185,6 @@
|
|
167
185
|
- ".flex-justify-center"
|
168
186
|
- ".flex-shrink-0"
|
169
187
|
- ".float-right"
|
170
|
-
- ".form-control"
|
171
188
|
- ".gutter-condensed"
|
172
189
|
- ".gutter-lg"
|
173
190
|
- ".hidden-text-expander"
|
data/static/constants.json
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
{
|
2
|
-
"Primer::Alpha::
|
3
|
-
"
|
4
|
-
|
5
|
-
|
6
|
-
"h2",
|
7
|
-
"h3",
|
8
|
-
"h4",
|
9
|
-
"h5",
|
10
|
-
"h6"
|
11
|
-
]
|
2
|
+
"Primer::Alpha::AutoComplete": {
|
3
|
+
"Item": "Primer::Alpha::AutoComplete::Item"
|
4
|
+
},
|
5
|
+
"Primer::Alpha::AutoComplete::Item": {
|
12
6
|
},
|
13
7
|
"Primer::Alpha::ButtonMarketing": {
|
14
8
|
"DEFAULT_SCHEME": "default",
|
@@ -138,6 +132,8 @@
|
|
138
132
|
"div"
|
139
133
|
]
|
140
134
|
},
|
135
|
+
"Primer::Alpha::TextField": {
|
136
|
+
},
|
141
137
|
"Primer::Alpha::Tooltip": {
|
142
138
|
"DIRECTION_DEFAULT": "s",
|
143
139
|
"DIRECTION_OPTIONS": [
|
@@ -166,20 +162,6 @@
|
|
166
162
|
},
|
167
163
|
"Primer::Alpha::UnderlinePanels": {
|
168
164
|
},
|
169
|
-
"Primer::BaseButton": {
|
170
|
-
"DEFAULT_TAG": "button",
|
171
|
-
"DEFAULT_TYPE": "button",
|
172
|
-
"TAG_OPTIONS": [
|
173
|
-
"button",
|
174
|
-
"a",
|
175
|
-
"summary"
|
176
|
-
],
|
177
|
-
"TYPE_OPTIONS": [
|
178
|
-
"button",
|
179
|
-
"reset",
|
180
|
-
"submit"
|
181
|
-
]
|
182
|
-
},
|
183
165
|
"Primer::BaseComponent": {
|
184
166
|
"SELF_CLOSING_TAGS": [
|
185
167
|
"area",
|
@@ -199,9 +181,24 @@
|
|
199
181
|
]
|
200
182
|
},
|
201
183
|
"Primer::Beta::AutoComplete": {
|
202
|
-
"
|
184
|
+
"DEFAULT_SIZE": "medium",
|
185
|
+
"Item": "Primer::Beta::AutoComplete::Item",
|
186
|
+
"SIZE_MAPPINGS": {
|
187
|
+
"small": "FormControl-small",
|
188
|
+
"medium": "FormControl-medium",
|
189
|
+
"large": "FormControl-large"
|
190
|
+
},
|
191
|
+
"SIZE_OPTIONS": [
|
192
|
+
"small",
|
193
|
+
"medium",
|
194
|
+
"large"
|
195
|
+
]
|
203
196
|
},
|
204
197
|
"Primer::Beta::AutoComplete::Item": {
|
198
|
+
"ALLOWED_DESCRIPTION_VARIANTS": [
|
199
|
+
"inline",
|
200
|
+
"block"
|
201
|
+
]
|
205
202
|
},
|
206
203
|
"Primer::Beta::Avatar": {
|
207
204
|
"DEFAULT_SHAPE": "circle",
|
@@ -238,6 +235,20 @@
|
|
238
235
|
"span"
|
239
236
|
]
|
240
237
|
},
|
238
|
+
"Primer::Beta::BaseButton": {
|
239
|
+
"DEFAULT_TAG": "button",
|
240
|
+
"DEFAULT_TYPE": "button",
|
241
|
+
"TAG_OPTIONS": [
|
242
|
+
"button",
|
243
|
+
"a",
|
244
|
+
"summary"
|
245
|
+
],
|
246
|
+
"TYPE_OPTIONS": [
|
247
|
+
"button",
|
248
|
+
"reset",
|
249
|
+
"submit"
|
250
|
+
]
|
251
|
+
},
|
241
252
|
"Primer::Beta::Blankslate": {
|
242
253
|
"VISUAL_OPTIONS": [
|
243
254
|
"icon",
|
@@ -245,6 +256,34 @@
|
|
245
256
|
"image"
|
246
257
|
]
|
247
258
|
},
|
259
|
+
"Primer::Beta::BorderBox": {
|
260
|
+
"DEFAULT_PADDING": "default",
|
261
|
+
"DEFAULT_ROW_SCHEME": "default",
|
262
|
+
"Header": "Primer::Beta::BorderBox::Header",
|
263
|
+
"PADDING_MAPPINGS": {
|
264
|
+
"default": "",
|
265
|
+
"condensed": "Box--condensed",
|
266
|
+
"spacious": "Box--spacious"
|
267
|
+
},
|
268
|
+
"PADDING_SUGGESTION": "Perhaps you could consider using :padding options of default, condensed, and spacious?",
|
269
|
+
"ROW_SCHEME_MAPPINGS": {
|
270
|
+
"default": "",
|
271
|
+
"neutral": "Box-row--gray",
|
272
|
+
"info": "Box-row--blue",
|
273
|
+
"warning": "Box-row--yellow"
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"Primer::Beta::BorderBox::Header": {
|
277
|
+
"TITLE_TAG_FALLBACK": "h2",
|
278
|
+
"TITLE_TAG_OPTIONS": [
|
279
|
+
"h1",
|
280
|
+
"h2",
|
281
|
+
"h3",
|
282
|
+
"h4",
|
283
|
+
"h5",
|
284
|
+
"h6"
|
285
|
+
]
|
286
|
+
},
|
248
287
|
"Primer::Beta::Breadcrumbs": {
|
249
288
|
"ARGS_DENYLIST": {
|
250
289
|
"[:p, :pt, :pb, :pr, :pl, :px, :py]": "Padding system arguments are not allowed on Breadcrumbs. Consider using margins instead.",
|
@@ -279,20 +318,6 @@
|
|
279
318
|
"Primer::BlankslateComponent": {
|
280
319
|
},
|
281
320
|
"Primer::BorderBoxComponent": {
|
282
|
-
"DEFAULT_PADDING": "default",
|
283
|
-
"DEFAULT_ROW_SCHEME": "default",
|
284
|
-
"PADDING_MAPPINGS": {
|
285
|
-
"default": "",
|
286
|
-
"condensed": "Box--condensed",
|
287
|
-
"spacious": "Box--spacious"
|
288
|
-
},
|
289
|
-
"PADDING_SUGGESTION": "Perhaps you could consider using :padding options of default, condensed, and spacious?",
|
290
|
-
"ROW_SCHEME_MAPPINGS": {
|
291
|
-
"default": "",
|
292
|
-
"neutral": "Box-row--gray",
|
293
|
-
"info": "Box-row--blue",
|
294
|
-
"warning": "Box-row--yellow"
|
295
|
-
}
|
296
321
|
},
|
297
322
|
"Primer::BoxComponent": {
|
298
323
|
},
|
@@ -336,6 +361,8 @@
|
|
336
361
|
"submit"
|
337
362
|
]
|
338
363
|
},
|
364
|
+
"Primer::ConditionalWrapper": {
|
365
|
+
},
|
339
366
|
"Primer::Content": {
|
340
367
|
},
|
341
368
|
"Primer::CounterComponent": {
|
data/static/statuses.json
CHANGED
@@ -1,21 +1,25 @@
|
|
1
1
|
{
|
2
|
-
"Primer::Alpha::
|
2
|
+
"Primer::Alpha::AutoComplete": "deprecated",
|
3
|
+
"Primer::Alpha::AutoComplete::Item": "deprecated",
|
3
4
|
"Primer::Alpha::ButtonMarketing": "alpha",
|
4
5
|
"Primer::Alpha::Layout": "alpha",
|
5
6
|
"Primer::Alpha::Layout::Main": "alpha",
|
6
7
|
"Primer::Alpha::Layout::Sidebar": "alpha",
|
7
8
|
"Primer::Alpha::TabNav": "alpha",
|
8
9
|
"Primer::Alpha::TabPanels": "alpha",
|
10
|
+
"Primer::Alpha::TextField": "alpha",
|
9
11
|
"Primer::Alpha::Tooltip": "alpha",
|
10
12
|
"Primer::Alpha::UnderlineNav": "alpha",
|
11
13
|
"Primer::Alpha::UnderlinePanels": "alpha",
|
12
|
-
"Primer::BaseButton": "beta",
|
13
14
|
"Primer::BaseComponent": "beta",
|
14
15
|
"Primer::Beta::AutoComplete": "beta",
|
15
16
|
"Primer::Beta::AutoComplete::Item": "beta",
|
16
17
|
"Primer::Beta::Avatar": "beta",
|
17
18
|
"Primer::Beta::AvatarStack": "beta",
|
19
|
+
"Primer::Beta::BaseButton": "beta",
|
18
20
|
"Primer::Beta::Blankslate": "beta",
|
21
|
+
"Primer::Beta::BorderBox": "beta",
|
22
|
+
"Primer::Beta::BorderBox::Header": "alpha",
|
19
23
|
"Primer::Beta::Breadcrumbs": "beta",
|
20
24
|
"Primer::Beta::Breadcrumbs::Item": "alpha",
|
21
25
|
"Primer::Beta::Flash": "beta",
|
@@ -23,12 +27,13 @@
|
|
23
27
|
"Primer::Beta::Truncate": "beta",
|
24
28
|
"Primer::Beta::Truncate::TruncateText": "alpha",
|
25
29
|
"Primer::BlankslateComponent": "deprecated",
|
26
|
-
"Primer::BorderBoxComponent": "
|
30
|
+
"Primer::BorderBoxComponent": "deprecated",
|
27
31
|
"Primer::BoxComponent": "stable",
|
28
32
|
"Primer::ButtonComponent": "beta",
|
29
33
|
"Primer::ButtonGroup": "beta",
|
30
34
|
"Primer::ClipboardCopy": "beta",
|
31
35
|
"Primer::CloseButton": "beta",
|
36
|
+
"Primer::ConditionalWrapper": "alpha",
|
32
37
|
"Primer::Content": "stable",
|
33
38
|
"Primer::CounterComponent": "beta",
|
34
39
|
"Primer::DetailsComponent": "beta",
|