primer_view_components 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -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 +2 -2
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/heading.html.erb +1 -1
- data/app/components/primer/alpha/action_list/heading.rb +5 -3
- data/app/components/primer/alpha/action_list/item.html.erb +9 -0
- data/app/components/primer/alpha/action_list/item.rb +31 -10
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +4 -41
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +19 -20
- data/app/components/primer/alpha/action_list.rb +54 -6
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +22 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +139 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +137 -0
- data/app/components/primer/alpha/action_menu/list.rb +81 -0
- data/app/components/primer/alpha/action_menu.html.erb +26 -0
- data/app/components/primer/alpha/action_menu.rb +322 -0
- data/app/components/primer/alpha/auto_complete.css.json +0 -11
- data/app/components/primer/alpha/banner.css.json +0 -14
- data/app/components/primer/alpha/button_marketing.css.json +0 -10
- data/app/components/primer/alpha/dialog.css.json +0 -63
- data/app/components/primer/alpha/dialog.rb +6 -2
- data/app/components/primer/alpha/dropdown.css.json +0 -21
- data/app/components/primer/alpha/layout.css.json +0 -27
- data/app/components/primer/alpha/menu.css.json +0 -11
- data/app/components/primer/alpha/nav_list/item.rb +5 -0
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.json +0 -3
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +1 -0
- data/app/components/primer/alpha/overlay.rb +14 -18
- data/app/components/primer/alpha/segmented_control.css.json +0 -15
- data/app/components/primer/alpha/tab_nav.css.json +0 -10
- data/app/components/primer/alpha/text_field.css.json +0 -38
- data/app/components/primer/alpha/toggle_switch.css.json +0 -16
- data/app/components/primer/alpha/underline_nav.css.json +0 -13
- data/app/components/primer/beta/avatar.css.json +0 -14
- data/app/components/primer/beta/avatar_stack.css.json +0 -9
- data/app/components/primer/beta/blankslate.css.json +0 -12
- data/app/components/primer/beta/border_box.css.json +0 -32
- data/app/components/primer/beta/border_box.rb +3 -3
- data/app/components/primer/beta/breadcrumbs.css.json +0 -4
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +0 -22
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +3 -3
- data/app/components/primer/beta/counter.css.json +0 -6
- data/app/components/primer/beta/flash.css.json +0 -15
- data/app/components/primer/beta/label.css.json +0 -20
- data/app/components/primer/beta/link.css.json +0 -8
- data/app/components/primer/beta/popover.css.json +0 -18
- data/app/components/primer/beta/progress_bar.css.json +0 -6
- data/app/components/primer/beta/state.css.json +0 -10
- data/app/components/primer/beta/subhead.css.json +0 -8
- data/app/components/primer/beta/timeline_item.css.json +0 -9
- data/app/components/primer/beta/truncate.css.json +0 -6
- data/app/components/primer/focus_group.d.ts +19 -0
- data/app/components/primer/focus_group.js +144 -0
- data/app/components/primer/focus_group.ts +137 -0
- data/app/components/primer/icon_button.rb +1 -1
- data/app/components/primer/primer.d.ts +2 -0
- data/app/components/primer/primer.js +2 -0
- data/app/components/primer/primer.ts +2 -0
- data/app/components/primer/truncate.css.json +0 -7
- data/app/lib/primer/css/layout.css.json +0 -263
- data/app/lib/primer/css/utilities.css.json +0 -1636
- data/lib/primer/static/generate_arguments.rb +55 -0
- data/lib/primer/static/generate_audited_at.rb +17 -0
- data/lib/primer/static/generate_constants.rb +19 -0
- data/lib/primer/static/generate_info_arch.rb +156 -0
- data/lib/primer/static/generate_previews.rb +45 -0
- data/lib/primer/static/generate_statuses.rb +17 -0
- data/lib/primer/static.rb +72 -0
- data/lib/primer/view_components/linters/disallow_component_css_counter.rb +43 -4
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/primer/view_components.rb +0 -48
- data/lib/primer/yard/component_manifest.rb +1 -0
- data/lib/primer/yard/component_ref.rb +14 -0
- data/lib/primer/yard/docs_helper.rb +3 -0
- data/lib/primer/yard/info_arch_docs_helper.rb +31 -0
- data/lib/primer/yard/legacy_gatsby_backend.rb +3 -35
- data/lib/primer/yard/registry.rb +2 -1
- data/lib/primer/yard.rb +1 -0
- data/lib/tasks/docs.rake +10 -12
- data/lib/tasks/static.rake +20 -28
- data/previews/primer/alpha/action_list_preview.rb +4 -1
- data/previews/primer/alpha/action_menu_preview/align_end.html.erb +6 -0
- data/previews/primer/alpha/action_menu_preview/opens_dialog.html.erb +21 -0
- data/previews/primer/alpha/action_menu_preview.rb +238 -0
- data/previews/primer/alpha/dialog_preview/body_has_scrollbar_overflow.html.erb +2 -2
- data/previews/primer/alpha/dialog_preview/custom_header.html.erb +3 -3
- data/previews/primer/alpha/dialog_preview/nested_dialog.html.erb +4 -4
- data/previews/primer/alpha/dialog_preview/test.html.erb +3 -3
- data/previews/primer/alpha/dialog_preview/with_footer.html.erb +3 -3
- data/previews/primer/alpha/dialog_preview/with_form.html.erb +1 -1
- data/previews/primer/alpha/dialog_preview/with_text_input.html.erb +2 -2
- data/previews/primer/alpha/dialog_preview.rb +7 -2
- data/previews/primer/beta/auto_complete_item_preview.rb +1 -0
- data/static/arguments.json +3078 -1404
- data/static/audited_at.json +2 -0
- data/static/classes.json +576 -311
- data/static/constants.json +42 -2
- data/static/info_arch.json +8859 -0
- data/static/previews.json +221 -101
- data/static/statuses.json +2 -0
- metadata +23 -2
data/static/constants.json
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"Primer::Alpha::ActionList": {
|
3
|
+
"DEFAULT_MENU_ITEM_ROLE": "menuitem",
|
3
4
|
"DEFAULT_ROLE": "list",
|
4
5
|
"DEFAULT_SCHEME": "full",
|
6
|
+
"DEFAULT_SELECT_VARIANT": "none",
|
5
7
|
"Divider": "Primer::Alpha::ActionList::Divider",
|
6
8
|
"Heading": "Primer::Alpha::ActionList::Heading",
|
7
9
|
"Item": "Primer::Alpha::ActionList::Item",
|
10
|
+
"MENU_ROLE": "menu",
|
8
11
|
"SCHEME_MAPPINGS": {
|
9
12
|
"full": null,
|
10
13
|
"inset": "ActionListWrap--inset"
|
@@ -12,7 +15,18 @@
|
|
12
15
|
"SCHEME_OPTIONS": [
|
13
16
|
"full",
|
14
17
|
"inset"
|
15
|
-
]
|
18
|
+
],
|
19
|
+
"SELECT_VARIANT_OPTIONS": [
|
20
|
+
"single",
|
21
|
+
"multiple",
|
22
|
+
"multiple_checkbox",
|
23
|
+
"none"
|
24
|
+
],
|
25
|
+
"SELECT_VARIANT_ROLE_MAP": {
|
26
|
+
"single": "menuitemradio",
|
27
|
+
"multiple": "menuitemcheckbox",
|
28
|
+
"multiple_checkbox": "menuitemcheckbox"
|
29
|
+
}
|
16
30
|
},
|
17
31
|
"Primer::Alpha::ActionList::Divider": {
|
18
32
|
"DEFAULT_SCHEME": "subtle",
|
@@ -77,6 +91,31 @@
|
|
77
91
|
"xlarge"
|
78
92
|
]
|
79
93
|
},
|
94
|
+
"Primer::Alpha::ActionMenu": {
|
95
|
+
"DEFAULT_PRELOAD": false,
|
96
|
+
"DEFAULT_SELECT_VARIANT": "none",
|
97
|
+
"List": "Primer::Alpha::ActionMenu::List",
|
98
|
+
"SELECT_VARIANT_OPTIONS": [
|
99
|
+
"single",
|
100
|
+
"multiple",
|
101
|
+
"none"
|
102
|
+
]
|
103
|
+
},
|
104
|
+
"Primer::Alpha::ActionMenu::List": {
|
105
|
+
"DEFAULT_ITEM_TAG": "span",
|
106
|
+
"ITEM_ACTION_OPTIONS": [
|
107
|
+
"classes",
|
108
|
+
"onclick",
|
109
|
+
"href",
|
110
|
+
"value"
|
111
|
+
],
|
112
|
+
"ITEM_TAG_OPTIONS": [
|
113
|
+
"a",
|
114
|
+
"button",
|
115
|
+
"clipboard-copy",
|
116
|
+
"span"
|
117
|
+
]
|
118
|
+
},
|
80
119
|
"Primer::Alpha::AutoComplete": {
|
81
120
|
"Item": "Primer::Alpha::AutoComplete::Item"
|
82
121
|
},
|
@@ -420,7 +459,8 @@
|
|
420
459
|
],
|
421
460
|
"ROLE_OPTIONS": [
|
422
461
|
"dialog",
|
423
|
-
"menu"
|
462
|
+
"menu",
|
463
|
+
null
|
424
464
|
],
|
425
465
|
"SIZE_MAPPINGS": {
|
426
466
|
"auto": "Overlay--size-auto",
|