primer_view_components 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +85 -0
  3. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -1
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -1
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/action_bar/item.rb +3 -2
  9. data/app/components/primer/alpha/action_bar.rb +1 -5
  10. data/app/components/primer/alpha/action_menu/action_menu_element.js +2 -1
  11. data/app/components/primer/alpha/action_menu/action_menu_element.ts +2 -1
  12. data/app/components/primer/alpha/check_box_group.rb +2 -0
  13. data/app/components/primer/alpha/dialog/header.rb +12 -0
  14. data/app/components/primer/alpha/dialog.rb +1 -1
  15. data/app/components/primer/alpha/nav_list/divider.rb +2 -5
  16. data/app/components/primer/alpha/nav_list/group.rb +2 -98
  17. data/app/components/primer/alpha/nav_list/heading.rb +2 -27
  18. data/app/components/primer/alpha/nav_list/item.rb +2 -147
  19. data/app/components/primer/alpha/nav_list.rb +2 -205
  20. data/app/components/primer/alpha/overlay.css +1 -1
  21. data/app/components/primer/alpha/overlay.css.json +3 -1
  22. data/app/components/primer/alpha/overlay.css.map +1 -1
  23. data/app/components/primer/alpha/overlay.pcss +5 -7
  24. data/app/components/primer/alpha/overlay.rb +6 -4
  25. data/app/components/primer/alpha/radio_button_group.rb +2 -0
  26. data/app/components/primer/alpha/text_field.css +1 -1
  27. data/app/components/primer/alpha/text_field.css.json +4 -1
  28. data/app/components/primer/alpha/text_field.css.map +1 -1
  29. data/app/components/primer/alpha/text_field.pcss +18 -3
  30. data/app/components/primer/alpha/tool_tip.js +28 -8
  31. data/app/components/primer/alpha/tool_tip.ts +27 -8
  32. data/app/components/primer/alpha/tooltip.rb +3 -1
  33. data/app/components/primer/anchored_position.js +14 -5
  34. data/app/components/primer/anchored_position.ts +13 -4
  35. data/app/components/primer/beta/button.css +1 -1
  36. data/app/components/primer/beta/button.css.json +2 -0
  37. data/app/components/primer/beta/button.css.map +1 -1
  38. data/app/components/primer/beta/button.pcss +11 -3
  39. data/app/components/primer/beta/icon_button.html.erb +1 -1
  40. data/app/components/primer/beta/icon_button.rb +8 -1
  41. data/app/components/primer/beta/link.css +1 -1
  42. data/app/components/primer/beta/link.css.json +1 -0
  43. data/app/components/primer/beta/link.css.map +1 -1
  44. data/app/components/primer/beta/link.pcss +5 -0
  45. data/app/components/primer/beta/link.rb +2 -2
  46. data/app/components/primer/beta/nav_list/divider.rb +14 -0
  47. data/app/components/primer/beta/nav_list/group.rb +107 -0
  48. data/app/components/primer/beta/nav_list/heading.rb +36 -0
  49. data/app/components/primer/beta/nav_list/item.rb +156 -0
  50. data/app/components/primer/beta/nav_list.rb +212 -0
  51. data/app/components/primer/beta/spinner.html.erb +1 -1
  52. data/app/components/primer/focus_group.js +2 -1
  53. data/app/components/primer/focus_group.ts +2 -1
  54. data/app/components/primer/primer.d.ts +1 -1
  55. data/app/components/primer/primer.js +1 -1
  56. data/app/components/primer/primer.ts +1 -1
  57. data/app/helpers/primer/form_helper.rb +10 -0
  58. data/lib/primer/deprecations.yml +20 -0
  59. data/lib/primer/forms/check_box_group.html.erb +3 -0
  60. data/lib/primer/forms/dsl/check_box_group_input.rb +1 -5
  61. data/lib/primer/forms/dsl/check_box_input.rb +5 -0
  62. data/lib/primer/forms/dsl/radio_button_input.rb +5 -0
  63. data/lib/primer/forms/form_control.html.erb +1 -4
  64. data/lib/primer/forms/radio_button_group.html.erb +3 -0
  65. data/lib/primer/forms/utils.rb +2 -0
  66. data/lib/primer/forms/validation_message.html.erb +4 -0
  67. data/lib/primer/forms/validation_message.rb +14 -0
  68. data/lib/primer/forms.rb +16 -0
  69. data/lib/primer/view_components/linters/migrations/iconbutton_component.rb +36 -0
  70. data/lib/primer/view_components/version.rb +1 -1
  71. data/lib/primer/yard/component_manifest.rb +4 -0
  72. data/previews/primer/alpha/check_box_group_preview.rb +13 -0
  73. data/previews/primer/alpha/dialog_preview/with_header.html.erb +5 -0
  74. data/previews/primer/alpha/dialog_preview.rb +17 -0
  75. data/previews/primer/alpha/overlay_preview/in_an_action_menu.html.erb +13 -0
  76. data/previews/primer/alpha/overlay_preview.rb +5 -0
  77. data/previews/primer/alpha/radio_button_group_preview.rb +13 -0
  78. data/previews/primer/alpha/radio_button_preview.rb +1 -1
  79. data/previews/primer/alpha/text_field_preview/input_group_leading_action_menu.html.erb +21 -0
  80. data/previews/primer/alpha/text_field_preview/input_group_leading_button.html.erb +18 -0
  81. data/previews/primer/alpha/text_field_preview/input_group_trailing_button.html.erb +18 -0
  82. data/previews/primer/alpha/text_field_preview.rb +21 -0
  83. data/previews/primer/beta/button_preview.rb +1 -1
  84. data/previews/primer/{alpha → beta}/nav_list_preview/trailing_action.html.erb +1 -1
  85. data/previews/primer/{alpha → beta}/nav_list_preview.rb +5 -5
  86. data/static/arguments.json +182 -6
  87. data/static/audited_at.json +5 -0
  88. data/static/classes.json +3 -0
  89. data/static/constants.json +23 -0
  90. data/static/info_arch.json +1013 -523
  91. data/static/previews.json +98 -7
  92. data/static/statuses.json +10 -5
  93. metadata +25 -11
  94. /data/app/assets/javascripts/app/components/primer/{alpha → beta}/nav_list.d.ts +0 -0
  95. /data/app/components/primer/{alpha → beta}/nav_list/group.html.erb +0 -0
  96. /data/app/components/primer/{alpha → beta}/nav_list/item.html.erb +0 -0
  97. /data/app/components/primer/{alpha → beta}/nav_list.d.ts +0 -0
  98. /data/app/components/primer/{alpha → beta}/nav_list.html.erb +0 -0
  99. /data/app/components/primer/{alpha → beta}/nav_list.js +0 -0
  100. /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": "alpha",
4246
- "lookup_path": "primer/alpha/nav_list",
4271
+ "status": "beta",
4272
+ "lookup_path": "primer/beta/nav_list",
4247
4273
  "examples": [
4248
4274
  {
4249
- "preview_path": "primer/alpha/nav_list/playground",
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/alpha/nav_list/default",
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/alpha/nav_list/top_level_items",
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/alpha/nav_list/show_more_item",
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/alpha/nav_list/trailing_action",
4327
+ "preview_path": "primer/beta/nav_list/trailing_action",
4302
4328
  "name": "trailing_action",
4303
4329
  "snapshot": "true",
4304
4330
  "skip_rules": {
@@ -4417,6 +4443,19 @@
4417
4443
  ]
4418
4444
  }
4419
4445
  },
4446
+ {
4447
+ "preview_path": "primer/alpha/overlay/in_an_action_menu",
4448
+ "name": "in_an_action_menu",
4449
+ "snapshot": "false",
4450
+ "skip_rules": {
4451
+ "wont_fix": [
4452
+ "region"
4453
+ ],
4454
+ "will_fix": [
4455
+ "color-contrast"
4456
+ ]
4457
+ }
4458
+ },
4420
4459
  {
4421
4460
  "preview_path": "primer/alpha/overlay/dialog_with_header_footer",
4422
4461
  "name": "dialog_with_header_footer",
@@ -4722,6 +4761,19 @@
4722
4761
  ]
4723
4762
  }
4724
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
+ },
4725
4777
  {
4726
4778
  "preview_path": "primer/alpha/radio_button_group/with_caption",
4727
4779
  "name": "with_caption",
@@ -5940,6 +5992,45 @@
5940
5992
  "color-contrast"
5941
5993
  ]
5942
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
+ }
5943
6034
  }
5944
6035
  ]
5945
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": "alpha",
37
- "Primer::Alpha::NavList::Divider": "alpha",
38
- "Primer::Alpha::NavList::Group": "alpha",
39
- "Primer::Alpha::NavList::Heading": "alpha",
40
- "Primer::Alpha::NavList::Item": "alpha",
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.8.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-08-28 00:00:00.000000000 Z
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
@@ -935,6 +943,7 @@ files:
935
943
  - lib/primer/view_components/linters/helpers/rule_helpers.rb
936
944
  - lib/primer/view_components/linters/label_component_migration_counter.rb
937
945
  - lib/primer/view_components/linters/migrate_deprecated_flash_arguments.rb
946
+ - lib/primer/view_components/linters/migrations/iconbutton_component.rb
938
947
  - lib/primer/view_components/linters/migrations/truncate_component.rb
939
948
  - lib/primer/view_components/linters/severity_schema.rb
940
949
  - lib/primer/view_components/linters/subhead_component_migration_counter.rb
@@ -1005,6 +1014,7 @@ files:
1005
1014
  - previews/primer/alpha/dialog_preview/test.html.erb
1006
1015
  - previews/primer/alpha/dialog_preview/with_footer.html.erb
1007
1016
  - previews/primer/alpha/dialog_preview/with_form.html.erb
1017
+ - previews/primer/alpha/dialog_preview/with_header.html.erb
1008
1018
  - previews/primer/alpha/dialog_preview/with_text_input.html.erb
1009
1019
  - previews/primer/alpha/dropdown_preview.rb
1010
1020
  - previews/primer/alpha/form_control_preview.rb
@@ -1018,9 +1028,8 @@ files:
1018
1028
  - previews/primer/alpha/menu_preview/playground.html.erb
1019
1029
  - previews/primer/alpha/multi_input_preview.rb
1020
1030
  - previews/primer/alpha/multi_input_preview/playground.html.erb
1021
- - previews/primer/alpha/nav_list_preview.rb
1022
- - previews/primer/alpha/nav_list_preview/trailing_action.html.erb
1023
1031
  - previews/primer/alpha/overlay_preview.rb
1032
+ - previews/primer/alpha/overlay_preview/in_an_action_menu.html.erb
1024
1033
  - previews/primer/alpha/overlay_preview/middle_of_page.html.erb
1025
1034
  - previews/primer/alpha/overlay_preview/middle_of_page_with_relative_container.html.erb
1026
1035
  - previews/primer/alpha/radio_button_group_preview.rb
@@ -1035,6 +1044,9 @@ files:
1035
1044
  - previews/primer/alpha/tab_panels_preview/with_extra.html.erb
1036
1045
  - previews/primer/alpha/text_area_preview.rb
1037
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
1038
1050
  - previews/primer/alpha/toggle_switch_preview.rb
1039
1051
  - previews/primer/alpha/tooltip_preview.rb
1040
1052
  - previews/primer/alpha/tooltip_preview/tooltip_inside_primer_overlay.html.erb
@@ -1078,6 +1090,8 @@ files:
1078
1090
  - previews/primer/beta/label_preview.rb
1079
1091
  - previews/primer/beta/link_preview.rb
1080
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
1081
1095
  - previews/primer/beta/octicon_preview.rb
1082
1096
  - previews/primer/beta/popover_preview.rb
1083
1097
  - previews/primer/beta/progress_bar_preview.rb
File without changes
File without changes