primer_view_components 0.13.2 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +20 -0
- data/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +0 -11
- data/app/assets/javascripts/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
- data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -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_bar.css +1 -1
- data/app/components/primer/alpha/action_bar.css.json +1 -4
- data/app/components/primer/alpha/action_bar.css.map +1 -1
- data/app/components/primer/alpha/action_bar.pcss +1 -17
- data/app/components/primer/alpha/action_bar_element.js +21 -9
- data/app/components/primer/alpha/action_list/item.rb +13 -3
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +1 -0
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.pcss +3 -1
- data/app/components/primer/alpha/action_list.rb +5 -5
- data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +20 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +126 -28
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +110 -12
- data/app/components/primer/alpha/action_menu/group.rb +23 -0
- data/app/components/primer/alpha/action_menu/heading.rb +17 -0
- data/app/components/primer/alpha/action_menu/list.html.erb +1 -0
- data/app/components/primer/alpha/action_menu/list.rb +62 -60
- data/app/components/primer/alpha/action_menu/list_wrapper.rb +40 -0
- data/app/components/primer/alpha/action_menu.html.erb +20 -18
- data/app/components/primer/alpha/action_menu.rb +38 -1
- data/app/components/primer/alpha/auto_complete.css +1 -1
- data/app/components/primer/alpha/auto_complete.css.map +1 -1
- data/app/components/primer/alpha/button_marketing.css +1 -1
- data/app/components/primer/alpha/button_marketing.css.map +1 -1
- data/app/components/primer/alpha/dialog/header.rb +1 -1
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/layout.css +1 -1
- data/app/components/primer/alpha/layout.css.map +1 -1
- data/app/components/primer/alpha/menu.css +1 -1
- data/app/components/primer/alpha/menu.css.map +1 -1
- data/app/components/primer/alpha/nav_list/divider.rb +1 -0
- data/app/components/primer/alpha/nav_list/group.rb +1 -0
- data/app/components/primer/alpha/nav_list/heading.rb +1 -0
- data/app/components/primer/alpha/nav_list/item.rb +1 -0
- data/app/components/primer/alpha/nav_list.rb +1 -0
- data/app/components/primer/alpha/octicon_symbols.html.erb +1 -1
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.json +2 -2
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +6 -2
- data/app/components/primer/alpha/segmented_control.css +1 -1
- data/app/components/primer/alpha/segmented_control.css.json +0 -1
- data/app/components/primer/alpha/segmented_control.css.map +1 -1
- data/app/components/primer/alpha/segmented_control.js +2 -1
- data/app/components/primer/alpha/segmented_control.pcss +0 -4
- data/app/components/primer/alpha/tab_nav.css +1 -1
- data/app/components/primer/alpha/tab_nav.css.map +1 -1
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +11 -5
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +10 -1
- data/app/components/primer/alpha/toggle_switch.css +1 -1
- data/app/components/primer/alpha/toggle_switch.css.map +1 -1
- data/app/components/primer/alpha/tool_tip.js +8 -4
- data/app/components/primer/alpha/tool_tip.ts +9 -4
- data/app/components/primer/alpha/underline_nav.css +1 -1
- data/app/components/primer/alpha/underline_nav.css.map +1 -1
- data/app/components/primer/alpha/x_banner.js +2 -1
- data/app/components/primer/anchored_position.js +2 -1
- data/app/components/primer/beta/auto_complete/auto_complete.html.erb +1 -7
- data/app/components/primer/beta/auto_complete/item.rb +2 -2
- data/app/components/primer/beta/auto_complete.rb +6 -1
- data/app/components/primer/beta/avatar.rb +1 -1
- data/app/components/primer/beta/base_button.rb +3 -4
- data/app/components/primer/beta/blankslate.css +1 -1
- data/app/components/primer/beta/blankslate.css.json +1 -0
- data/app/components/primer/beta/blankslate.css.map +1 -1
- data/app/components/primer/beta/blankslate.html.erb +16 -14
- data/app/components/primer/beta/blankslate.pcss +52 -2
- data/app/components/primer/beta/border_box.css +1 -1
- data/app/components/primer/beta/border_box.css.map +1 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +9 -9
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.html.erb +18 -20
- data/app/components/primer/beta/button.pcss +15 -16
- data/app/components/primer/beta/button.rb +3 -0
- data/app/components/primer/beta/button_group.css +1 -1
- data/app/components/primer/beta/button_group.css.json +2 -4
- data/app/components/primer/beta/button_group.css.map +1 -1
- data/app/components/primer/beta/button_group.html.erb +3 -1
- data/app/components/primer/beta/button_group.pcss +2 -4
- data/app/components/primer/beta/button_group.rb +41 -12
- data/app/components/primer/beta/clipboard_copy.rb +4 -0
- data/app/components/primer/beta/clipboard_copy_button.rb +25 -0
- data/app/components/primer/beta/counter.rb +1 -1
- data/app/components/primer/beta/flash.html.erb +1 -1
- data/app/components/primer/beta/icon_button.html.erb +4 -6
- data/app/components/primer/beta/icon_button.rb +1 -3
- data/app/components/primer/beta/label.css +1 -1
- data/app/components/primer/beta/label.css.map +1 -1
- data/app/components/primer/beta/link.css +1 -1
- data/app/components/primer/beta/link.css.map +1 -1
- data/app/components/primer/beta/nav_list/group.html.erb +7 -5
- data/app/components/primer/beta/nav_list/group.rb +2 -2
- data/app/components/primer/beta/nav_list.d.ts +0 -11
- data/app/components/primer/beta/nav_list.js +14 -90
- data/app/components/primer/beta/nav_list.ts +1 -85
- data/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
- data/app/components/primer/beta/nav_list_group_element.js +108 -0
- data/app/components/primer/beta/nav_list_group_element.ts +97 -0
- data/app/components/primer/beta/relative_time.rb +4 -4
- data/app/components/primer/beta/subhead.css +1 -1
- data/app/components/primer/beta/subhead.css.json +2 -0
- data/app/components/primer/beta/subhead.css.map +1 -1
- data/app/components/primer/beta/subhead.pcss +8 -1
- data/app/components/primer/beta/subhead.rb +9 -1
- data/app/components/primer/component.rb +3 -0
- data/app/components/primer/focus_group.js +2 -1
- data/app/components/primer/primer.d.ts +1 -0
- data/app/components/primer/primer.js +1 -0
- data/app/components/primer/primer.ts +1 -0
- data/app/forms/action_menu_form.rb +20 -0
- data/app/forms/immediate_validation_form.rb +2 -2
- data/app/lib/primer/experimental_render_helpers.rb +32 -0
- data/app/lib/primer/experimental_slot_helpers.rb +30 -0
- data/app/lib/primer/fetch_or_fallback_helper.rb +0 -1
- data/app/lib/primer/octicon/cache.rb +1 -1
- data/lib/primer/classify.rb +0 -2
- data/lib/primer/forms/action_menu.html.erb +6 -0
- data/lib/primer/forms/action_menu.rb +25 -0
- data/lib/primer/forms/acts_as_component.rb +0 -3
- data/lib/primer/forms/base.rb +0 -1
- data/lib/primer/forms/base_component.rb +0 -2
- data/lib/primer/forms/dsl/action_menu_input.rb +36 -0
- data/lib/primer/forms/dsl/input.rb +8 -1
- data/lib/primer/forms/dsl/input_methods.rb +9 -0
- data/lib/primer/forms/dsl/text_field_input.rb +8 -0
- data/lib/primer/forms/primer_base_component_wrapper.rb +0 -2
- data/lib/primer/forms/primer_text_field.js +40 -5
- data/lib/primer/forms/primer_text_field.ts +39 -7
- data/lib/primer/forms/validation_message.html.erb +2 -1
- data/lib/primer/static/generate_info_arch.rb +1 -2
- data/lib/primer/static/generate_previews.rb +0 -2
- data/lib/primer/view_components/engine.rb +5 -1
- data/lib/primer/view_components/linters/base_linter.rb +3 -2
- data/lib/primer/view_components/linters/deprecated_components_counter.rb +1 -1
- data/lib/primer/view_components/linters/disallow_action_list.rb +1 -0
- data/lib/primer/view_components/linters/severity_schema.rb +1 -0
- data/lib/primer/view_components/version.rb +2 -3
- data/lib/primer/yard/lookbook_pages_backend.rb +2 -4
- data/lib/rubocop/cop/primer/base_cop.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_arguments.rb +0 -2
- data/lib/rubocop/cop/primer/deprecated_components.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_label_schemes.rb +1 -1
- data/lib/rubocop/cop/primer/deprecated_label_variants.rb +1 -1
- data/previews/primer/alpha/action_menu_preview.rb +73 -7
- data/previews/primer/alpha/dialog_preview/with_auto_complete.html.erb +8 -0
- data/previews/primer/alpha/dialog_preview.rb +17 -0
- data/previews/primer/alpha/octicon_symbols_preview/default.html.erb +6 -0
- data/previews/primer/alpha/octicon_symbols_preview/playground.html.erb +13 -0
- data/previews/primer/alpha/octicon_symbols_preview.rb +21 -0
- data/previews/primer/alpha/text_field_preview.rb +5 -0
- data/previews/primer/beta/avatar_preview.rb +6 -0
- data/previews/primer/beta/blankslate_preview/inside_flex_container.html.erb +6 -0
- data/previews/primer/beta/blankslate_preview.rb +3 -0
- data/previews/primer/beta/button_group_preview.rb +11 -0
- data/previews/primer/beta/clipboard_copy_button_preview.rb +29 -0
- data/previews/primer/beta/nav_list_preview.rb +10 -1
- data/previews/primer/beta/subhead_preview.rb +32 -4
- data/previews/primer/forms_preview/action_menu_form.html.erb +3 -0
- data/previews/primer/forms_preview.rb +4 -0
- data/static/arguments.json +167 -14
- data/static/audited_at.json +6 -1
- data/static/classes.json +12 -3
- data/static/constants.json +25 -1
- data/static/info_arch.json +585 -78
- data/static/previews.json +198 -0
- data/static/statuses.json +5 -0
- metadata +24 -2
data/static/audited_at.json
CHANGED
@@ -8,7 +8,10 @@
|
|
8
8
|
"Primer::Alpha::ActionList::Heading": "",
|
9
9
|
"Primer::Alpha::ActionList::Item": "",
|
10
10
|
"Primer::Alpha::ActionMenu": "",
|
11
|
-
"Primer::Alpha::ActionMenu::
|
11
|
+
"Primer::Alpha::ActionMenu::Group": "2023-07-10",
|
12
|
+
"Primer::Alpha::ActionMenu::Heading": "",
|
13
|
+
"Primer::Alpha::ActionMenu::List": "",
|
14
|
+
"Primer::Alpha::ActionMenu::ListWrapper": "2023-07-10",
|
12
15
|
"Primer::Alpha::AutoComplete": "",
|
13
16
|
"Primer::Alpha::AutoComplete::Item": "",
|
14
17
|
"Primer::Alpha::Banner": "",
|
@@ -73,6 +76,8 @@
|
|
73
76
|
"Primer::Beta::Button": "",
|
74
77
|
"Primer::Beta::ButtonGroup": "",
|
75
78
|
"Primer::Beta::ClipboardCopy": "",
|
79
|
+
"Primer::Beta::ClipboardCopyBaseButton": "",
|
80
|
+
"Primer::Beta::ClipboardCopyButton": "",
|
76
81
|
"Primer::Beta::CloseButton": "",
|
77
82
|
"Primer::Beta::Counter": "",
|
78
83
|
"Primer::Beta::Details": "",
|
data/static/classes.json
CHANGED
@@ -179,6 +179,9 @@
|
|
179
179
|
"Button--iconOnly": [
|
180
180
|
"Primer::Beta::Button"
|
181
181
|
],
|
182
|
+
"Button--inactive": [
|
183
|
+
"Primer::Beta::Button"
|
184
|
+
],
|
182
185
|
"Button--invisible": [
|
183
186
|
"Primer::Beta::Button"
|
184
187
|
],
|
@@ -218,9 +221,6 @@
|
|
218
221
|
"Button-visual": [
|
219
222
|
"Primer::Beta::Button"
|
220
223
|
],
|
221
|
-
"Button-withTooltip": [
|
222
|
-
"Primer::Beta::Button"
|
223
|
-
],
|
224
224
|
"ButtonGroup": [
|
225
225
|
"Primer::Beta::ButtonGroup"
|
226
226
|
],
|
@@ -254,6 +254,9 @@
|
|
254
254
|
"FormControl-inlineValidation": [
|
255
255
|
"Primer::Alpha::TextField"
|
256
256
|
],
|
257
|
+
"FormControl-inlineValidation--success": [
|
258
|
+
"Primer::Alpha::TextField"
|
259
|
+
],
|
257
260
|
"FormControl-inlineValidation--visual": [
|
258
261
|
"Primer::Alpha::TextField"
|
259
262
|
],
|
@@ -528,6 +531,12 @@
|
|
528
531
|
"Subhead-heading--danger": [
|
529
532
|
"Primer::Beta::Subhead"
|
530
533
|
],
|
534
|
+
"Subhead-heading--large": [
|
535
|
+
"Primer::Beta::Subhead"
|
536
|
+
],
|
537
|
+
"Subhead-heading--medium": [
|
538
|
+
"Primer::Beta::Subhead"
|
539
|
+
],
|
531
540
|
"TimelineItem": [
|
532
541
|
"Primer::Beta::TimelineItem"
|
533
542
|
],
|
data/static/constants.json
CHANGED
@@ -125,13 +125,20 @@
|
|
125
125
|
"Primer::Alpha::ActionMenu": {
|
126
126
|
"DEFAULT_PRELOAD": false,
|
127
127
|
"DEFAULT_SELECT_VARIANT": "none",
|
128
|
+
"Group": "Primer::Alpha::ActionMenu::Group",
|
129
|
+
"Heading": "Primer::Alpha::ActionMenu::Heading",
|
128
130
|
"List": "Primer::Alpha::ActionMenu::List",
|
131
|
+
"ListWrapper": "Primer::Alpha::ActionMenu::ListWrapper",
|
129
132
|
"SELECT_VARIANT_OPTIONS": [
|
130
133
|
"single",
|
131
134
|
"multiple",
|
132
135
|
"none"
|
133
136
|
]
|
134
137
|
},
|
138
|
+
"Primer::Alpha::ActionMenu::Group": {
|
139
|
+
},
|
140
|
+
"Primer::Alpha::ActionMenu::Heading": {
|
141
|
+
},
|
135
142
|
"Primer::Alpha::ActionMenu::List": {
|
136
143
|
"DEFAULT_ITEM_TAG": "button",
|
137
144
|
"ITEM_TAG_OPTIONS": [
|
@@ -140,6 +147,8 @@
|
|
140
147
|
"button"
|
141
148
|
]
|
142
149
|
},
|
150
|
+
"Primer::Alpha::ActionMenu::ListWrapper": {
|
151
|
+
},
|
143
152
|
"Primer::Alpha::AutoComplete": {
|
144
153
|
"Item": "Primer::Alpha::AutoComplete::Item"
|
145
154
|
},
|
@@ -709,6 +718,7 @@
|
|
709
718
|
32,
|
710
719
|
40,
|
711
720
|
48,
|
721
|
+
64,
|
712
722
|
80
|
713
723
|
],
|
714
724
|
"SMALL_THRESHOLD": 24
|
@@ -736,7 +746,8 @@
|
|
736
746
|
"TAG_OPTIONS": [
|
737
747
|
"button",
|
738
748
|
"a",
|
739
|
-
"summary"
|
749
|
+
"summary",
|
750
|
+
"clipboard-copy"
|
740
751
|
],
|
741
752
|
"TYPE_OPTIONS": [
|
742
753
|
"button",
|
@@ -836,6 +847,10 @@
|
|
836
847
|
},
|
837
848
|
"Primer::Beta::ClipboardCopy": {
|
838
849
|
},
|
850
|
+
"Primer::Beta::ClipboardCopyBaseButton": {
|
851
|
+
},
|
852
|
+
"Primer::Beta::ClipboardCopyButton": {
|
853
|
+
},
|
839
854
|
"Primer::Beta::CloseButton": {
|
840
855
|
"DEFAULT_TYPE": "button",
|
841
856
|
"TYPE_OPTIONS": [
|
@@ -1238,7 +1253,16 @@
|
|
1238
1253
|
]
|
1239
1254
|
},
|
1240
1255
|
"Primer::Beta::Subhead": {
|
1256
|
+
"DEFAULT_HEADING_SIZE": "large",
|
1241
1257
|
"DEFAULT_HEADING_TAG": "div",
|
1258
|
+
"HEADING_SIZE_MAP": {
|
1259
|
+
"large": "Subhead-heading--large",
|
1260
|
+
"medium": "Subhead-heading--medium"
|
1261
|
+
},
|
1262
|
+
"HEADING_SIZE_OPTIONS": [
|
1263
|
+
"large",
|
1264
|
+
"medium"
|
1265
|
+
],
|
1242
1266
|
"HEADING_TAG_OPTIONS": [
|
1243
1267
|
"div",
|
1244
1268
|
"h1",
|