openproject-primer_view_components 0.17.1 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +49 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/action_menu/action_menu_element.d.ts +20 -0
  4. data/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +0 -11
  5. data/app/assets/javascripts/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
  6. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  7. data/app/assets/javascripts/primer_view_components.js +1 -1
  8. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  9. data/app/assets/styles/primer_view_components.css +1 -1
  10. data/app/assets/styles/primer_view_components.css.map +1 -1
  11. data/app/components/primer/alpha/action_list/item.rb +13 -1
  12. data/app/components/primer/alpha/action_list.css +1 -1
  13. data/app/components/primer/alpha/action_list.css.json +1 -0
  14. data/app/components/primer/alpha/action_list.css.map +1 -1
  15. data/app/components/primer/alpha/action_list.pcss +3 -1
  16. data/app/components/primer/alpha/action_list.rb +5 -4
  17. data/app/components/primer/alpha/action_menu/action_menu_element.d.ts +20 -0
  18. data/app/components/primer/alpha/action_menu/action_menu_element.js +85 -11
  19. data/app/components/primer/alpha/action_menu/action_menu_element.ts +110 -12
  20. data/app/components/primer/alpha/action_menu/group.rb +23 -0
  21. data/app/components/primer/alpha/action_menu/heading.rb +17 -0
  22. data/app/components/primer/alpha/action_menu/list.html.erb +1 -0
  23. data/app/components/primer/alpha/action_menu/list.rb +62 -51
  24. data/app/components/primer/alpha/action_menu/list_wrapper.rb +40 -0
  25. data/app/components/primer/alpha/action_menu.rb +38 -1
  26. data/app/components/primer/alpha/overlay.css +1 -1
  27. data/app/components/primer/alpha/overlay.css.json +2 -1
  28. data/app/components/primer/alpha/overlay.css.map +1 -1
  29. data/app/components/primer/alpha/overlay.pcss +6 -2
  30. data/app/components/primer/alpha/text_field.css +1 -1
  31. data/app/components/primer/alpha/text_field.css.map +1 -1
  32. data/app/components/primer/alpha/text_field.pcss +3 -3
  33. data/app/components/primer/alpha/tool_tip.js +8 -4
  34. data/app/components/primer/alpha/tool_tip.ts +9 -4
  35. data/app/components/primer/beta/auto_complete/auto_complete.html.erb +1 -7
  36. data/app/components/primer/beta/auto_complete/item.rb +1 -1
  37. data/app/components/primer/beta/auto_complete.rb +6 -1
  38. data/app/components/primer/beta/base_button.rb +2 -3
  39. data/app/components/primer/beta/blankslate.css +1 -1
  40. data/app/components/primer/beta/blankslate.css.map +1 -1
  41. data/app/components/primer/beta/blankslate.pcss +3 -3
  42. data/app/components/primer/beta/border_box.rb +3 -0
  43. data/app/components/primer/beta/button.css +1 -1
  44. data/app/components/primer/beta/button.css.json +9 -8
  45. data/app/components/primer/beta/button.css.map +1 -1
  46. data/app/components/primer/beta/button.pcss +15 -11
  47. data/app/components/primer/beta/nav_list/group.html.erb +7 -5
  48. data/app/components/primer/beta/nav_list/group.rb +2 -2
  49. data/app/components/primer/beta/nav_list.d.ts +0 -11
  50. data/app/components/primer/beta/nav_list.js +2 -85
  51. data/app/components/primer/beta/nav_list.ts +1 -85
  52. data/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
  53. data/app/components/primer/beta/nav_list_group_element.js +108 -0
  54. data/app/components/primer/beta/nav_list_group_element.ts +97 -0
  55. data/app/components/primer/beta/relative_time.rb +4 -4
  56. data/app/components/primer/component.rb +3 -0
  57. data/app/components/primer/open_project/input_group.css +1 -0
  58. data/app/components/primer/open_project/input_group.css.json +11 -0
  59. data/app/components/primer/open_project/input_group.css.map +1 -0
  60. data/app/components/primer/open_project/input_group.html.erb +4 -0
  61. data/app/components/primer/open_project/input_group.pcss +25 -0
  62. data/app/components/primer/open_project/input_group.rb +93 -0
  63. data/app/components/primer/primer.d.ts +1 -0
  64. data/app/components/primer/primer.js +1 -0
  65. data/app/components/primer/primer.pcss +1 -0
  66. data/app/components/primer/primer.ts +1 -0
  67. data/app/lib/primer/experimental_render_helpers.rb +32 -0
  68. data/app/lib/primer/experimental_slot_helpers.rb +30 -0
  69. data/lib/primer/view_components/version.rb +2 -2
  70. data/lib/primer/yard/lookbook_pages_backend.rb +2 -2
  71. data/previews/primer/alpha/action_menu_preview.rb +73 -7
  72. data/previews/primer/alpha/dialog_preview/with_auto_complete.html.erb +8 -0
  73. data/previews/primer/alpha/dialog_preview.rb +17 -0
  74. data/previews/primer/beta/blankslate_preview/inside_flex_container.html.erb +6 -0
  75. data/previews/primer/beta/blankslate_preview.rb +3 -0
  76. data/previews/primer/beta/border_box_preview.rb +3 -2
  77. data/previews/primer/beta/nav_list_preview.rb +10 -1
  78. data/previews/primer/open_project/input_group_preview.rb +63 -0
  79. data/static/arguments.json +108 -1
  80. data/static/audited_at.json +5 -1
  81. data/static/classes.json +6 -0
  82. data/static/constants.json +28 -0
  83. data/static/info_arch.json +365 -52
  84. data/static/previews.json +112 -0
  85. data/static/statuses.json +4 -0
  86. metadata +21 -2
data/static/previews.json CHANGED
@@ -424,6 +424,32 @@
424
424
  ]
425
425
  }
426
426
  },
427
+ {
428
+ "preview_path": "primer/alpha/action_menu/with_groups",
429
+ "name": "with_groups",
430
+ "snapshot": "interactive",
431
+ "skip_rules": {
432
+ "wont_fix": [
433
+ "region"
434
+ ],
435
+ "will_fix": [
436
+ "color-contrast"
437
+ ]
438
+ }
439
+ },
440
+ {
441
+ "preview_path": "primer/alpha/action_menu/with_items_and_groups",
442
+ "name": "with_items_and_groups",
443
+ "snapshot": "interactive",
444
+ "skip_rules": {
445
+ "wont_fix": [
446
+ "region"
447
+ ],
448
+ "will_fix": [
449
+ "color-contrast"
450
+ ]
451
+ }
452
+ },
427
453
  {
428
454
  "preview_path": "primer/alpha/action_menu/wide",
429
455
  "name": "wide",
@@ -1714,6 +1740,19 @@
1714
1740
  "color-contrast"
1715
1741
  ]
1716
1742
  }
1743
+ },
1744
+ {
1745
+ "preview_path": "primer/beta/blankslate/inside_flex_container",
1746
+ "name": "inside_flex_container",
1747
+ "snapshot": "false",
1748
+ "skip_rules": {
1749
+ "wont_fix": [
1750
+ "region"
1751
+ ],
1752
+ "will_fix": [
1753
+ "color-contrast"
1754
+ ]
1755
+ }
1717
1756
  }
1718
1757
  ]
1719
1758
  },
@@ -3057,6 +3096,19 @@
3057
3096
  ]
3058
3097
  }
3059
3098
  },
3099
+ {
3100
+ "preview_path": "primer/alpha/dialog/with_auto_complete",
3101
+ "name": "with_auto_complete",
3102
+ "snapshot": "interactive",
3103
+ "skip_rules": {
3104
+ "wont_fix": [
3105
+ "region"
3106
+ ],
3107
+ "will_fix": [
3108
+ "color-contrast"
3109
+ ]
3110
+ }
3111
+ },
3060
3112
  {
3061
3113
  "preview_path": "primer/alpha/dialog/body_has_scrollbar_overflow",
3062
3114
  "name": "body_has_scrollbar_overflow",
@@ -3849,6 +3901,66 @@
3849
3901
  }
3850
3902
  ]
3851
3903
  },
3904
+ {
3905
+ "name": "input_group",
3906
+ "component": "OpenProject::InputGroup",
3907
+ "status": "open_project",
3908
+ "lookup_path": "primer/open_project/input_group",
3909
+ "examples": [
3910
+ {
3911
+ "preview_path": "primer/open_project/input_group/default",
3912
+ "name": "default",
3913
+ "snapshot": "true",
3914
+ "skip_rules": {
3915
+ "wont_fix": [
3916
+ "region"
3917
+ ],
3918
+ "will_fix": [
3919
+ "color-contrast"
3920
+ ]
3921
+ }
3922
+ },
3923
+ {
3924
+ "preview_path": "primer/open_project/input_group/playground",
3925
+ "name": "playground",
3926
+ "snapshot": "false",
3927
+ "skip_rules": {
3928
+ "wont_fix": [
3929
+ "region"
3930
+ ],
3931
+ "will_fix": [
3932
+ "color-contrast"
3933
+ ]
3934
+ }
3935
+ },
3936
+ {
3937
+ "preview_path": "primer/open_project/input_group/icon_button",
3938
+ "name": "icon_button",
3939
+ "snapshot": "false",
3940
+ "skip_rules": {
3941
+ "wont_fix": [
3942
+ "region"
3943
+ ],
3944
+ "will_fix": [
3945
+ "color-contrast"
3946
+ ]
3947
+ }
3948
+ },
3949
+ {
3950
+ "preview_path": "primer/open_project/input_group/small_input_width",
3951
+ "name": "small_input_width",
3952
+ "snapshot": "false",
3953
+ "skip_rules": {
3954
+ "wont_fix": [
3955
+ "region"
3956
+ ],
3957
+ "will_fix": [
3958
+ "color-contrast"
3959
+ ]
3960
+ }
3961
+ }
3962
+ ]
3963
+ },
3852
3964
  {
3853
3965
  "name": "label",
3854
3966
  "component": "Label",
data/static/statuses.json CHANGED
@@ -8,7 +8,10 @@
8
8
  "Primer::Alpha::ActionList::Heading": "alpha",
9
9
  "Primer::Alpha::ActionList::Item": "alpha",
10
10
  "Primer::Alpha::ActionMenu": "alpha",
11
+ "Primer::Alpha::ActionMenu::Group": "alpha",
12
+ "Primer::Alpha::ActionMenu::Heading": "alpha",
11
13
  "Primer::Alpha::ActionMenu::List": "alpha",
14
+ "Primer::Alpha::ActionMenu::ListWrapper": "alpha",
12
15
  "Primer::Alpha::AutoComplete": "deprecated",
13
16
  "Primer::Alpha::AutoComplete::Item": "deprecated",
14
17
  "Primer::Alpha::Banner": "alpha",
@@ -115,6 +118,7 @@
115
118
  "Primer::OpenProject::FlexLayout": "open_project",
116
119
  "Primer::OpenProject::GridLayout": "open_project",
117
120
  "Primer::OpenProject::GridLayout::Area": "open_project",
121
+ "Primer::OpenProject::InputGroup": "open_project",
118
122
  "Primer::OpenProject::PageHeader": "open_project",
119
123
  "Primer::Tooltip": "deprecated",
120
124
  "Primer::Truncate": "deprecated"
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.17.1
4
+ version: 0.19.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: 2023-11-22 00:00:00.000000000 Z
12
+ date: 2023-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -97,6 +97,7 @@ files:
97
97
  - app/assets/javascripts/app/components/primer/beta/auto_complete/auto_complete.d.ts
98
98
  - app/assets/javascripts/app/components/primer/beta/clipboard_copy.d.ts
99
99
  - app/assets/javascripts/app/components/primer/beta/nav_list.d.ts
100
+ - app/assets/javascripts/app/components/primer/beta/nav_list_group_element.d.ts
100
101
  - app/assets/javascripts/app/components/primer/beta/relative_time.d.ts
101
102
  - app/assets/javascripts/app/components/primer/focus_group.d.ts
102
103
  - app/assets/javascripts/app/components/primer/primer.d.ts
@@ -136,7 +137,11 @@ files:
136
137
  - app/components/primer/alpha/action_menu/action_menu_element.d.ts
137
138
  - app/components/primer/alpha/action_menu/action_menu_element.js
138
139
  - app/components/primer/alpha/action_menu/action_menu_element.ts
140
+ - app/components/primer/alpha/action_menu/group.rb
141
+ - app/components/primer/alpha/action_menu/heading.rb
142
+ - app/components/primer/alpha/action_menu/list.html.erb
139
143
  - app/components/primer/alpha/action_menu/list.rb
144
+ - app/components/primer/alpha/action_menu/list_wrapper.rb
140
145
  - app/components/primer/alpha/auto_complete.css
141
146
  - app/components/primer/alpha/auto_complete.css.json
142
147
  - app/components/primer/alpha/auto_complete.css.map
@@ -384,6 +389,9 @@ files:
384
389
  - app/components/primer/beta/nav_list/heading.rb
385
390
  - app/components/primer/beta/nav_list/item.html.erb
386
391
  - app/components/primer/beta/nav_list/item.rb
392
+ - app/components/primer/beta/nav_list_group_element.d.ts
393
+ - app/components/primer/beta/nav_list_group_element.js
394
+ - app/components/primer/beta/nav_list_group_element.ts
387
395
  - app/components/primer/beta/octicon.html.erb
388
396
  - app/components/primer/beta/octicon.rb
389
397
  - app/components/primer/beta/popover.css
@@ -463,6 +471,12 @@ files:
463
471
  - app/components/primer/open_project/grid_layout.html.erb
464
472
  - app/components/primer/open_project/grid_layout.rb
465
473
  - app/components/primer/open_project/grid_layout/area.rb
474
+ - app/components/primer/open_project/input_group.css
475
+ - app/components/primer/open_project/input_group.css.json
476
+ - app/components/primer/open_project/input_group.css.map
477
+ - app/components/primer/open_project/input_group.html.erb
478
+ - app/components/primer/open_project/input_group.pcss
479
+ - app/components/primer/open_project/input_group.rb
466
480
  - app/components/primer/open_project/page_header.css
467
481
  - app/components/primer/open_project/page_header.css.json
468
482
  - app/components/primer/open_project/page_header.css.map
@@ -521,6 +535,8 @@ files:
521
535
  - app/lib/primer/css/layout.css.json
522
536
  - app/lib/primer/css/utilities.css
523
537
  - app/lib/primer/css/utilities.css.json
538
+ - app/lib/primer/experimental_render_helpers.rb
539
+ - app/lib/primer/experimental_slot_helpers.rb
524
540
  - app/lib/primer/fetch_or_fallback_helper.rb
525
541
  - app/lib/primer/join_style_arguments_helper.rb
526
542
  - app/lib/primer/octicon/cache.rb
@@ -737,6 +753,7 @@ files:
737
753
  - previews/primer/alpha/dialog_preview/custom_header.html.erb
738
754
  - previews/primer/alpha/dialog_preview/nested_dialog.html.erb
739
755
  - previews/primer/alpha/dialog_preview/test.html.erb
756
+ - previews/primer/alpha/dialog_preview/with_auto_complete.html.erb
740
757
  - previews/primer/alpha/dialog_preview/with_footer.html.erb
741
758
  - previews/primer/alpha/dialog_preview/with_form.html.erb
742
759
  - previews/primer/alpha/dialog_preview/with_header.html.erb
@@ -795,6 +812,7 @@ files:
795
812
  - previews/primer/beta/avatar_stack_preview.rb
796
813
  - previews/primer/beta/base_button_preview.rb
797
814
  - previews/primer/beta/blankslate_preview.rb
815
+ - previews/primer/beta/blankslate_preview/inside_flex_container.html.erb
798
816
  - previews/primer/beta/border_box_preview.rb
799
817
  - previews/primer/beta/breadcrumbs_preview.rb
800
818
  - previews/primer/beta/button_group_preview.rb
@@ -860,6 +878,7 @@ files:
860
878
  - previews/primer/open_project/drag_handle_preview.rb
861
879
  - previews/primer/open_project/flex_layout_preview.rb
862
880
  - previews/primer/open_project/grid_layout_preview.rb
881
+ - previews/primer/open_project/input_group_preview.rb
863
882
  - previews/primer/open_project/page_header_preview.rb
864
883
  - previews/primer/open_project/page_header_preview/actions.html.erb
865
884
  - previews/primer/open_project/page_header_preview/context_bar_actions.html.erb