primer_view_components 0.0.96 → 0.0.98
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -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/action-list-selection.pcss +92 -0
- data/app/components/primer/alpha/action_list/action-list.pcss +620 -0
- data/app/components/primer/alpha/action_list/divider.rb +35 -0
- data/app/components/primer/alpha/action_list/heading.html.erb +8 -0
- data/app/components/primer/alpha/action_list/heading.rb +38 -0
- data/app/components/primer/alpha/action_list/item.html.erb +39 -0
- data/app/components/primer/alpha/action_list/item.rb +230 -0
- data/app/components/primer/alpha/action_list.html.erb +15 -0
- data/app/components/primer/alpha/action_list.rb +112 -0
- data/app/components/primer/alpha/dialog/header.rb +1 -1
- data/app/components/primer/alpha/nav_list/item.html.erb +13 -0
- data/app/components/primer/alpha/nav_list/item.rb +89 -0
- data/app/components/primer/alpha/nav_list/section.html.erb +3 -0
- data/app/components/primer/alpha/nav_list/section.rb +88 -0
- data/app/components/primer/alpha/nav_list.d.ts +25 -0
- data/app/components/primer/alpha/nav_list.html.erb +10 -0
- data/app/components/primer/alpha/nav_list.js +130 -0
- data/app/components/primer/alpha/nav_list.rb +112 -0
- data/app/components/primer/alpha/nav_list.ts +129 -0
- data/app/components/primer/beta/avatar.rb +10 -10
- data/app/components/primer/beta/avatar_stack.rb +9 -9
- data/app/components/primer/beta/blankslate.rb +2 -2
- data/app/components/primer/button_component.rb +1 -1
- data/app/components/primer/image.rb +4 -4
- data/app/components/primer/image_crop.rb +3 -3
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.pcss +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/components/primer/timeline_item_component.rb +1 -1
- data/lib/postcss_mixins/activeIndicatorLine.pcss +11 -0
- data/lib/primer/deprecations.rb +0 -1
- data/lib/primer/example_image.rb +7 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/tasks/docs.rake +55 -26
- data/lib/tasks/test.rake +1 -1
- data/lib/yard/docs_helper.rb +3 -3
- data/previews/primer/alpha/action_list_preview/heading.html.erb +4 -0
- data/previews/primer/alpha/action_list_preview.rb +308 -0
- data/previews/primer/alpha/auto_complete_preview.rb +42 -0
- data/previews/primer/alpha/button_marketing_preview.rb +17 -0
- data/previews/primer/alpha/dialog_preview/custom_header.html.erb +7 -0
- data/previews/primer/alpha/dialog_preview/test.html.erb +7 -0
- data/previews/primer/alpha/dialog_preview/with_footer.html.erb +8 -0
- data/previews/primer/alpha/dialog_preview/with_form.html.erb +12 -0
- data/previews/primer/alpha/dialog_preview.rb +85 -0
- data/previews/primer/alpha/hidden_text_expander_preview.rb +15 -0
- data/previews/primer/alpha/layout_preview.rb +23 -0
- data/previews/primer/alpha/nav_list_preview.rb +64 -0
- data/previews/primer/alpha/tab_panels_preview.rb +23 -0
- data/previews/primer/alpha/text_field_preview.rb +66 -0
- data/previews/primer/alpha/toggle_switch_preview.rb +50 -0
- data/previews/primer/alpha/tooltip_preview/with_multiple_on_a_page.html.erb +14 -0
- data/previews/primer/alpha/tooltip_preview/with_right_most_position.html.erb +7 -0
- data/previews/primer/alpha/tooltip_preview.rb +83 -0
- data/previews/primer/alpha/underline_nav_preview/default.html.erb +8 -0
- data/previews/primer/alpha/underline_nav_preview.rb +41 -0
- data/previews/primer/alpha/underline_panels_preview.rb +23 -0
- data/previews/primer/beta/auto_complete_item_preview/default.html.erb +9 -0
- data/previews/primer/beta/auto_complete_item_preview/with_description.html.erb +11 -0
- data/previews/primer/beta/auto_complete_item_preview.rb +40 -0
- data/previews/primer/beta/auto_complete_preview/with_submit_button.html.erb +20 -0
- data/previews/primer/beta/auto_complete_preview.rb +245 -0
- data/previews/primer/beta/avatar_preview.rb +17 -0
- data/previews/primer/beta/avatar_stack_preview.rb +44 -0
- data/previews/primer/beta/base_button_preview.rb +17 -0
- data/previews/primer/beta/blankslate_preview.rb +94 -0
- data/previews/primer/beta/border_box_preview.rb +32 -0
- data/previews/primer/beta/breadcrumbs_preview.rb +19 -0
- data/previews/primer/beta/button_group_preview.rb +20 -0
- data/previews/primer/beta/button_preview/all_schemes.html.erb +26 -0
- data/previews/primer/beta/button_preview/leading_visual.html.erb +10 -0
- data/previews/primer/beta/button_preview/trailing_action.html.erb +10 -0
- data/previews/primer/beta/button_preview/trailing_visual.html.erb +11 -0
- data/previews/primer/beta/button_preview/with_tooltip.html.erb +10 -0
- data/previews/primer/beta/button_preview.rb +256 -0
- data/previews/primer/beta/close_button_preview.rb +15 -0
- data/previews/primer/beta/counter_preview.rb +24 -0
- data/previews/primer/beta/details_preview.rb +45 -0
- data/previews/primer/beta/flash_preview.rb +20 -0
- data/previews/primer/beta/heading_preview.rb +16 -0
- data/previews/primer/beta/icon_button_preview.rb +107 -0
- data/previews/primer/beta/text_preview.rb +16 -0
- data/previews/primer/beta/truncate_preview.rb +47 -0
- data/previews/primer/clipboard_copy_preview/element.html.erb +2 -0
- data/previews/primer/clipboard_copy_preview.rb +29 -0
- data/previews/primer/dropdown_preview.rb +39 -0
- data/previews/primer/forms/forms_preview/after_content_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/array_check_box_group_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/caption_template_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/check_box_group_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/composed_form.html.erb +4 -0
- data/previews/primer/forms/forms_preview/horizontal_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/invalid_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/multi_input_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/multi_text_field_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/radio_button_group_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/radio_button_with_nested_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/select_list_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/single_text_field_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/submit_button_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview/text_field_and_checkbox_form.html.erb +3 -0
- data/previews/primer/forms/forms_preview.rb +37 -0
- data/previews/primer/hellip_button_preview.rb +14 -0
- data/previews/primer/image_crop_preview.rb +22 -0
- data/previews/primer/label_component_preview.rb +15 -0
- data/previews/primer/layout_component_preview.rb +18 -0
- data/previews/primer/link_component_preview.rb +29 -0
- data/previews/primer/local_time_component_preview.rb +41 -0
- data/previews/primer/markdown_preview.rb +280 -0
- data/previews/primer/menu_component_preview/default.html.erb +17 -0
- data/previews/primer/menu_component_preview.rb +9 -0
- data/previews/primer/octicon_component_preview.rb +14 -0
- data/previews/primer/popover_component_preview.rb +20 -0
- data/previews/primer/progress_bar_component_preview.rb +17 -0
- data/previews/primer/spinner_component_preview.rb +13 -0
- data/previews/primer/state_component_preview.rb +16 -0
- data/previews/primer/subhead_component_preview.rb +23 -0
- data/previews/primer/time_ago_component_preview.rb +16 -0
- data/previews/primer/timeline_item_component_preview.rb +17 -0
- data/static/arguments.json +267 -3
- data/static/audited_at.json +7 -0
- data/static/constants.json +76 -0
- data/static/statuses.json +8 -1
- metadata +106 -5
- data/app/components/primer/experimental/action_bar.d.ts +0 -14
- data/app/components/primer/experimental/action_bar.js +0 -141
data/static/arguments.json
CHANGED
@@ -1,4 +1,196 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"component": "ActionList",
|
4
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list.rb",
|
5
|
+
"parameters": [
|
6
|
+
{
|
7
|
+
"name": "role",
|
8
|
+
"type": "Boolean",
|
9
|
+
"default": "`:list`",
|
10
|
+
"description": "ARIA role describing the function of the list. listbox and menu are a common values."
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"name": "item_classes",
|
14
|
+
"type": "String",
|
15
|
+
"default": "`nil`",
|
16
|
+
"description": "Additional CSS classes to attach to items."
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"name": "scheme",
|
20
|
+
"type": "Symbol",
|
21
|
+
"default": "`:full`",
|
22
|
+
"description": "One of `:full` or `:inset`.. `inset` children are offset (vertically and horizontally) from list edges. `full` (default) children are flush (vertically and horizontally) with list edges."
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"name": "show_dividers",
|
26
|
+
"type": "Boolean",
|
27
|
+
"default": "`false`",
|
28
|
+
"description": "Display a divider above each item in the list when it does not follow a header or divider."
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"name": "system_arguments",
|
32
|
+
"type": "Hash",
|
33
|
+
"default": "N/A",
|
34
|
+
"description": "[System arguments](/system-arguments)"
|
35
|
+
}
|
36
|
+
]
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"component": "ActionList::Divider",
|
40
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list/divider.rb",
|
41
|
+
"parameters": [
|
42
|
+
{
|
43
|
+
"name": "scheme",
|
44
|
+
"type": "Symbol",
|
45
|
+
"default": "`:subtle`",
|
46
|
+
"description": "Display a background color if scheme is `filled`."
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"name": "system_arguments",
|
50
|
+
"type": "Hash",
|
51
|
+
"default": "N/A",
|
52
|
+
"description": "[System arguments](/system-arguments)"
|
53
|
+
}
|
54
|
+
]
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"component": "ActionList::Heading",
|
58
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list/heading.rb",
|
59
|
+
"parameters": [
|
60
|
+
{
|
61
|
+
"name": "list_id",
|
62
|
+
"type": "String",
|
63
|
+
"default": "N/A",
|
64
|
+
"description": "The unique identifier of the sub list the heading belongs to. Used internally."
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"name": "title",
|
68
|
+
"type": "String",
|
69
|
+
"default": "N/A",
|
70
|
+
"description": "Sub list title."
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"name": "subtitle",
|
74
|
+
"type": "String",
|
75
|
+
"default": "`nil`",
|
76
|
+
"description": "Optional sub list description."
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"name": "scheme",
|
80
|
+
"type": "Symbol",
|
81
|
+
"default": "`:subtle`",
|
82
|
+
"description": "Display a background color if scheme is `filled`."
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"name": "tag",
|
86
|
+
"type": "Symbol",
|
87
|
+
"default": "`:h3`",
|
88
|
+
"description": "Semantic tag for the heading."
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"name": "system_arguments",
|
92
|
+
"type": "Hash",
|
93
|
+
"default": "N/A",
|
94
|
+
"description": "[System arguments](/system-arguments)"
|
95
|
+
}
|
96
|
+
]
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"component": "ActionList::Item",
|
100
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/action_list/item.rb",
|
101
|
+
"parameters": [
|
102
|
+
{
|
103
|
+
"name": "list",
|
104
|
+
"type": "Primer::Alpha::ActionList",
|
105
|
+
"default": "N/A",
|
106
|
+
"description": "The list that contains this item. Used internally."
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"name": "parent",
|
110
|
+
"type": "Primer::Alpha::ActionList::Item",
|
111
|
+
"default": "`nil`",
|
112
|
+
"description": "This item's parent item. `nil` if this item is at the root. Used internally."
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"name": "label",
|
116
|
+
"type": "String",
|
117
|
+
"default": "N/A",
|
118
|
+
"description": "Item label."
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"name": "label_classes",
|
122
|
+
"type": "String",
|
123
|
+
"default": "`nil`",
|
124
|
+
"description": "CSS classes that will be added to the label."
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"name": "truncate_label",
|
128
|
+
"type": "Boolean",
|
129
|
+
"default": "`false`",
|
130
|
+
"description": "Truncate label with ellipsis."
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"name": "href",
|
134
|
+
"type": "String",
|
135
|
+
"default": "`nil`",
|
136
|
+
"description": "Link URL."
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"name": "role",
|
140
|
+
"type": "String",
|
141
|
+
"default": "`:listitem`",
|
142
|
+
"description": "ARIA role describing the function of the item."
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"name": "size",
|
146
|
+
"type": "Symbol",
|
147
|
+
"default": "`:medium`",
|
148
|
+
"description": "Controls block sizing of the item."
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"name": "scheme",
|
152
|
+
"type": "Symbol",
|
153
|
+
"default": "`:default`",
|
154
|
+
"description": "Controls color/style based on behavior."
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"name": "disabled",
|
158
|
+
"type": "Boolean",
|
159
|
+
"default": "`false`",
|
160
|
+
"description": "Disabled items are not clickable and visually dim."
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"name": "description_scheme",
|
164
|
+
"type": "Symbol",
|
165
|
+
"default": "`:block`",
|
166
|
+
"description": "Display description inline with label, or block on the next line."
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"name": "active",
|
170
|
+
"type": "Boolean",
|
171
|
+
"default": "`false`",
|
172
|
+
"description": "Sets an active state on navigational items."
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"name": "on_click",
|
176
|
+
"type": "String",
|
177
|
+
"default": "`nil`",
|
178
|
+
"description": "JavaScript to execute when the item is clicked."
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"name": "id",
|
182
|
+
"type": "String",
|
183
|
+
"default": "`SecureRandom.hex`",
|
184
|
+
"description": "Used internally."
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"name": "system_arguments",
|
188
|
+
"type": "Hash",
|
189
|
+
"default": "N/A",
|
190
|
+
"description": "[System arguments](/system-arguments)"
|
191
|
+
}
|
192
|
+
]
|
193
|
+
},
|
2
194
|
{
|
3
195
|
"component": "ButtonMarketing",
|
4
196
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/button_marketing.rb",
|
@@ -143,6 +335,78 @@
|
|
143
335
|
}
|
144
336
|
]
|
145
337
|
},
|
338
|
+
{
|
339
|
+
"component": "NavList",
|
340
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list.rb",
|
341
|
+
"parameters": [
|
342
|
+
{
|
343
|
+
"name": "selected_item_id",
|
344
|
+
"type": "Symbol",
|
345
|
+
"default": "`nil`",
|
346
|
+
"description": "The ID of the currently selected item. The default is `nil`, meaning no item is selected."
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"name": "system_arguments",
|
350
|
+
"type": "Hash",
|
351
|
+
"default": "N/A",
|
352
|
+
"description": "[System arguments](/system-arguments)"
|
353
|
+
}
|
354
|
+
]
|
355
|
+
},
|
356
|
+
{
|
357
|
+
"component": "NavList::Item",
|
358
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list/item.rb",
|
359
|
+
"parameters": [
|
360
|
+
{
|
361
|
+
"name": "selected_item_id",
|
362
|
+
"type": "Symbol",
|
363
|
+
"default": "`nil`",
|
364
|
+
"description": "The ID of the currently selected list item. Used internally."
|
365
|
+
},
|
366
|
+
{
|
367
|
+
"name": "selected_by_ids",
|
368
|
+
"type": "Array<Symbol>",
|
369
|
+
"default": "`[]`",
|
370
|
+
"description": "The list of IDs that select this item. In other words, if the `selected_item_id` attribute on the parent `NavList` is set to one of these IDs, the item will appear selected."
|
371
|
+
},
|
372
|
+
{
|
373
|
+
"name": "expanded",
|
374
|
+
"type": "Boolean",
|
375
|
+
"default": "`false`",
|
376
|
+
"description": "Whether this item shows (expands) or hides (collapses) its list of sub items."
|
377
|
+
},
|
378
|
+
{
|
379
|
+
"name": "sub_item",
|
380
|
+
"type": "Boolean",
|
381
|
+
"default": "`false`",
|
382
|
+
"description": "Whether or not this item is nested under a parent item. Used internally."
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"name": "system_arguments",
|
386
|
+
"type": "Hash",
|
387
|
+
"default": "N/A",
|
388
|
+
"description": "[System arguments](/system-arguments)"
|
389
|
+
}
|
390
|
+
]
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"component": "NavList::Section",
|
394
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/nav_list/section.rb",
|
395
|
+
"parameters": [
|
396
|
+
{
|
397
|
+
"name": "selected_item_id",
|
398
|
+
"type": "Symbol",
|
399
|
+
"default": "`nil`",
|
400
|
+
"description": "The ID of the currently selected item. Used internally."
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"name": "system_arguments",
|
404
|
+
"type": "Hash",
|
405
|
+
"default": "N/A",
|
406
|
+
"description": "[System arguments](/system-arguments)"
|
407
|
+
}
|
408
|
+
]
|
409
|
+
},
|
146
410
|
{
|
147
411
|
"component": "TabNav",
|
148
412
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/tab_nav.rb",
|
@@ -594,7 +858,7 @@
|
|
594
858
|
]
|
595
859
|
},
|
596
860
|
{
|
597
|
-
"component": "
|
861
|
+
"component": "AutoComplete::Item",
|
598
862
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/auto_complete/item.rb",
|
599
863
|
"parameters": [
|
600
864
|
{
|
@@ -792,7 +1056,7 @@
|
|
792
1056
|
]
|
793
1057
|
},
|
794
1058
|
{
|
795
|
-
"component": "
|
1059
|
+
"component": "BorderBox::Header",
|
796
1060
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/border_box/header.rb",
|
797
1061
|
"parameters": [
|
798
1062
|
{
|
@@ -1698,7 +1962,7 @@
|
|
1698
1962
|
]
|
1699
1963
|
},
|
1700
1964
|
{
|
1701
|
-
"component": "
|
1965
|
+
"component": "Navigation::Tab",
|
1702
1966
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/navigation/tab_component.rb",
|
1703
1967
|
"parameters": [
|
1704
1968
|
{
|
data/static/audited_at.json
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
{
|
2
|
+
"Primer::Alpha::ActionList": "",
|
3
|
+
"Primer::Alpha::ActionList::Divider": "",
|
4
|
+
"Primer::Alpha::ActionList::Heading": "",
|
5
|
+
"Primer::Alpha::ActionList::Item": "",
|
2
6
|
"Primer::Alpha::AutoComplete": "",
|
3
7
|
"Primer::Alpha::AutoComplete::Item": "",
|
4
8
|
"Primer::Alpha::ButtonMarketing": "",
|
@@ -10,6 +14,9 @@
|
|
10
14
|
"Primer::Alpha::Layout": "",
|
11
15
|
"Primer::Alpha::Layout::Main": "",
|
12
16
|
"Primer::Alpha::Layout::Sidebar": "",
|
17
|
+
"Primer::Alpha::NavList": "",
|
18
|
+
"Primer::Alpha::NavList::Item": "",
|
19
|
+
"Primer::Alpha::NavList::Section": "",
|
13
20
|
"Primer::Alpha::TabNav": "",
|
14
21
|
"Primer::Alpha::TabPanels": "",
|
15
22
|
"Primer::Alpha::TextField": "",
|
data/static/constants.json
CHANGED
@@ -1,4 +1,72 @@
|
|
1
1
|
{
|
2
|
+
"Primer::Alpha::ActionList": {
|
3
|
+
"DEFAULT_ROLE": "list",
|
4
|
+
"DEFAULT_SCHEME": "full",
|
5
|
+
"Divider": "Primer::Alpha::ActionList::Divider",
|
6
|
+
"Heading": "Primer::Alpha::ActionList::Heading",
|
7
|
+
"Item": "Primer::Alpha::ActionList::Item",
|
8
|
+
"SCHEME_MAPPINGS": {
|
9
|
+
"full": null,
|
10
|
+
"inset": "ActionListWrap--inset"
|
11
|
+
},
|
12
|
+
"SCHEME_OPTIONS": [
|
13
|
+
"full",
|
14
|
+
"inset"
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"Primer::Alpha::ActionList::Divider": {
|
18
|
+
"DEFAULT_SCHEME": "subtle",
|
19
|
+
"SCHEME_MAPPINGS": {
|
20
|
+
"subtle": null,
|
21
|
+
"filled": "ActionList-sectionDivider--filled"
|
22
|
+
},
|
23
|
+
"SCHEME_OPTIONS": [
|
24
|
+
"subtle",
|
25
|
+
"filled"
|
26
|
+
]
|
27
|
+
},
|
28
|
+
"Primer::Alpha::ActionList::Heading": {
|
29
|
+
"DEFAULT_SCHEME": "subtle",
|
30
|
+
"SCHEME_MAPPINGS": {
|
31
|
+
"subtle": null,
|
32
|
+
"filled": "ActionList-sectionDivider--filled"
|
33
|
+
},
|
34
|
+
"SCHEME_OPTIONS": [
|
35
|
+
"subtle",
|
36
|
+
"filled"
|
37
|
+
]
|
38
|
+
},
|
39
|
+
"Primer::Alpha::ActionList::Item": {
|
40
|
+
"DEFAULT_DESCRIPTION_SCHEME": "block",
|
41
|
+
"DEFAULT_SCHEME": "default",
|
42
|
+
"DEFAULT_SIZE": "medium",
|
43
|
+
"DESCRIPTION_SCHEME_MAPPINGS": {
|
44
|
+
"inline": "ActionListItem-descriptionWrap--inline",
|
45
|
+
"block": "ActionListItem-descriptionWrap"
|
46
|
+
},
|
47
|
+
"DESCRIPTION_SCHEME_OPTIONS": [
|
48
|
+
"inline",
|
49
|
+
"block"
|
50
|
+
],
|
51
|
+
"SCHEME_MAPPINGS": {
|
52
|
+
"default": null,
|
53
|
+
"danger": "ActionListItem--danger"
|
54
|
+
},
|
55
|
+
"SCHEME_OPTIONS": [
|
56
|
+
"default",
|
57
|
+
"danger"
|
58
|
+
],
|
59
|
+
"SIZE_MAPPINGS": {
|
60
|
+
"medium": null,
|
61
|
+
"large": "ActionListContent--sizeLarge",
|
62
|
+
"xlarge": "ActionListContent--sizeXLarge"
|
63
|
+
},
|
64
|
+
"SIZE_OPTIONS": [
|
65
|
+
"medium",
|
66
|
+
"large",
|
67
|
+
"xlarge"
|
68
|
+
]
|
69
|
+
},
|
2
70
|
"Primer::Alpha::AutoComplete": {
|
3
71
|
"Item": "Primer::Alpha::AutoComplete::Item"
|
4
72
|
},
|
@@ -170,6 +238,14 @@
|
|
170
238
|
"section"
|
171
239
|
]
|
172
240
|
},
|
241
|
+
"Primer::Alpha::NavList": {
|
242
|
+
"Item": "Primer::Alpha::NavList::Item",
|
243
|
+
"Section": "Primer::Alpha::NavList::Section"
|
244
|
+
},
|
245
|
+
"Primer::Alpha::NavList::Item": {
|
246
|
+
},
|
247
|
+
"Primer::Alpha::NavList::Section": {
|
248
|
+
},
|
173
249
|
"Primer::Alpha::TabNav": {
|
174
250
|
"BODY_TAG_DEFAULT": "ul",
|
175
251
|
"TAG_DEFAULT": "nav",
|
data/static/statuses.json
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
{
|
2
|
+
"Primer::Alpha::ActionList": "alpha",
|
3
|
+
"Primer::Alpha::ActionList::Divider": "alpha",
|
4
|
+
"Primer::Alpha::ActionList::Heading": "alpha",
|
5
|
+
"Primer::Alpha::ActionList::Item": "alpha",
|
2
6
|
"Primer::Alpha::AutoComplete": "deprecated",
|
3
7
|
"Primer::Alpha::AutoComplete::Item": "deprecated",
|
4
8
|
"Primer::Alpha::ButtonMarketing": "alpha",
|
@@ -10,6 +14,9 @@
|
|
10
14
|
"Primer::Alpha::Layout": "alpha",
|
11
15
|
"Primer::Alpha::Layout::Main": "alpha",
|
12
16
|
"Primer::Alpha::Layout::Sidebar": "alpha",
|
17
|
+
"Primer::Alpha::NavList": "alpha",
|
18
|
+
"Primer::Alpha::NavList::Item": "alpha",
|
19
|
+
"Primer::Alpha::NavList::Section": "alpha",
|
13
20
|
"Primer::Alpha::TabNav": "alpha",
|
14
21
|
"Primer::Alpha::TabPanels": "alpha",
|
15
22
|
"Primer::Alpha::TextField": "alpha",
|
@@ -42,7 +49,7 @@
|
|
42
49
|
"Primer::BlankslateComponent": "deprecated",
|
43
50
|
"Primer::Box": "stable",
|
44
51
|
"Primer::BoxComponent": "deprecated",
|
45
|
-
"Primer::ButtonComponent": "
|
52
|
+
"Primer::ButtonComponent": "beta",
|
46
53
|
"Primer::ClipboardCopy": "beta",
|
47
54
|
"Primer::CloseButton": "deprecated",
|
48
55
|
"Primer::ConditionalWrapper": "alpha",
|
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.98
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -408,6 +408,15 @@ files:
|
|
408
408
|
- app/assets/javascripts/primer_view_components.js.map
|
409
409
|
- app/assets/styles/primer_view_components.css
|
410
410
|
- app/assets/styles/primer_view_components.css.map
|
411
|
+
- app/components/primer/alpha/action_list.html.erb
|
412
|
+
- app/components/primer/alpha/action_list.rb
|
413
|
+
- app/components/primer/alpha/action_list/action-list-selection.pcss
|
414
|
+
- app/components/primer/alpha/action_list/action-list.pcss
|
415
|
+
- app/components/primer/alpha/action_list/divider.rb
|
416
|
+
- app/components/primer/alpha/action_list/heading.html.erb
|
417
|
+
- app/components/primer/alpha/action_list/heading.rb
|
418
|
+
- app/components/primer/alpha/action_list/item.html.erb
|
419
|
+
- app/components/primer/alpha/action_list/item.rb
|
411
420
|
- app/components/primer/alpha/auto_complete.rb
|
412
421
|
- app/components/primer/alpha/auto_complete/auto_complete.html.erb
|
413
422
|
- app/components/primer/alpha/auto_complete/item.rb
|
@@ -424,6 +433,15 @@ files:
|
|
424
433
|
- app/components/primer/alpha/modal_dialog.d.ts
|
425
434
|
- app/components/primer/alpha/modal_dialog.js
|
426
435
|
- app/components/primer/alpha/modal_dialog.ts
|
436
|
+
- app/components/primer/alpha/nav_list.d.ts
|
437
|
+
- app/components/primer/alpha/nav_list.html.erb
|
438
|
+
- app/components/primer/alpha/nav_list.js
|
439
|
+
- app/components/primer/alpha/nav_list.rb
|
440
|
+
- app/components/primer/alpha/nav_list.ts
|
441
|
+
- app/components/primer/alpha/nav_list/item.html.erb
|
442
|
+
- app/components/primer/alpha/nav_list/item.rb
|
443
|
+
- app/components/primer/alpha/nav_list/section.html.erb
|
444
|
+
- app/components/primer/alpha/nav_list/section.rb
|
427
445
|
- app/components/primer/alpha/tab_nav.html.erb
|
428
446
|
- app/components/primer/alpha/tab_nav.rb
|
429
447
|
- app/components/primer/alpha/tab_panels.html.erb
|
@@ -508,8 +526,6 @@ files:
|
|
508
526
|
- app/components/primer/dropdown/menu.ts
|
509
527
|
- app/components/primer/dropdown_menu_component.html.erb
|
510
528
|
- app/components/primer/dropdown_menu_component.rb
|
511
|
-
- app/components/primer/experimental/action_bar.d.ts
|
512
|
-
- app/components/primer/experimental/action_bar.js
|
513
529
|
- app/components/primer/flex_component.rb
|
514
530
|
- app/components/primer/flex_item_component.rb
|
515
531
|
- app/components/primer/heading_component.rb
|
@@ -577,6 +593,7 @@ files:
|
|
577
593
|
- app/lib/primer/test_selector_helper.rb
|
578
594
|
- app/lib/primer/underline_nav_helper.rb
|
579
595
|
- app/lib/primer/view_helper.rb
|
596
|
+
- lib/postcss_mixins/activeIndicatorLine.pcss
|
580
597
|
- lib/postcss_mixins/focusBoxShadowInset.pcss
|
581
598
|
- lib/postcss_mixins/focusOutline.pcss
|
582
599
|
- lib/postcss_mixins/focusOutlineOnEmphasis.pcss
|
@@ -587,6 +604,7 @@ files:
|
|
587
604
|
- lib/primer/classify/utilities.yml
|
588
605
|
- lib/primer/classify/validation.rb
|
589
606
|
- lib/primer/deprecations.rb
|
607
|
+
- lib/primer/example_image.rb
|
590
608
|
- lib/primer/form_components.rb
|
591
609
|
- lib/primer/forms/acts_as_component.rb
|
592
610
|
- lib/primer/forms/base.html.erb
|
@@ -701,6 +719,89 @@ files:
|
|
701
719
|
- lib/yard/docs_helper.rb
|
702
720
|
- lib/yard/renders_many_handler.rb
|
703
721
|
- lib/yard/renders_one_handler.rb
|
722
|
+
- previews/primer/alpha/action_list_preview.rb
|
723
|
+
- previews/primer/alpha/action_list_preview/heading.html.erb
|
724
|
+
- previews/primer/alpha/auto_complete_preview.rb
|
725
|
+
- previews/primer/alpha/button_marketing_preview.rb
|
726
|
+
- previews/primer/alpha/dialog_preview.rb
|
727
|
+
- previews/primer/alpha/dialog_preview/custom_header.html.erb
|
728
|
+
- previews/primer/alpha/dialog_preview/test.html.erb
|
729
|
+
- previews/primer/alpha/dialog_preview/with_footer.html.erb
|
730
|
+
- previews/primer/alpha/dialog_preview/with_form.html.erb
|
731
|
+
- previews/primer/alpha/hidden_text_expander_preview.rb
|
732
|
+
- previews/primer/alpha/layout_preview.rb
|
733
|
+
- previews/primer/alpha/nav_list_preview.rb
|
734
|
+
- previews/primer/alpha/tab_panels_preview.rb
|
735
|
+
- previews/primer/alpha/text_field_preview.rb
|
736
|
+
- previews/primer/alpha/toggle_switch_preview.rb
|
737
|
+
- previews/primer/alpha/tooltip_preview.rb
|
738
|
+
- previews/primer/alpha/tooltip_preview/with_multiple_on_a_page.html.erb
|
739
|
+
- previews/primer/alpha/tooltip_preview/with_right_most_position.html.erb
|
740
|
+
- previews/primer/alpha/underline_nav_preview.rb
|
741
|
+
- previews/primer/alpha/underline_nav_preview/default.html.erb
|
742
|
+
- previews/primer/alpha/underline_panels_preview.rb
|
743
|
+
- previews/primer/beta/auto_complete_item_preview.rb
|
744
|
+
- previews/primer/beta/auto_complete_item_preview/default.html.erb
|
745
|
+
- previews/primer/beta/auto_complete_item_preview/with_description.html.erb
|
746
|
+
- previews/primer/beta/auto_complete_preview.rb
|
747
|
+
- previews/primer/beta/auto_complete_preview/with_submit_button.html.erb
|
748
|
+
- previews/primer/beta/avatar_preview.rb
|
749
|
+
- previews/primer/beta/avatar_stack_preview.rb
|
750
|
+
- previews/primer/beta/base_button_preview.rb
|
751
|
+
- previews/primer/beta/blankslate_preview.rb
|
752
|
+
- previews/primer/beta/border_box_preview.rb
|
753
|
+
- previews/primer/beta/breadcrumbs_preview.rb
|
754
|
+
- previews/primer/beta/button_group_preview.rb
|
755
|
+
- previews/primer/beta/button_preview.rb
|
756
|
+
- previews/primer/beta/button_preview/all_schemes.html.erb
|
757
|
+
- previews/primer/beta/button_preview/leading_visual.html.erb
|
758
|
+
- previews/primer/beta/button_preview/trailing_action.html.erb
|
759
|
+
- previews/primer/beta/button_preview/trailing_visual.html.erb
|
760
|
+
- previews/primer/beta/button_preview/with_tooltip.html.erb
|
761
|
+
- previews/primer/beta/close_button_preview.rb
|
762
|
+
- previews/primer/beta/counter_preview.rb
|
763
|
+
- previews/primer/beta/details_preview.rb
|
764
|
+
- previews/primer/beta/flash_preview.rb
|
765
|
+
- previews/primer/beta/heading_preview.rb
|
766
|
+
- previews/primer/beta/icon_button_preview.rb
|
767
|
+
- previews/primer/beta/text_preview.rb
|
768
|
+
- previews/primer/beta/truncate_preview.rb
|
769
|
+
- previews/primer/clipboard_copy_preview.rb
|
770
|
+
- previews/primer/clipboard_copy_preview/element.html.erb
|
771
|
+
- previews/primer/dropdown_preview.rb
|
772
|
+
- previews/primer/forms/forms_preview.rb
|
773
|
+
- previews/primer/forms/forms_preview/after_content_form.html.erb
|
774
|
+
- previews/primer/forms/forms_preview/array_check_box_group_form.html.erb
|
775
|
+
- previews/primer/forms/forms_preview/caption_template_form.html.erb
|
776
|
+
- previews/primer/forms/forms_preview/check_box_group_form.html.erb
|
777
|
+
- previews/primer/forms/forms_preview/composed_form.html.erb
|
778
|
+
- previews/primer/forms/forms_preview/horizontal_form.html.erb
|
779
|
+
- previews/primer/forms/forms_preview/invalid_form.html.erb
|
780
|
+
- previews/primer/forms/forms_preview/multi_input_form.html.erb
|
781
|
+
- previews/primer/forms/forms_preview/multi_text_field_form.html.erb
|
782
|
+
- previews/primer/forms/forms_preview/radio_button_group_form.html.erb
|
783
|
+
- previews/primer/forms/forms_preview/radio_button_with_nested_form.html.erb
|
784
|
+
- previews/primer/forms/forms_preview/select_list_form.html.erb
|
785
|
+
- previews/primer/forms/forms_preview/single_text_field_form.html.erb
|
786
|
+
- previews/primer/forms/forms_preview/submit_button_form.html.erb
|
787
|
+
- previews/primer/forms/forms_preview/text_field_and_checkbox_form.html.erb
|
788
|
+
- previews/primer/hellip_button_preview.rb
|
789
|
+
- previews/primer/image_crop_preview.rb
|
790
|
+
- previews/primer/label_component_preview.rb
|
791
|
+
- previews/primer/layout_component_preview.rb
|
792
|
+
- previews/primer/link_component_preview.rb
|
793
|
+
- previews/primer/local_time_component_preview.rb
|
794
|
+
- previews/primer/markdown_preview.rb
|
795
|
+
- previews/primer/menu_component_preview.rb
|
796
|
+
- previews/primer/menu_component_preview/default.html.erb
|
797
|
+
- previews/primer/octicon_component_preview.rb
|
798
|
+
- previews/primer/popover_component_preview.rb
|
799
|
+
- previews/primer/progress_bar_component_preview.rb
|
800
|
+
- previews/primer/spinner_component_preview.rb
|
801
|
+
- previews/primer/state_component_preview.rb
|
802
|
+
- previews/primer/subhead_component_preview.rb
|
803
|
+
- previews/primer/time_ago_component_preview.rb
|
804
|
+
- previews/primer/timeline_item_component_preview.rb
|
704
805
|
- static/arguments.json
|
705
806
|
- static/assets/view-components.svg
|
706
807
|
- static/audited_at.json
|
@@ -726,7 +827,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
726
827
|
- !ruby/object:Gem::Version
|
727
828
|
version: '0'
|
728
829
|
requirements: []
|
729
|
-
rubygems_version: 3.
|
830
|
+
rubygems_version: 3.3.7
|
730
831
|
signing_key:
|
731
832
|
specification_version: 4
|
732
833
|
summary: ViewComponents for the Primer Design System
|
@@ -1,14 +0,0 @@
|
|
1
|
-
export declare class ActionBarElement extends HTMLElement {
|
2
|
-
#private;
|
3
|
-
items: HTMLElement[];
|
4
|
-
menuItems: HTMLElement[];
|
5
|
-
itemContainer: HTMLElement;
|
6
|
-
moreMenu: HTMLElement;
|
7
|
-
connectedCallback(): void;
|
8
|
-
disconnectedCallback(): void;
|
9
|
-
}
|
10
|
-
declare global {
|
11
|
-
interface Window {
|
12
|
-
ActionBarElement: typeof ActionBarElement;
|
13
|
-
}
|
14
|
-
}
|