primer_view_components 0.9.0 → 0.10.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 +57 -0
- data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -1
- 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_menu/action_menu_element.js +2 -1
- data/app/components/primer/alpha/action_menu/action_menu_element.ts +2 -1
- data/app/components/primer/alpha/check_box_group.rb +2 -0
- data/app/components/primer/alpha/dialog/header.rb +12 -0
- data/app/components/primer/alpha/dialog.rb +1 -1
- data/app/components/primer/alpha/nav_list/divider.rb +2 -5
- data/app/components/primer/alpha/nav_list/group.rb +2 -98
- data/app/components/primer/alpha/nav_list/heading.rb +2 -27
- data/app/components/primer/alpha/nav_list/item.rb +2 -147
- data/app/components/primer/alpha/nav_list.rb +2 -205
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +1 -7
- data/app/components/primer/alpha/overlay.rb +6 -4
- data/app/components/primer/alpha/radio_button_group.rb +2 -0
- data/app/components/primer/alpha/text_field.css +1 -1
- data/app/components/primer/alpha/text_field.css.json +4 -1
- data/app/components/primer/alpha/text_field.css.map +1 -1
- data/app/components/primer/alpha/text_field.pcss +18 -3
- data/app/components/primer/alpha/tooltip.rb +3 -1
- data/app/components/primer/beta/button.css +1 -1
- data/app/components/primer/beta/button.css.json +2 -0
- data/app/components/primer/beta/button.css.map +1 -1
- data/app/components/primer/beta/button.pcss +11 -3
- data/app/components/primer/beta/icon_button.html.erb +1 -1
- data/app/components/primer/beta/icon_button.rb +8 -1
- data/app/components/primer/beta/link.css +1 -1
- data/app/components/primer/beta/link.css.json +1 -0
- data/app/components/primer/beta/link.css.map +1 -1
- data/app/components/primer/beta/link.pcss +5 -0
- data/app/components/primer/beta/link.rb +2 -2
- data/app/components/primer/beta/nav_list/divider.rb +14 -0
- data/app/components/primer/beta/nav_list/group.rb +107 -0
- data/app/components/primer/beta/nav_list/heading.rb +36 -0
- data/app/components/primer/beta/nav_list/item.rb +156 -0
- data/app/components/primer/beta/nav_list.rb +212 -0
- data/app/components/primer/focus_group.js +2 -1
- data/app/components/primer/focus_group.ts +2 -1
- data/app/components/primer/primer.d.ts +1 -1
- data/app/components/primer/primer.js +1 -1
- data/app/components/primer/primer.ts +1 -1
- data/app/helpers/primer/form_helper.rb +10 -0
- data/lib/primer/deprecations.yml +20 -0
- data/lib/primer/forms/check_box_group.html.erb +3 -0
- data/lib/primer/forms/dsl/check_box_group_input.rb +1 -5
- data/lib/primer/forms/dsl/check_box_input.rb +5 -0
- data/lib/primer/forms/dsl/radio_button_input.rb +5 -0
- data/lib/primer/forms/form_control.html.erb +1 -4
- data/lib/primer/forms/radio_button_group.html.erb +3 -0
- data/lib/primer/forms/utils.rb +2 -0
- data/lib/primer/forms/validation_message.html.erb +4 -0
- data/lib/primer/forms/validation_message.rb +14 -0
- data/lib/primer/forms.rb +16 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/lib/primer/yard/component_manifest.rb +4 -0
- data/previews/primer/alpha/check_box_group_preview.rb +13 -0
- data/previews/primer/alpha/dialog_preview/with_header.html.erb +5 -0
- data/previews/primer/alpha/dialog_preview.rb +17 -0
- data/previews/primer/alpha/overlay_preview.rb +1 -1
- data/previews/primer/alpha/radio_button_group_preview.rb +13 -0
- data/previews/primer/alpha/radio_button_preview.rb +1 -1
- data/previews/primer/alpha/text_field_preview/input_group_leading_action_menu.html.erb +21 -0
- data/previews/primer/alpha/text_field_preview/input_group_leading_button.html.erb +18 -0
- data/previews/primer/alpha/text_field_preview/input_group_trailing_button.html.erb +18 -0
- data/previews/primer/alpha/text_field_preview.rb +21 -0
- data/previews/primer/beta/button_preview.rb +1 -1
- data/previews/primer/{alpha → beta}/nav_list_preview/trailing_action.html.erb +1 -1
- data/previews/primer/{alpha → beta}/nav_list_preview.rb +5 -5
- data/static/arguments.json +182 -6
- data/static/audited_at.json +5 -0
- data/static/classes.json +3 -0
- data/static/constants.json +23 -0
- data/static/info_arch.json +978 -501
- data/static/previews.json +85 -7
- data/static/statuses.json +10 -5
- metadata +23 -11
- /data/app/assets/javascripts/app/components/primer/{alpha → beta}/nav_list.d.ts +0 -0
- /data/app/components/primer/{alpha → beta}/nav_list/group.html.erb +0 -0
- /data/app/components/primer/{alpha → beta}/nav_list/item.html.erb +0 -0
- /data/app/components/primer/{alpha → beta}/nav_list.d.ts +0 -0
- /data/app/components/primer/{alpha → beta}/nav_list.html.erb +0 -0
- /data/app/components/primer/{alpha → beta}/nav_list.js +0 -0
- /data/app/components/primer/{alpha → beta}/nav_list.ts +0 -0
data/static/previews.json
CHANGED
@@ -2403,6 +2403,19 @@
|
|
2403
2403
|
]
|
2404
2404
|
}
|
2405
2405
|
},
|
2406
|
+
{
|
2407
|
+
"preview_path": "primer/alpha/check_box_group/invalid",
|
2408
|
+
"name": "invalid",
|
2409
|
+
"snapshot": "false",
|
2410
|
+
"skip_rules": {
|
2411
|
+
"wont_fix": [
|
2412
|
+
"region"
|
2413
|
+
],
|
2414
|
+
"will_fix": [
|
2415
|
+
"color-contrast"
|
2416
|
+
]
|
2417
|
+
}
|
2418
|
+
},
|
2406
2419
|
{
|
2407
2420
|
"preview_path": "primer/alpha/check_box_group/with_caption",
|
2408
2421
|
"name": "with_caption",
|
@@ -2820,6 +2833,19 @@
|
|
2820
2833
|
]
|
2821
2834
|
}
|
2822
2835
|
},
|
2836
|
+
{
|
2837
|
+
"preview_path": "primer/alpha/dialog/with_header",
|
2838
|
+
"name": "with_header",
|
2839
|
+
"snapshot": "false",
|
2840
|
+
"skip_rules": {
|
2841
|
+
"wont_fix": [
|
2842
|
+
"region"
|
2843
|
+
],
|
2844
|
+
"will_fix": [
|
2845
|
+
"color-contrast"
|
2846
|
+
]
|
2847
|
+
}
|
2848
|
+
},
|
2823
2849
|
{
|
2824
2850
|
"preview_path": "primer/alpha/dialog/with_footer",
|
2825
2851
|
"name": "with_footer",
|
@@ -4242,11 +4268,11 @@
|
|
4242
4268
|
{
|
4243
4269
|
"name": "nav_list",
|
4244
4270
|
"component": "NavList",
|
4245
|
-
"status": "
|
4246
|
-
"lookup_path": "primer/
|
4271
|
+
"status": "beta",
|
4272
|
+
"lookup_path": "primer/beta/nav_list",
|
4247
4273
|
"examples": [
|
4248
4274
|
{
|
4249
|
-
"preview_path": "primer/
|
4275
|
+
"preview_path": "primer/beta/nav_list/playground",
|
4250
4276
|
"name": "playground",
|
4251
4277
|
"snapshot": "false",
|
4252
4278
|
"skip_rules": {
|
@@ -4259,7 +4285,7 @@
|
|
4259
4285
|
}
|
4260
4286
|
},
|
4261
4287
|
{
|
4262
|
-
"preview_path": "primer/
|
4288
|
+
"preview_path": "primer/beta/nav_list/default",
|
4263
4289
|
"name": "default",
|
4264
4290
|
"snapshot": "true",
|
4265
4291
|
"skip_rules": {
|
@@ -4272,7 +4298,7 @@
|
|
4272
4298
|
}
|
4273
4299
|
},
|
4274
4300
|
{
|
4275
|
-
"preview_path": "primer/
|
4301
|
+
"preview_path": "primer/beta/nav_list/top_level_items",
|
4276
4302
|
"name": "top_level_items",
|
4277
4303
|
"snapshot": "false",
|
4278
4304
|
"skip_rules": {
|
@@ -4285,7 +4311,7 @@
|
|
4285
4311
|
}
|
4286
4312
|
},
|
4287
4313
|
{
|
4288
|
-
"preview_path": "primer/
|
4314
|
+
"preview_path": "primer/beta/nav_list/show_more_item",
|
4289
4315
|
"name": "show_more_item",
|
4290
4316
|
"snapshot": "true",
|
4291
4317
|
"skip_rules": {
|
@@ -4298,7 +4324,7 @@
|
|
4298
4324
|
}
|
4299
4325
|
},
|
4300
4326
|
{
|
4301
|
-
"preview_path": "primer/
|
4327
|
+
"preview_path": "primer/beta/nav_list/trailing_action",
|
4302
4328
|
"name": "trailing_action",
|
4303
4329
|
"snapshot": "true",
|
4304
4330
|
"skip_rules": {
|
@@ -4735,6 +4761,19 @@
|
|
4735
4761
|
]
|
4736
4762
|
}
|
4737
4763
|
},
|
4764
|
+
{
|
4765
|
+
"preview_path": "primer/alpha/radio_button_group/invalid",
|
4766
|
+
"name": "invalid",
|
4767
|
+
"snapshot": "true",
|
4768
|
+
"skip_rules": {
|
4769
|
+
"wont_fix": [
|
4770
|
+
"region"
|
4771
|
+
],
|
4772
|
+
"will_fix": [
|
4773
|
+
"color-contrast"
|
4774
|
+
]
|
4775
|
+
}
|
4776
|
+
},
|
4738
4777
|
{
|
4739
4778
|
"preview_path": "primer/alpha/radio_button_group/with_caption",
|
4740
4779
|
"name": "with_caption",
|
@@ -5953,6 +5992,45 @@
|
|
5953
5992
|
"color-contrast"
|
5954
5993
|
]
|
5955
5994
|
}
|
5995
|
+
},
|
5996
|
+
{
|
5997
|
+
"preview_path": "primer/alpha/text_field/input_group_leading_button",
|
5998
|
+
"name": "input_group_leading_button",
|
5999
|
+
"snapshot": "true",
|
6000
|
+
"skip_rules": {
|
6001
|
+
"wont_fix": [
|
6002
|
+
"region"
|
6003
|
+
],
|
6004
|
+
"will_fix": [
|
6005
|
+
"color-contrast"
|
6006
|
+
]
|
6007
|
+
}
|
6008
|
+
},
|
6009
|
+
{
|
6010
|
+
"preview_path": "primer/alpha/text_field/input_group_trailing_button",
|
6011
|
+
"name": "input_group_trailing_button",
|
6012
|
+
"snapshot": "true",
|
6013
|
+
"skip_rules": {
|
6014
|
+
"wont_fix": [
|
6015
|
+
"region"
|
6016
|
+
],
|
6017
|
+
"will_fix": [
|
6018
|
+
"color-contrast"
|
6019
|
+
]
|
6020
|
+
}
|
6021
|
+
},
|
6022
|
+
{
|
6023
|
+
"preview_path": "primer/alpha/text_field/input_group_leading_action_menu",
|
6024
|
+
"name": "input_group_leading_action_menu",
|
6025
|
+
"snapshot": "true",
|
6026
|
+
"skip_rules": {
|
6027
|
+
"wont_fix": [
|
6028
|
+
"region"
|
6029
|
+
],
|
6030
|
+
"will_fix": [
|
6031
|
+
"color-contrast"
|
6032
|
+
]
|
6033
|
+
}
|
5956
6034
|
}
|
5957
6035
|
]
|
5958
6036
|
},
|
data/static/statuses.json
CHANGED
@@ -33,11 +33,11 @@
|
|
33
33
|
"Primer::Alpha::Layout::Sidebar": "alpha",
|
34
34
|
"Primer::Alpha::Menu": "alpha",
|
35
35
|
"Primer::Alpha::MultiInput": "alpha",
|
36
|
-
"Primer::Alpha::NavList": "
|
37
|
-
"Primer::Alpha::NavList::Divider": "
|
38
|
-
"Primer::Alpha::NavList::Group": "
|
39
|
-
"Primer::Alpha::NavList::Heading": "
|
40
|
-
"Primer::Alpha::NavList::Item": "
|
36
|
+
"Primer::Alpha::NavList": "deprecated",
|
37
|
+
"Primer::Alpha::NavList::Divider": "deprecated",
|
38
|
+
"Primer::Alpha::NavList::Group": "deprecated",
|
39
|
+
"Primer::Alpha::NavList::Heading": "deprecated",
|
40
|
+
"Primer::Alpha::NavList::Item": "deprecated",
|
41
41
|
"Primer::Alpha::Navigation::Tab": "alpha",
|
42
42
|
"Primer::Alpha::OcticonSymbols": "alpha",
|
43
43
|
"Primer::Alpha::Overlay": "alpha",
|
@@ -82,6 +82,11 @@
|
|
82
82
|
"Primer::Beta::Label": "beta",
|
83
83
|
"Primer::Beta::Link": "beta",
|
84
84
|
"Primer::Beta::Markdown": "beta",
|
85
|
+
"Primer::Beta::NavList": "beta",
|
86
|
+
"Primer::Beta::NavList::Divider": "alpha",
|
87
|
+
"Primer::Beta::NavList::Group": "alpha",
|
88
|
+
"Primer::Beta::NavList::Heading": "alpha",
|
89
|
+
"Primer::Beta::NavList::Item": "alpha",
|
85
90
|
"Primer::Beta::Octicon": "beta",
|
86
91
|
"Primer::Beta::Popover": "beta",
|
87
92
|
"Primer::Beta::ProgressBar": "beta",
|
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.
|
4
|
+
version: 0.10.0
|
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: 2023-09-
|
11
|
+
date: 2023-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -396,7 +396,6 @@ files:
|
|
396
396
|
- app/assets/javascripts/app/components/primer/alpha/dropdown/menu.d.ts
|
397
397
|
- app/assets/javascripts/app/components/primer/alpha/image_crop.d.ts
|
398
398
|
- app/assets/javascripts/app/components/primer/alpha/modal_dialog.d.ts
|
399
|
-
- app/assets/javascripts/app/components/primer/alpha/nav_list.d.ts
|
400
399
|
- app/assets/javascripts/app/components/primer/alpha/segmented_control.d.ts
|
401
400
|
- app/assets/javascripts/app/components/primer/alpha/tab_container.d.ts
|
402
401
|
- app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
|
@@ -405,6 +404,7 @@ files:
|
|
405
404
|
- app/assets/javascripts/app/components/primer/anchored_position.d.ts
|
406
405
|
- app/assets/javascripts/app/components/primer/beta/auto_complete/auto_complete.d.ts
|
407
406
|
- app/assets/javascripts/app/components/primer/beta/clipboard_copy.d.ts
|
407
|
+
- app/assets/javascripts/app/components/primer/beta/nav_list.d.ts
|
408
408
|
- app/assets/javascripts/app/components/primer/beta/relative_time.d.ts
|
409
409
|
- app/assets/javascripts/app/components/primer/focus_group.d.ts
|
410
410
|
- app/assets/javascripts/app/components/primer/primer.d.ts
|
@@ -516,16 +516,10 @@ files:
|
|
516
516
|
- app/components/primer/alpha/modal_dialog.js
|
517
517
|
- app/components/primer/alpha/modal_dialog.ts
|
518
518
|
- app/components/primer/alpha/multi_input.rb
|
519
|
-
- app/components/primer/alpha/nav_list.d.ts
|
520
|
-
- app/components/primer/alpha/nav_list.html.erb
|
521
|
-
- app/components/primer/alpha/nav_list.js
|
522
519
|
- app/components/primer/alpha/nav_list.rb
|
523
|
-
- app/components/primer/alpha/nav_list.ts
|
524
520
|
- app/components/primer/alpha/nav_list/divider.rb
|
525
|
-
- app/components/primer/alpha/nav_list/group.html.erb
|
526
521
|
- app/components/primer/alpha/nav_list/group.rb
|
527
522
|
- app/components/primer/alpha/nav_list/heading.rb
|
528
|
-
- app/components/primer/alpha/nav_list/item.html.erb
|
529
523
|
- app/components/primer/alpha/nav_list/item.rb
|
530
524
|
- app/components/primer/alpha/navigation/tab.html.erb
|
531
525
|
- app/components/primer/alpha/navigation/tab.rb
|
@@ -686,6 +680,17 @@ files:
|
|
686
680
|
- app/components/primer/beta/link.pcss
|
687
681
|
- app/components/primer/beta/link.rb
|
688
682
|
- app/components/primer/beta/markdown.rb
|
683
|
+
- app/components/primer/beta/nav_list.d.ts
|
684
|
+
- app/components/primer/beta/nav_list.html.erb
|
685
|
+
- app/components/primer/beta/nav_list.js
|
686
|
+
- app/components/primer/beta/nav_list.rb
|
687
|
+
- app/components/primer/beta/nav_list.ts
|
688
|
+
- app/components/primer/beta/nav_list/divider.rb
|
689
|
+
- app/components/primer/beta/nav_list/group.html.erb
|
690
|
+
- app/components/primer/beta/nav_list/group.rb
|
691
|
+
- app/components/primer/beta/nav_list/heading.rb
|
692
|
+
- app/components/primer/beta/nav_list/item.html.erb
|
693
|
+
- app/components/primer/beta/nav_list/item.rb
|
689
694
|
- app/components/primer/beta/octicon.html.erb
|
690
695
|
- app/components/primer/beta/octicon.rb
|
691
696
|
- app/components/primer/beta/popover.css
|
@@ -821,6 +826,7 @@ files:
|
|
821
826
|
- lib/primer/deprecations.yml
|
822
827
|
- lib/primer/example_image.rb
|
823
828
|
- lib/primer/form_components.rb
|
829
|
+
- lib/primer/forms.rb
|
824
830
|
- lib/primer/forms/acts_as_component.rb
|
825
831
|
- lib/primer/forms/base.html.erb
|
826
832
|
- lib/primer/forms/base.rb
|
@@ -895,6 +901,8 @@ files:
|
|
895
901
|
- lib/primer/forms/toggle_switch_input.js
|
896
902
|
- lib/primer/forms/toggle_switch_input.ts
|
897
903
|
- lib/primer/forms/utils.rb
|
904
|
+
- lib/primer/forms/validation_message.html.erb
|
905
|
+
- lib/primer/forms/validation_message.rb
|
898
906
|
- lib/primer/static.rb
|
899
907
|
- lib/primer/static/generate_arguments.rb
|
900
908
|
- lib/primer/static/generate_audited_at.rb
|
@@ -1006,6 +1014,7 @@ files:
|
|
1006
1014
|
- previews/primer/alpha/dialog_preview/test.html.erb
|
1007
1015
|
- previews/primer/alpha/dialog_preview/with_footer.html.erb
|
1008
1016
|
- previews/primer/alpha/dialog_preview/with_form.html.erb
|
1017
|
+
- previews/primer/alpha/dialog_preview/with_header.html.erb
|
1009
1018
|
- previews/primer/alpha/dialog_preview/with_text_input.html.erb
|
1010
1019
|
- previews/primer/alpha/dropdown_preview.rb
|
1011
1020
|
- previews/primer/alpha/form_control_preview.rb
|
@@ -1019,8 +1028,6 @@ files:
|
|
1019
1028
|
- previews/primer/alpha/menu_preview/playground.html.erb
|
1020
1029
|
- previews/primer/alpha/multi_input_preview.rb
|
1021
1030
|
- previews/primer/alpha/multi_input_preview/playground.html.erb
|
1022
|
-
- previews/primer/alpha/nav_list_preview.rb
|
1023
|
-
- previews/primer/alpha/nav_list_preview/trailing_action.html.erb
|
1024
1031
|
- previews/primer/alpha/overlay_preview.rb
|
1025
1032
|
- previews/primer/alpha/overlay_preview/in_an_action_menu.html.erb
|
1026
1033
|
- previews/primer/alpha/overlay_preview/middle_of_page.html.erb
|
@@ -1037,6 +1044,9 @@ files:
|
|
1037
1044
|
- previews/primer/alpha/tab_panels_preview/with_extra.html.erb
|
1038
1045
|
- previews/primer/alpha/text_area_preview.rb
|
1039
1046
|
- previews/primer/alpha/text_field_preview.rb
|
1047
|
+
- previews/primer/alpha/text_field_preview/input_group_leading_action_menu.html.erb
|
1048
|
+
- previews/primer/alpha/text_field_preview/input_group_leading_button.html.erb
|
1049
|
+
- previews/primer/alpha/text_field_preview/input_group_trailing_button.html.erb
|
1040
1050
|
- previews/primer/alpha/toggle_switch_preview.rb
|
1041
1051
|
- previews/primer/alpha/tooltip_preview.rb
|
1042
1052
|
- previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
|
@@ -1080,6 +1090,8 @@ files:
|
|
1080
1090
|
- previews/primer/beta/label_preview.rb
|
1081
1091
|
- previews/primer/beta/link_preview.rb
|
1082
1092
|
- previews/primer/beta/markdown_preview.rb
|
1093
|
+
- previews/primer/beta/nav_list_preview.rb
|
1094
|
+
- previews/primer/beta/nav_list_preview/trailing_action.html.erb
|
1083
1095
|
- previews/primer/beta/octicon_preview.rb
|
1084
1096
|
- previews/primer/beta/popover_preview.rb
|
1085
1097
|
- previews/primer/beta/progress_bar_preview.rb
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|