openproject-primer_view_components 0.23.0 → 0.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +33 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/action_list.d.ts +16 -0
  4. data/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +3 -0
  5. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  6. data/app/assets/javascripts/primer_view_components.js +1 -1
  7. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  8. data/app/assets/styles/primer_view_components.css +1 -1
  9. data/app/assets/styles/primer_view_components.css.map +1 -1
  10. data/app/components/primer/alpha/action_list/item.rb +19 -6
  11. data/app/components/primer/alpha/action_list.css +1 -1
  12. data/app/components/primer/alpha/action_list.css.json +2 -0
  13. data/app/components/primer/alpha/action_list.css.map +1 -1
  14. data/app/components/primer/alpha/action_list.d.ts +16 -0
  15. data/app/components/primer/alpha/action_list.html.erb +19 -17
  16. data/app/components/primer/alpha/action_list.js +69 -0
  17. data/app/components/primer/alpha/action_list.pcss +8 -0
  18. data/app/components/primer/alpha/action_list.ts +58 -0
  19. data/app/components/primer/alpha/banner.css +1 -1
  20. data/app/components/primer/alpha/banner.css.map +1 -1
  21. data/app/components/primer/alpha/banner.pcss +4 -4
  22. data/app/components/primer/alpha/dialog.css +1 -1
  23. data/app/components/primer/alpha/dialog.css.json +2 -0
  24. data/app/components/primer/alpha/dialog.css.map +1 -1
  25. data/app/components/primer/alpha/dialog.pcss +9 -0
  26. data/app/components/primer/alpha/dropdown.css +1 -1
  27. data/app/components/primer/alpha/dropdown.css.map +1 -1
  28. data/app/components/primer/alpha/dropdown.pcss +1 -1
  29. data/app/components/primer/alpha/text_field.css +1 -1
  30. data/app/components/primer/alpha/text_field.css.json +2 -0
  31. data/app/components/primer/alpha/text_field.css.map +1 -1
  32. data/app/components/primer/alpha/text_field.pcss +10 -0
  33. data/app/components/primer/alpha/toggle_switch.rb +2 -2
  34. data/app/components/primer/beta/auto_complete/auto_complete.html.erb +9 -9
  35. data/app/components/primer/beta/breadcrumbs.css +1 -1
  36. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  37. data/app/components/primer/beta/breadcrumbs.pcss +3 -1
  38. data/app/components/primer/beta/button.css +1 -1
  39. data/app/components/primer/beta/button.css.json +1 -0
  40. data/app/components/primer/beta/button.css.map +1 -1
  41. data/app/components/primer/beta/button.pcss +4 -0
  42. data/app/components/primer/beta/flash.css +1 -1
  43. data/app/components/primer/beta/flash.css.map +1 -1
  44. data/app/components/primer/beta/flash.pcss +4 -4
  45. data/app/components/primer/beta/nav_list.d.ts +3 -0
  46. data/app/components/primer/beta/nav_list.html.erb +1 -1
  47. data/app/components/primer/beta/nav_list.js +25 -2
  48. data/app/components/primer/beta/nav_list.ts +18 -1
  49. data/app/components/primer/beta/nav_list_group_element.js +4 -1
  50. data/app/components/primer/beta/nav_list_group_element.ts +3 -0
  51. data/app/components/primer/beta/popover.css +1 -1
  52. data/app/components/primer/beta/popover.css.map +1 -1
  53. data/app/components/primer/beta/popover.pcss +3 -0
  54. data/app/components/primer/beta/popover.rb +0 -1
  55. data/app/components/primer/open_project/page_header.css +1 -1
  56. data/app/components/primer/open_project/page_header.css.json +2 -4
  57. data/app/components/primer/open_project/page_header.css.map +1 -1
  58. data/app/components/primer/open_project/page_header.html.erb +15 -3
  59. data/app/components/primer/open_project/page_header.pcss +4 -17
  60. data/app/components/primer/open_project/page_header.rb +17 -28
  61. data/app/components/primer/primer.d.ts +1 -0
  62. data/app/components/primer/primer.js +1 -0
  63. data/app/components/primer/primer.ts +1 -0
  64. data/app/forms/auto_complete_form.rb +18 -0
  65. data/app/forms/select_form.rb +10 -0
  66. data/lib/primer/forms/auto_complete.html.erb +6 -0
  67. data/lib/primer/forms/auto_complete.rb +56 -0
  68. data/lib/primer/forms/builder.rb +19 -0
  69. data/lib/primer/forms/check_box_group.html.erb +4 -4
  70. data/lib/primer/forms/check_box_group.rb +0 -3
  71. data/lib/primer/forms/dsl/auto_complete_input.rb +33 -0
  72. data/lib/primer/forms/dsl/check_box_group_input.rb +8 -0
  73. data/lib/primer/forms/dsl/input.rb +8 -2
  74. data/lib/primer/forms/dsl/input_methods.rb +9 -0
  75. data/lib/primer/forms/dsl/radio_button_group_input.rb +8 -0
  76. data/lib/primer/forms/dsl/select_input.rb +5 -1
  77. data/lib/primer/forms/form_control.rb +1 -2
  78. data/lib/primer/forms/primer_text_field.js +2 -2
  79. data/lib/primer/forms/primer_text_field.ts +2 -2
  80. data/lib/primer/forms/radio_button_group.html.erb +4 -4
  81. data/lib/primer/forms/radio_button_group.rb +0 -3
  82. data/lib/primer/forms/select.html.erb +1 -0
  83. data/lib/primer/forms/select.rb +9 -5
  84. data/lib/primer/view_components/version.rb +1 -1
  85. data/previews/primer/alpha/action_list_preview.rb +42 -0
  86. data/previews/primer/alpha/select_preview.rb +12 -1
  87. data/previews/primer/alpha/text_area_preview.rb +7 -1
  88. data/previews/primer/alpha/text_field_preview.rb +7 -1
  89. data/previews/primer/beta/nav_list_preview.rb +43 -0
  90. data/previews/primer/forms_preview/auto_complete_form.html.erb +3 -0
  91. data/previews/primer/forms_preview/select_form.html.erb +1 -1
  92. data/previews/primer/forms_preview.rb +2 -0
  93. data/previews/primer/open_project/page_header_preview/actions.html.erb +9 -7
  94. data/previews/primer/open_project/page_header_preview/context_bar_actions.html.erb +8 -6
  95. data/previews/primer/open_project/page_header_preview/playground.html.erb +4 -4
  96. data/previews/primer/open_project/page_header_preview.rb +11 -15
  97. data/static/arguments.json +7 -7
  98. data/static/classes.json +2 -5
  99. data/static/constants.json +22 -13
  100. data/static/info_arch.json +158 -21
  101. data/static/previews.json +147 -4
  102. metadata +11 -2
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
  },
@@ -4825,6 +4877,58 @@
4825
4877
  "color-contrast"
4826
4878
  ]
4827
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
+ }
4828
4932
  }
4829
4933
  ]
4830
4934
  },
@@ -5028,8 +5132,8 @@
5028
5132
  }
5029
5133
  },
5030
5134
  {
5031
- "preview_path": "primer/open_project/page_header/medium_title",
5032
- "name": "medium_title",
5135
+ "preview_path": "primer/open_project/page_header/large_title",
5136
+ "name": "large_title",
5033
5137
  "snapshot": "false",
5034
5138
  "skip_rules": {
5035
5139
  "wont_fix": [
@@ -5054,8 +5158,8 @@
5054
5158
  }
5055
5159
  },
5056
5160
  {
5057
- "preview_path": "primer/open_project/page_header/back_button",
5058
- "name": "back_button",
5161
+ "preview_path": "primer/open_project/page_header/leading_action",
5162
+ "name": "leading_action",
5059
5163
  "snapshot": "false",
5060
5164
  "skip_rules": {
5061
5165
  "wont_fix": [
@@ -5811,6 +5915,19 @@
5811
5915
  ]
5812
5916
  }
5813
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
+ },
5814
5931
  {
5815
5932
  "preview_path": "primer/alpha/select/disabled",
5816
5933
  "name": "disabled",
@@ -6335,6 +6452,19 @@
6335
6452
  ]
6336
6453
  }
6337
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
+ },
6338
6468
  {
6339
6469
  "preview_path": "primer/alpha/text_area/disabled",
6340
6470
  "name": "disabled",
@@ -6499,6 +6629,19 @@
6499
6629
  ]
6500
6630
  }
6501
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
+ },
6502
6645
  {
6503
6646
  "preview_path": "primer/alpha/text_field/disabled",
6504
6647
  "name": "disabled",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openproject-primer_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub Open Source
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-05 00:00:00.000000000 Z
12
+ date: 2024-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -83,6 +83,7 @@ files:
83
83
  - LICENSE.txt
84
84
  - README.md
85
85
  - app/assets/javascripts/app/components/primer/alpha/action_bar_element.d.ts
86
+ - app/assets/javascripts/app/components/primer/alpha/action_list.d.ts
86
87
  - app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts
87
88
  - app/assets/javascripts/app/components/primer/alpha/dropdown.d.ts
88
89
  - app/assets/javascripts/app/components/primer/alpha/dropdown/menu.d.ts
@@ -124,9 +125,12 @@ files:
124
125
  - app/components/primer/alpha/action_list.css
125
126
  - app/components/primer/alpha/action_list.css.json
126
127
  - app/components/primer/alpha/action_list.css.map
128
+ - app/components/primer/alpha/action_list.d.ts
127
129
  - app/components/primer/alpha/action_list.html.erb
130
+ - app/components/primer/alpha/action_list.js
128
131
  - app/components/primer/alpha/action_list.pcss
129
132
  - app/components/primer/alpha/action_list.rb
133
+ - app/components/primer/alpha/action_list.ts
130
134
  - app/components/primer/alpha/action_list/divider.rb
131
135
  - app/components/primer/alpha/action_list/form_wrapper.html.erb
132
136
  - app/components/primer/alpha/action_list/form_wrapper.rb
@@ -507,6 +511,7 @@ files:
507
511
  - app/forms/application_form.rb
508
512
  - app/forms/array_check_box_group_form.rb
509
513
  - app/forms/array_check_box_group_form/places_lopez_caption.html.erb
514
+ - app/forms/auto_complete_form.rb
510
515
  - app/forms/both_types_of_caption_form.rb
511
516
  - app/forms/both_types_of_caption_form/first_name_caption.html.erb
512
517
  - app/forms/caption_template_form.rb
@@ -574,6 +579,8 @@ files:
574
579
  - lib/primer/forms/action_menu.html.erb
575
580
  - lib/primer/forms/action_menu.rb
576
581
  - lib/primer/forms/acts_as_component.rb
582
+ - lib/primer/forms/auto_complete.html.erb
583
+ - lib/primer/forms/auto_complete.rb
577
584
  - lib/primer/forms/base.html.erb
578
585
  - lib/primer/forms/base.rb
579
586
  - lib/primer/forms/base_component.rb
@@ -588,6 +595,7 @@ files:
588
595
  - lib/primer/forms/check_box_group.html.erb
589
596
  - lib/primer/forms/check_box_group.rb
590
597
  - lib/primer/forms/dsl/action_menu_input.rb
598
+ - lib/primer/forms/dsl/auto_complete_input.rb
591
599
  - lib/primer/forms/dsl/button_input.rb
592
600
  - lib/primer/forms/dsl/check_box_group_input.rb
593
601
  - lib/primer/forms/dsl/check_box_input.rb
@@ -867,6 +875,7 @@ files:
867
875
  - previews/primer/forms_preview/action_menu_form.html.erb
868
876
  - previews/primer/forms_preview/after_content_form.html.erb
869
877
  - previews/primer/forms_preview/array_check_box_group_form.html.erb
878
+ - previews/primer/forms_preview/auto_complete_form.html.erb
870
879
  - previews/primer/forms_preview/caption_template_form.html.erb
871
880
  - previews/primer/forms_preview/check_box_group_form.html.erb
872
881
  - previews/primer/forms_preview/check_box_with_nested_form.html.erb