openproject-primer_view_components 0.22.2 → 0.24.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 +53 -0
- data/app/assets/javascripts/app/components/primer/alpha/action_list.d.ts +16 -0
- data/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +3 -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_element.js +4 -6
- data/app/components/primer/alpha/action_list/item.rb +19 -6
- data/app/components/primer/alpha/action_list.css +1 -1
- data/app/components/primer/alpha/action_list.css.json +2 -0
- data/app/components/primer/alpha/action_list.css.map +1 -1
- data/app/components/primer/alpha/action_list.d.ts +16 -0
- data/app/components/primer/alpha/action_list.html.erb +19 -17
- data/app/components/primer/alpha/action_list.js +69 -0
- data/app/components/primer/alpha/action_list.pcss +8 -0
- data/app/components/primer/alpha/action_list.ts +58 -0
- data/app/components/primer/alpha/action_menu/action_menu_element.js +12 -19
- data/app/components/primer/alpha/banner.css +1 -1
- data/app/components/primer/alpha/banner.css.map +1 -1
- data/app/components/primer/alpha/banner.pcss +4 -4
- data/app/components/primer/alpha/banner.rb +17 -3
- data/app/components/primer/alpha/dialog.css +1 -1
- data/app/components/primer/alpha/dialog.css.json +2 -0
- data/app/components/primer/alpha/dialog.css.map +1 -1
- data/app/components/primer/alpha/dialog.pcss +9 -0
- data/app/components/primer/alpha/dropdown.css +1 -1
- data/app/components/primer/alpha/dropdown.css.map +1 -1
- data/app/components/primer/alpha/dropdown.pcss +1 -1
- data/app/components/primer/alpha/modal_dialog.js +8 -10
- data/app/components/primer/alpha/segmented_control.js +2 -3
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +2 -0
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +10 -0
- data/app/components/primer/alpha/toggle_switch.rb +2 -2
- data/app/components/primer/alpha/tool_tip.js +5 -7
- data/app/components/primer/beta/auto_complete/auto_complete.html.erb +9 -9
- data/app/components/primer/beta/breadcrumbs.css +1 -1
- data/app/components/primer/beta/breadcrumbs.css.map +1 -1
- data/app/components/primer/beta/breadcrumbs.pcss +3 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +1 -1
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +5 -5
- data/app/components/primer/beta/button_group.rb +53 -1
- data/app/components/primer/beta/flash.css +1 -1
- data/app/components/primer/beta/flash.css.map +1 -1
- data/app/components/primer/beta/flash.pcss +4 -4
- data/app/components/primer/beta/flash.rb +3 -1
- data/app/components/primer/beta/nav_list.d.ts +3 -0
- data/app/components/primer/beta/nav_list.html.erb +1 -1
- data/app/components/primer/beta/nav_list.js +31 -12
- data/app/components/primer/beta/nav_list.ts +18 -1
- data/app/components/primer/beta/nav_list_group_element.js +6 -4
- data/app/components/primer/beta/nav_list_group_element.ts +3 -0
- data/app/components/primer/beta/popover.css +1 -1
- data/app/components/primer/beta/popover.css.map +1 -1
- data/app/components/primer/beta/popover.pcss +3 -0
- data/app/components/primer/beta/popover.rb +0 -1
- data/app/components/primer/dialog_helper.js +5 -7
- data/app/components/primer/focus_group.js +9 -12
- data/app/components/primer/open_project/page_header.css +1 -1
- data/app/components/primer/open_project/page_header.css.json +2 -4
- data/app/components/primer/open_project/page_header.css.map +1 -1
- data/app/components/primer/open_project/page_header.html.erb +15 -3
- data/app/components/primer/open_project/page_header.pcss +4 -17
- data/app/components/primer/open_project/page_header.rb +17 -28
- 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/auto_complete_form.rb +18 -0
- data/app/forms/select_form.rb +10 -0
- data/lib/primer/deprecations.yml +5 -0
- data/lib/primer/forms/auto_complete.html.erb +6 -0
- data/lib/primer/forms/auto_complete.rb +56 -0
- data/lib/primer/forms/builder.rb +19 -0
- data/lib/primer/forms/check_box_group.html.erb +4 -4
- data/lib/primer/forms/check_box_group.rb +0 -3
- data/lib/primer/forms/dsl/auto_complete_input.rb +33 -0
- data/lib/primer/forms/dsl/check_box_group_input.rb +8 -0
- data/lib/primer/forms/dsl/input.rb +8 -2
- data/lib/primer/forms/dsl/input_methods.rb +9 -0
- data/lib/primer/forms/dsl/radio_button_group_input.rb +8 -0
- data/lib/primer/forms/dsl/select_input.rb +5 -1
- data/lib/primer/forms/form_control.rb +1 -2
- data/lib/primer/forms/primer_multi_input.js +2 -3
- data/lib/primer/forms/primer_text_field.js +4 -6
- data/lib/primer/forms/primer_text_field.ts +2 -2
- data/lib/primer/forms/radio_button_group.html.erb +4 -4
- data/lib/primer/forms/radio_button_group.rb +0 -3
- data/lib/primer/forms/select.html.erb +1 -0
- data/lib/primer/forms/select.rb +9 -5
- data/lib/primer/view_components/version.rb +2 -2
- data/previews/primer/alpha/action_list_preview.rb +42 -0
- data/previews/primer/alpha/select_preview.rb +12 -1
- data/previews/primer/alpha/text_area_preview.rb +7 -1
- data/previews/primer/alpha/text_field_preview.rb +7 -1
- data/previews/primer/beta/button_group_preview/with_menu_button.html.erb +7 -0
- data/previews/primer/beta/button_group_preview.rb +6 -0
- data/previews/primer/beta/nav_list_preview.rb +43 -0
- data/previews/primer/forms_preview/auto_complete_form.html.erb +3 -0
- data/previews/primer/forms_preview/select_form.html.erb +1 -1
- data/previews/primer/forms_preview.rb +2 -0
- data/previews/primer/open_project/page_header_preview/actions.html.erb +9 -7
- data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +8 -6
- data/previews/primer/open_project/page_header_preview/playground.html.erb +4 -4
- data/previews/primer/open_project/page_header_preview.rb +11 -15
- data/static/arguments.json +30 -8
- data/static/audited_at.json +1 -0
- data/static/classes.json +2 -5
- data/static/constants.json +25 -13
- data/static/info_arch.json +226 -25
- data/static/previews.json +161 -5
- data/static/statuses.json +2 -1
- metadata +12 -3
- data/previews/primer/beta/button_group_preview/action_menus.html.erb +0 -8
data/static/info_arch.json
CHANGED
@@ -746,6 +746,58 @@
|
|
746
746
|
"color-contrast"
|
747
747
|
]
|
748
748
|
}
|
749
|
+
},
|
750
|
+
{
|
751
|
+
"preview_path": "primer/alpha/action_list/long_label_with_tooltip",
|
752
|
+
"name": "long_label_with_tooltip",
|
753
|
+
"snapshot": "true",
|
754
|
+
"skip_rules": {
|
755
|
+
"wont_fix": [
|
756
|
+
"region"
|
757
|
+
],
|
758
|
+
"will_fix": [
|
759
|
+
"color-contrast"
|
760
|
+
]
|
761
|
+
}
|
762
|
+
},
|
763
|
+
{
|
764
|
+
"preview_path": "primer/alpha/action_list/long_label_wrap",
|
765
|
+
"name": "long_label_wrap",
|
766
|
+
"snapshot": "false",
|
767
|
+
"skip_rules": {
|
768
|
+
"wont_fix": [
|
769
|
+
"region"
|
770
|
+
],
|
771
|
+
"will_fix": [
|
772
|
+
"color-contrast"
|
773
|
+
]
|
774
|
+
}
|
775
|
+
},
|
776
|
+
{
|
777
|
+
"preview_path": "primer/alpha/action_list/long_label_truncate_no_tooltip",
|
778
|
+
"name": "long_label_truncate_no_tooltip",
|
779
|
+
"snapshot": "false",
|
780
|
+
"skip_rules": {
|
781
|
+
"wont_fix": [
|
782
|
+
"region"
|
783
|
+
],
|
784
|
+
"will_fix": [
|
785
|
+
"color-contrast"
|
786
|
+
]
|
787
|
+
}
|
788
|
+
},
|
789
|
+
{
|
790
|
+
"preview_path": "primer/alpha/action_list/long_label_show_tooltip_with_truncate_label",
|
791
|
+
"name": "long_label_show_tooltip_with_truncate_label",
|
792
|
+
"snapshot": "false",
|
793
|
+
"skip_rules": {
|
794
|
+
"wont_fix": [
|
795
|
+
"region"
|
796
|
+
],
|
797
|
+
"will_fix": [
|
798
|
+
"color-contrast"
|
799
|
+
]
|
800
|
+
}
|
749
801
|
}
|
750
802
|
],
|
751
803
|
"subcomponents": [
|
@@ -813,9 +865,9 @@
|
|
813
865
|
},
|
814
866
|
{
|
815
867
|
"name": "truncate_label",
|
816
|
-
"type": "Boolean",
|
817
|
-
"default": "`
|
818
|
-
"description": "
|
868
|
+
"type": "Boolean | Symbol",
|
869
|
+
"default": "`:none`",
|
870
|
+
"description": "How the label should be truncated when the text does not fit inside the bounds of the list item. One of `false`, `:none`, `:show_tooltip`, `:truncate`, or `true`. Pass `false` or `:none` to wrap label text. Pass `true` or `:truncate` to truncate labels with ellipses. Pass `:show_tooltip` to show the entire label contents in a tooltip when the item is hovered."
|
819
871
|
},
|
820
872
|
{
|
821
873
|
"name": "href",
|
@@ -2232,7 +2284,7 @@
|
|
2232
2284
|
{
|
2233
2285
|
"fully_qualified_name": "Primer::Alpha::Banner",
|
2234
2286
|
"description": "Use `Banner` to highlight important information.",
|
2235
|
-
"accessibility_docs": "
|
2287
|
+
"accessibility_docs": "Given that Banner is made visually prominent to sighted users through the use of icons and color, consider providing a heading and designating the Banner as a region landmark to improve navigability and discoverability of the Banner of assistive technology users. At this time, the PVC Banner does not render a heading nor render as a region landmark by default. This may be introduced in the future [as a breaking API change](https://github.com/primer/view_components/issues/2619). For now, consider providing an appropriate heading inside of the Banner and rendering the Banner as a `<section>` tag with `aria-labelledby=\"switch-this-with-banner-heading-id\"` to implicitly designate the Banner as a region landmark.\n\nA Banner can be used in one of two ways – to highlight information on a page, or to communicate an urgent message/feedback for a user action. For the latter scenario, it may be necessary to use a live region or focus management technique to ensure that the Banner is discoverable and accessible for all users. Otherwise, the Banner can easily be missed, including by those using magnification software or screen reader users who may not realize that a Banner has appeared. The appropriate technique to use is highly context-dependent. Visit the [Banner's Accessibility section](https://primer.style/components/banner#accessibility) or defer to the accessibility team to determine if your scenario requires either techniques.\n\n### Announcing a Banner\n When a Banner is used to communicate non-critical feedback, or is used in critical scenarios where moving focus is considered too disruptive, use a live region announcement to announce the content of the Banner to screen reader users.\n\n Live regions can be finicky and don't work well when injected dynamically. Setting a live region attribute on the Banner itself is discouraged as it will not announce as expected for most screen readers.\n\n To ensure a Banner is announced reliably, make sure that there's a live region container that is already on the page. When the Banner is shown, populate the live region container with the content of the Banner. This can be done in one of two ways. The first is to rely on a global live region container that is guaranteed to be on the page. When the Banner appears, populate this global live region container with the Banner content. The second technique is to hide or show the Banner within a live region wrapper that is guaranteed to always be on the page.\n\n For more information about either technique, visit [Staff only: Challenges with live regions](https://github.com/github/accessibility/blob/main/docs/coaching-recommendations/toast-flash-banner/accessible-banner-prototype.md#challenges-with-dynamically-inserted-live-region). This guidance is subject to change.\n\n### Focusing a Banner\n Focusing a Banner when it appears helps to maximize discoverability of the message, especially in critical scenarios.\n\n To properly focus a banner, add a `tabindex=\"-1\"` to the Banner container, and focus that container (one way is using the [`focus()` API](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus)).\n\n For more information about the focus management technique, visit the [Staff only: Accessible Banner Prototype docs](https://github.com/github/accessibility/blob/main/docs/coaching-recommendations/toast-flash-banner/accessible-banner-prototype.md#consideration). This guidance is subject to change.",
|
2236
2288
|
"is_form_component": false,
|
2237
2289
|
"is_published": true,
|
2238
2290
|
"requires_js": true,
|
@@ -7127,6 +7179,19 @@
|
|
7127
7179
|
]
|
7128
7180
|
}
|
7129
7181
|
},
|
7182
|
+
{
|
7183
|
+
"preview_path": "primer/alpha/select/not_full_width",
|
7184
|
+
"name": "not_full_width",
|
7185
|
+
"snapshot": "true",
|
7186
|
+
"skip_rules": {
|
7187
|
+
"wont_fix": [
|
7188
|
+
"region"
|
7189
|
+
],
|
7190
|
+
"will_fix": [
|
7191
|
+
"color-contrast"
|
7192
|
+
]
|
7193
|
+
}
|
7194
|
+
},
|
7130
7195
|
{
|
7131
7196
|
"preview_path": "primer/alpha/select/disabled",
|
7132
7197
|
"name": "disabled",
|
@@ -7562,7 +7627,7 @@
|
|
7562
7627
|
"name": "full_width",
|
7563
7628
|
"type": "Boolean",
|
7564
7629
|
"default": "N/A",
|
7565
|
-
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container."
|
7630
|
+
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
7566
7631
|
},
|
7567
7632
|
{
|
7568
7633
|
"name": "name",
|
@@ -7745,6 +7810,19 @@
|
|
7745
7810
|
]
|
7746
7811
|
}
|
7747
7812
|
},
|
7813
|
+
{
|
7814
|
+
"preview_path": "primer/alpha/text_area/not_full_width",
|
7815
|
+
"name": "not_full_width",
|
7816
|
+
"snapshot": "true",
|
7817
|
+
"skip_rules": {
|
7818
|
+
"wont_fix": [
|
7819
|
+
"region"
|
7820
|
+
],
|
7821
|
+
"will_fix": [
|
7822
|
+
"color-contrast"
|
7823
|
+
]
|
7824
|
+
}
|
7825
|
+
},
|
7748
7826
|
{
|
7749
7827
|
"preview_path": "primer/alpha/text_area/disabled",
|
7750
7828
|
"name": "disabled",
|
@@ -7813,7 +7891,7 @@
|
|
7813
7891
|
"name": "full_width",
|
7814
7892
|
"type": "Boolean",
|
7815
7893
|
"default": "N/A",
|
7816
|
-
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container."
|
7894
|
+
"description": "When set to `true`, the field will take up all the horizontal space allowed by its container. Defaults to `true`."
|
7817
7895
|
},
|
7818
7896
|
{
|
7819
7897
|
"name": "name",
|
@@ -8090,6 +8168,19 @@
|
|
8090
8168
|
]
|
8091
8169
|
}
|
8092
8170
|
},
|
8171
|
+
{
|
8172
|
+
"preview_path": "primer/alpha/text_field/not_full_width",
|
8173
|
+
"name": "not_full_width",
|
8174
|
+
"snapshot": "true",
|
8175
|
+
"skip_rules": {
|
8176
|
+
"wont_fix": [
|
8177
|
+
"region"
|
8178
|
+
],
|
8179
|
+
"will_fix": [
|
8180
|
+
"color-contrast"
|
8181
|
+
]
|
8182
|
+
}
|
8183
|
+
},
|
8093
8184
|
{
|
8094
8185
|
"preview_path": "primer/alpha/text_field/disabled",
|
8095
8186
|
"name": "disabled",
|
@@ -8319,13 +8410,13 @@
|
|
8319
8410
|
"name": "size",
|
8320
8411
|
"type": "Symbol",
|
8321
8412
|
"default": "`:medium`",
|
8322
|
-
"description": "What size toggle switch to render. One of `:
|
8413
|
+
"description": "What size toggle switch to render. One of `:medium` or `:small`."
|
8323
8414
|
},
|
8324
8415
|
{
|
8325
8416
|
"name": "status_label_position",
|
8326
8417
|
"type": "Symbol",
|
8327
8418
|
"default": "`:start`",
|
8328
|
-
"description": "Which side of the toggle switch to render the status label. One of `:
|
8419
|
+
"description": "Which side of the toggle switch to render the status label. One of `:end` or `:start`."
|
8329
8420
|
},
|
8330
8421
|
{
|
8331
8422
|
"name": "system_arguments",
|
@@ -11038,7 +11129,7 @@
|
|
11038
11129
|
"slots": [
|
11039
11130
|
{
|
11040
11131
|
"name": "buttons",
|
11041
|
-
"description": "List of buttons to be rendered. Add buttons via the `#with_button
|
11132
|
+
"description": "List of buttons to be rendered. Add buttons via the `#with_button`, `#with_menu_button`, and `#with_clipboard_copy_button` methods (see below).",
|
11042
11133
|
"parameters": [
|
11043
11134
|
|
11044
11135
|
]
|
@@ -11063,6 +11154,18 @@
|
|
11063
11154
|
}
|
11064
11155
|
]
|
11065
11156
|
},
|
11157
|
+
{
|
11158
|
+
"name": "with_menu_button",
|
11159
|
+
"description": "Adds a button that activates a menu when clicked.",
|
11160
|
+
"parameters": [
|
11161
|
+
{
|
11162
|
+
"name": "system_arguments",
|
11163
|
+
"type": "Hash",
|
11164
|
+
"default": "N/A",
|
11165
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Beta::ButtonGroup::MenuButton{{/link_to_component}}."
|
11166
|
+
}
|
11167
|
+
]
|
11168
|
+
},
|
11066
11169
|
{
|
11067
11170
|
"name": "with_clipboard_copy_button",
|
11068
11171
|
"description": "Adds a {{#link_to_component}}Primer::Beta::ClipboardCopyButton{{/link_to_component}}.",
|
@@ -11116,6 +11219,19 @@
|
|
11116
11219
|
]
|
11117
11220
|
}
|
11118
11221
|
},
|
11222
|
+
{
|
11223
|
+
"preview_path": "primer/beta/button_group/with_menu_button",
|
11224
|
+
"name": "with_menu_button",
|
11225
|
+
"snapshot": "true",
|
11226
|
+
"skip_rules": {
|
11227
|
+
"wont_fix": [
|
11228
|
+
"region"
|
11229
|
+
],
|
11230
|
+
"will_fix": [
|
11231
|
+
"color-contrast"
|
11232
|
+
]
|
11233
|
+
}
|
11234
|
+
},
|
11119
11235
|
{
|
11120
11236
|
"preview_path": "primer/beta/button_group/icon_buttons",
|
11121
11237
|
"name": "icon_buttons",
|
@@ -11157,7 +11273,46 @@
|
|
11157
11273
|
}
|
11158
11274
|
],
|
11159
11275
|
"subcomponents": [
|
11276
|
+
{
|
11277
|
+
"fully_qualified_name": "Primer::Beta::ButtonGroup::MenuButton",
|
11278
|
+
"description": "Renders a button in a {{#link_to_component}}Primer::Beta::ButtonGroup{{/link_to_component}} that displays an {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}} when clicked.\nThis component should not be used outside of a `ButtonGroup` context.\n\nThis component yields both the button and the list to the block when rendered.\n\n```erb\n<%= render(Primer::Beta::ButtonGroup.new) do |group| %>\n <% group.with_menu_button do |menu, button| %>\n <% menu.with_item(label: \"Item 1\") %>\n <% button.with_trailing_visual_icon(icon: \"triangle-down\") %>\n <% end %>\n<% end %>\n```",
|
11279
|
+
"accessibility_docs": null,
|
11280
|
+
"is_form_component": false,
|
11281
|
+
"is_published": true,
|
11282
|
+
"requires_js": false,
|
11283
|
+
"component": "ButtonGroup::MenuButton",
|
11284
|
+
"status": "alpha",
|
11285
|
+
"a11y_reviewed": false,
|
11286
|
+
"short_name": "ButtonGroupMenuButton",
|
11287
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/button_group/menu_button.rb",
|
11288
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/button_group/menu_button/default/",
|
11289
|
+
"parameters": [
|
11290
|
+
{
|
11291
|
+
"name": "menu_arguments",
|
11292
|
+
"type": "Hash",
|
11293
|
+
"default": "`{}`",
|
11294
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}}."
|
11295
|
+
},
|
11296
|
+
{
|
11297
|
+
"name": "button_arguments",
|
11298
|
+
"type": "Hash",
|
11299
|
+
"default": "`{}`",
|
11300
|
+
"description": "The arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}} or {{#link_to_component}}Primer::Beta::IconButton{{/link_to_component}}, depending on the value of the `icon:` argument."
|
11301
|
+
}
|
11302
|
+
],
|
11303
|
+
"slots": [
|
11304
|
+
|
11305
|
+
],
|
11306
|
+
"methods": [
|
11307
|
+
|
11308
|
+
],
|
11309
|
+
"previews": [
|
11160
11310
|
|
11311
|
+
],
|
11312
|
+
"subcomponents": [
|
11313
|
+
|
11314
|
+
]
|
11315
|
+
}
|
11161
11316
|
]
|
11162
11317
|
},
|
11163
11318
|
{
|
@@ -11890,13 +12045,13 @@
|
|
11890
12045
|
},
|
11891
12046
|
{
|
11892
12047
|
"fully_qualified_name": "Primer::Beta::Flash",
|
11893
|
-
"description": "Use `Flash` to inform users of successful or pending actions.",
|
12048
|
+
"description": "This component has been deprecated. Use [Banner]({{#link_to_component}}Primer::Alpha::Banner{{/link_to_component}}) instead.\n\nUse `Flash` to inform users of successful or pending actions.",
|
11894
12049
|
"accessibility_docs": null,
|
11895
12050
|
"is_form_component": false,
|
11896
12051
|
"is_published": true,
|
11897
12052
|
"requires_js": false,
|
11898
12053
|
"component": "Flash",
|
11899
|
-
"status": "
|
12054
|
+
"status": "deprecated",
|
11900
12055
|
"a11y_reviewed": false,
|
11901
12056
|
"short_name": "Flash",
|
11902
12057
|
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/flash.rb",
|
@@ -13051,6 +13206,58 @@
|
|
13051
13206
|
"color-contrast"
|
13052
13207
|
]
|
13053
13208
|
}
|
13209
|
+
},
|
13210
|
+
{
|
13211
|
+
"preview_path": "primer/beta/nav_list/long_label_with_tooltip",
|
13212
|
+
"name": "long_label_with_tooltip",
|
13213
|
+
"snapshot": "true",
|
13214
|
+
"skip_rules": {
|
13215
|
+
"wont_fix": [
|
13216
|
+
"region"
|
13217
|
+
],
|
13218
|
+
"will_fix": [
|
13219
|
+
"color-contrast"
|
13220
|
+
]
|
13221
|
+
}
|
13222
|
+
},
|
13223
|
+
{
|
13224
|
+
"preview_path": "primer/beta/nav_list/long_label_wrap",
|
13225
|
+
"name": "long_label_wrap",
|
13226
|
+
"snapshot": "false",
|
13227
|
+
"skip_rules": {
|
13228
|
+
"wont_fix": [
|
13229
|
+
"region"
|
13230
|
+
],
|
13231
|
+
"will_fix": [
|
13232
|
+
"color-contrast"
|
13233
|
+
]
|
13234
|
+
}
|
13235
|
+
},
|
13236
|
+
{
|
13237
|
+
"preview_path": "primer/beta/nav_list/long_label_truncate_no_tooltip",
|
13238
|
+
"name": "long_label_truncate_no_tooltip",
|
13239
|
+
"snapshot": "false",
|
13240
|
+
"skip_rules": {
|
13241
|
+
"wont_fix": [
|
13242
|
+
"region"
|
13243
|
+
],
|
13244
|
+
"will_fix": [
|
13245
|
+
"color-contrast"
|
13246
|
+
]
|
13247
|
+
}
|
13248
|
+
},
|
13249
|
+
{
|
13250
|
+
"preview_path": "primer/beta/nav_list/long_label_show_tooltip_no_truncate_label",
|
13251
|
+
"name": "long_label_show_tooltip_no_truncate_label",
|
13252
|
+
"snapshot": "false",
|
13253
|
+
"skip_rules": {
|
13254
|
+
"wont_fix": [
|
13255
|
+
"region"
|
13256
|
+
],
|
13257
|
+
"will_fix": [
|
13258
|
+
"color-contrast"
|
13259
|
+
]
|
13260
|
+
}
|
13054
13261
|
}
|
13055
13262
|
],
|
13056
13263
|
"subcomponents": [
|
@@ -16114,20 +16321,14 @@
|
|
16114
16321
|
]
|
16115
16322
|
},
|
16116
16323
|
{
|
16117
|
-
"name": "
|
16118
|
-
"description": "Optional
|
16324
|
+
"name": "leading_action",
|
16325
|
+
"description": "Optional leading action prepend the title\nBy default shown on wider screens. Can be overridden with system_argument: display",
|
16119
16326
|
"parameters": [
|
16120
|
-
{
|
16121
|
-
"name": "size",
|
16122
|
-
"type": "Symbol",
|
16123
|
-
"default": "N/A",
|
16124
|
-
"description": "One of `:large`, `:medium`, or `:small`."
|
16125
|
-
},
|
16126
16327
|
{
|
16127
16328
|
"name": "icon",
|
16128
|
-
"type": "
|
16329
|
+
"type": "Symbol",
|
16129
16330
|
"default": "N/A",
|
16130
|
-
"description": "
|
16331
|
+
"description": "The name of an {{link_to_octicons}} icon to use."
|
16131
16332
|
},
|
16132
16333
|
{
|
16133
16334
|
"name": "system_arguments",
|
@@ -16212,8 +16413,8 @@
|
|
16212
16413
|
}
|
16213
16414
|
},
|
16214
16415
|
{
|
16215
|
-
"preview_path": "primer/open_project/page_header/
|
16216
|
-
"name": "
|
16416
|
+
"preview_path": "primer/open_project/page_header/large_title",
|
16417
|
+
"name": "large_title",
|
16217
16418
|
"snapshot": "false",
|
16218
16419
|
"skip_rules": {
|
16219
16420
|
"wont_fix": [
|
@@ -16238,8 +16439,8 @@
|
|
16238
16439
|
}
|
16239
16440
|
},
|
16240
16441
|
{
|
16241
|
-
"preview_path": "primer/open_project/page_header/
|
16242
|
-
"name": "
|
16442
|
+
"preview_path": "primer/open_project/page_header/leading_action",
|
16443
|
+
"name": "leading_action",
|
16243
16444
|
"snapshot": "false",
|
16244
16445
|
"skip_rules": {
|
16245
16446
|
"wont_fix": [
|
data/static/previews.json
CHANGED
@@ -376,6 +376,58 @@
|
|
376
376
|
"color-contrast"
|
377
377
|
]
|
378
378
|
}
|
379
|
+
},
|
380
|
+
{
|
381
|
+
"preview_path": "primer/alpha/action_list/long_label_with_tooltip",
|
382
|
+
"name": "long_label_with_tooltip",
|
383
|
+
"snapshot": "true",
|
384
|
+
"skip_rules": {
|
385
|
+
"wont_fix": [
|
386
|
+
"region"
|
387
|
+
],
|
388
|
+
"will_fix": [
|
389
|
+
"color-contrast"
|
390
|
+
]
|
391
|
+
}
|
392
|
+
},
|
393
|
+
{
|
394
|
+
"preview_path": "primer/alpha/action_list/long_label_wrap",
|
395
|
+
"name": "long_label_wrap",
|
396
|
+
"snapshot": "false",
|
397
|
+
"skip_rules": {
|
398
|
+
"wont_fix": [
|
399
|
+
"region"
|
400
|
+
],
|
401
|
+
"will_fix": [
|
402
|
+
"color-contrast"
|
403
|
+
]
|
404
|
+
}
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"preview_path": "primer/alpha/action_list/long_label_truncate_no_tooltip",
|
408
|
+
"name": "long_label_truncate_no_tooltip",
|
409
|
+
"snapshot": "false",
|
410
|
+
"skip_rules": {
|
411
|
+
"wont_fix": [
|
412
|
+
"region"
|
413
|
+
],
|
414
|
+
"will_fix": [
|
415
|
+
"color-contrast"
|
416
|
+
]
|
417
|
+
}
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"preview_path": "primer/alpha/action_list/long_label_show_tooltip_with_truncate_label",
|
421
|
+
"name": "long_label_show_tooltip_with_truncate_label",
|
422
|
+
"snapshot": "false",
|
423
|
+
"skip_rules": {
|
424
|
+
"wont_fix": [
|
425
|
+
"region"
|
426
|
+
],
|
427
|
+
"will_fix": [
|
428
|
+
"color-contrast"
|
429
|
+
]
|
430
|
+
}
|
379
431
|
}
|
380
432
|
]
|
381
433
|
},
|
@@ -2283,6 +2335,19 @@
|
|
2283
2335
|
]
|
2284
2336
|
}
|
2285
2337
|
},
|
2338
|
+
{
|
2339
|
+
"preview_path": "primer/beta/button_group/with_menu_button",
|
2340
|
+
"name": "with_menu_button",
|
2341
|
+
"snapshot": "true",
|
2342
|
+
"skip_rules": {
|
2343
|
+
"wont_fix": [
|
2344
|
+
"region"
|
2345
|
+
],
|
2346
|
+
"will_fix": [
|
2347
|
+
"color-contrast"
|
2348
|
+
]
|
2349
|
+
}
|
2350
|
+
},
|
2286
2351
|
{
|
2287
2352
|
"preview_path": "primer/beta/button_group/icon_buttons",
|
2288
2353
|
"name": "icon_buttons",
|
@@ -3442,7 +3507,7 @@
|
|
3442
3507
|
{
|
3443
3508
|
"name": "flash",
|
3444
3509
|
"component": "Flash",
|
3445
|
-
"status": "
|
3510
|
+
"status": "deprecated",
|
3446
3511
|
"lookup_path": "primer/beta/flash",
|
3447
3512
|
"examples": [
|
3448
3513
|
{
|
@@ -4812,6 +4877,58 @@
|
|
4812
4877
|
"color-contrast"
|
4813
4878
|
]
|
4814
4879
|
}
|
4880
|
+
},
|
4881
|
+
{
|
4882
|
+
"preview_path": "primer/beta/nav_list/long_label_with_tooltip",
|
4883
|
+
"name": "long_label_with_tooltip",
|
4884
|
+
"snapshot": "true",
|
4885
|
+
"skip_rules": {
|
4886
|
+
"wont_fix": [
|
4887
|
+
"region"
|
4888
|
+
],
|
4889
|
+
"will_fix": [
|
4890
|
+
"color-contrast"
|
4891
|
+
]
|
4892
|
+
}
|
4893
|
+
},
|
4894
|
+
{
|
4895
|
+
"preview_path": "primer/beta/nav_list/long_label_wrap",
|
4896
|
+
"name": "long_label_wrap",
|
4897
|
+
"snapshot": "false",
|
4898
|
+
"skip_rules": {
|
4899
|
+
"wont_fix": [
|
4900
|
+
"region"
|
4901
|
+
],
|
4902
|
+
"will_fix": [
|
4903
|
+
"color-contrast"
|
4904
|
+
]
|
4905
|
+
}
|
4906
|
+
},
|
4907
|
+
{
|
4908
|
+
"preview_path": "primer/beta/nav_list/long_label_truncate_no_tooltip",
|
4909
|
+
"name": "long_label_truncate_no_tooltip",
|
4910
|
+
"snapshot": "false",
|
4911
|
+
"skip_rules": {
|
4912
|
+
"wont_fix": [
|
4913
|
+
"region"
|
4914
|
+
],
|
4915
|
+
"will_fix": [
|
4916
|
+
"color-contrast"
|
4917
|
+
]
|
4918
|
+
}
|
4919
|
+
},
|
4920
|
+
{
|
4921
|
+
"preview_path": "primer/beta/nav_list/long_label_show_tooltip_no_truncate_label",
|
4922
|
+
"name": "long_label_show_tooltip_no_truncate_label",
|
4923
|
+
"snapshot": "false",
|
4924
|
+
"skip_rules": {
|
4925
|
+
"wont_fix": [
|
4926
|
+
"region"
|
4927
|
+
],
|
4928
|
+
"will_fix": [
|
4929
|
+
"color-contrast"
|
4930
|
+
]
|
4931
|
+
}
|
4815
4932
|
}
|
4816
4933
|
]
|
4817
4934
|
},
|
@@ -5015,8 +5132,8 @@
|
|
5015
5132
|
}
|
5016
5133
|
},
|
5017
5134
|
{
|
5018
|
-
"preview_path": "primer/open_project/page_header/
|
5019
|
-
"name": "
|
5135
|
+
"preview_path": "primer/open_project/page_header/large_title",
|
5136
|
+
"name": "large_title",
|
5020
5137
|
"snapshot": "false",
|
5021
5138
|
"skip_rules": {
|
5022
5139
|
"wont_fix": [
|
@@ -5041,8 +5158,8 @@
|
|
5041
5158
|
}
|
5042
5159
|
},
|
5043
5160
|
{
|
5044
|
-
"preview_path": "primer/open_project/page_header/
|
5045
|
-
"name": "
|
5161
|
+
"preview_path": "primer/open_project/page_header/leading_action",
|
5162
|
+
"name": "leading_action",
|
5046
5163
|
"snapshot": "false",
|
5047
5164
|
"skip_rules": {
|
5048
5165
|
"wont_fix": [
|
@@ -5798,6 +5915,19 @@
|
|
5798
5915
|
]
|
5799
5916
|
}
|
5800
5917
|
},
|
5918
|
+
{
|
5919
|
+
"preview_path": "primer/alpha/select/not_full_width",
|
5920
|
+
"name": "not_full_width",
|
5921
|
+
"snapshot": "true",
|
5922
|
+
"skip_rules": {
|
5923
|
+
"wont_fix": [
|
5924
|
+
"region"
|
5925
|
+
],
|
5926
|
+
"will_fix": [
|
5927
|
+
"color-contrast"
|
5928
|
+
]
|
5929
|
+
}
|
5930
|
+
},
|
5801
5931
|
{
|
5802
5932
|
"preview_path": "primer/alpha/select/disabled",
|
5803
5933
|
"name": "disabled",
|
@@ -6322,6 +6452,19 @@
|
|
6322
6452
|
]
|
6323
6453
|
}
|
6324
6454
|
},
|
6455
|
+
{
|
6456
|
+
"preview_path": "primer/alpha/text_area/not_full_width",
|
6457
|
+
"name": "not_full_width",
|
6458
|
+
"snapshot": "true",
|
6459
|
+
"skip_rules": {
|
6460
|
+
"wont_fix": [
|
6461
|
+
"region"
|
6462
|
+
],
|
6463
|
+
"will_fix": [
|
6464
|
+
"color-contrast"
|
6465
|
+
]
|
6466
|
+
}
|
6467
|
+
},
|
6325
6468
|
{
|
6326
6469
|
"preview_path": "primer/alpha/text_area/disabled",
|
6327
6470
|
"name": "disabled",
|
@@ -6486,6 +6629,19 @@
|
|
6486
6629
|
]
|
6487
6630
|
}
|
6488
6631
|
},
|
6632
|
+
{
|
6633
|
+
"preview_path": "primer/alpha/text_field/not_full_width",
|
6634
|
+
"name": "not_full_width",
|
6635
|
+
"snapshot": "true",
|
6636
|
+
"skip_rules": {
|
6637
|
+
"wont_fix": [
|
6638
|
+
"region"
|
6639
|
+
],
|
6640
|
+
"will_fix": [
|
6641
|
+
"color-contrast"
|
6642
|
+
]
|
6643
|
+
}
|
6644
|
+
},
|
6489
6645
|
{
|
6490
6646
|
"preview_path": "primer/alpha/text_field/disabled",
|
6491
6647
|
"name": "disabled",
|
data/static/statuses.json
CHANGED
@@ -75,13 +75,14 @@
|
|
75
75
|
"Primer::Beta::Breadcrumbs::Item": "alpha",
|
76
76
|
"Primer::Beta::Button": "beta",
|
77
77
|
"Primer::Beta::ButtonGroup": "beta",
|
78
|
+
"Primer::Beta::ButtonGroup::MenuButton": "alpha",
|
78
79
|
"Primer::Beta::ClipboardCopy": "beta",
|
79
80
|
"Primer::Beta::ClipboardCopyBaseButton": "beta",
|
80
81
|
"Primer::Beta::ClipboardCopyButton": "beta",
|
81
82
|
"Primer::Beta::CloseButton": "beta",
|
82
83
|
"Primer::Beta::Counter": "beta",
|
83
84
|
"Primer::Beta::Details": "beta",
|
84
|
-
"Primer::Beta::Flash": "
|
85
|
+
"Primer::Beta::Flash": "deprecated",
|
85
86
|
"Primer::Beta::Heading": "beta",
|
86
87
|
"Primer::Beta::IconButton": "beta",
|
87
88
|
"Primer::Beta::Label": "beta",
|