openproject-primer_view_components 0.26.0 → 0.28.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/app/assets/javascripts/app/components/primer/open_project/zen_mode_button.d.ts +13 -0
  4. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  5. data/app/assets/javascripts/primer_view_components.js +1 -1
  6. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  7. data/app/components/primer/open_project/page_header/dialog.rb +38 -0
  8. data/app/components/primer/open_project/page_header/menu.rb +38 -0
  9. data/app/components/primer/open_project/page_header.rb +29 -28
  10. data/app/components/primer/open_project/zen_mode_button.d.ts +13 -0
  11. data/app/components/primer/open_project/zen_mode_button.html.erb +11 -0
  12. data/app/components/primer/open_project/zen_mode_button.js +45 -0
  13. data/app/components/primer/open_project/zen_mode_button.rb +26 -0
  14. data/app/components/primer/open_project/zen_mode_button.ts +42 -0
  15. data/app/components/primer/primer.d.ts +1 -0
  16. data/app/components/primer/primer.js +1 -0
  17. data/app/components/primer/primer.ts +1 -0
  18. data/lib/primer/view_components/version.rb +1 -1
  19. data/previews/primer/open_project/page_header_preview/actions.html.erb +0 -8
  20. data/previews/primer/open_project/page_header_preview.rb +64 -0
  21. data/previews/primer/open_project/zen_mode_button_preview.rb +22 -0
  22. data/static/arguments.json +42 -4
  23. data/static/audited_at.json +3 -1
  24. data/static/constants.json +9 -2
  25. data/static/info_arch.json +144 -6
  26. data/static/previews.json +73 -0
  27. data/static/statuses.json +3 -1
  28. metadata +11 -2
@@ -16605,6 +16605,45 @@
16605
16605
  ]
16606
16606
  }
16607
16607
  },
16608
+ {
16609
+ "preview_path": "primer/open_project/page_header/menu_actions",
16610
+ "name": "menu_actions",
16611
+ "snapshot": "false",
16612
+ "skip_rules": {
16613
+ "wont_fix": [
16614
+ "region"
16615
+ ],
16616
+ "will_fix": [
16617
+ "color-contrast"
16618
+ ]
16619
+ }
16620
+ },
16621
+ {
16622
+ "preview_path": "primer/open_project/page_header/dialog_actions",
16623
+ "name": "dialog_actions",
16624
+ "snapshot": "false",
16625
+ "skip_rules": {
16626
+ "wont_fix": [
16627
+ "region"
16628
+ ],
16629
+ "will_fix": [
16630
+ "color-contrast"
16631
+ ]
16632
+ }
16633
+ },
16634
+ {
16635
+ "preview_path": "primer/open_project/page_header/zen_mode_button_actions",
16636
+ "name": "zen_mode_button_actions",
16637
+ "snapshot": "false",
16638
+ "skip_rules": {
16639
+ "wont_fix": [
16640
+ "region"
16641
+ ],
16642
+ "will_fix": [
16643
+ "color-contrast"
16644
+ ]
16645
+ }
16646
+ },
16608
16647
  {
16609
16648
  "preview_path": "primer/open_project/page_header/leading_action",
16610
16649
  "name": "leading_action",
@@ -16637,18 +16676,58 @@
16637
16676
  ]
16638
16677
  },
16639
16678
  {
16640
- "fully_qualified_name": "Primer::OpenProject::PageHeader::PageHeaderActionMenu",
16641
- "description": "A Helper class to create ActionMenus inside the PageHeader action slot",
16679
+ "fully_qualified_name": "Primer::OpenProject::PageHeader::Dialog",
16680
+ "description": "A Helper class to create ActionMenus inside the PageHeader action slot\nDo not use standalone",
16642
16681
  "accessibility_docs": null,
16643
16682
  "is_form_component": false,
16644
16683
  "is_published": true,
16645
16684
  "requires_js": false,
16646
- "component": "OpenProject::PageHeader::PageHeaderActionMenu",
16685
+ "component": "OpenProject::PageHeader::Dialog",
16647
16686
  "status": "open_project",
16648
16687
  "a11y_reviewed": false,
16649
- "short_name": "OpenProjectPageHeaderPageHeaderActionMenu",
16650
- "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header/page_header_action_menu.rb",
16651
- "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/page_header_action_menu/default/",
16688
+ "short_name": "OpenProjectPageHeaderDialog",
16689
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header/dialog.rb",
16690
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/dialog/default/",
16691
+ "parameters": [
16692
+ {
16693
+ "name": "dialog_arguments",
16694
+ "type": "Hash",
16695
+ "default": "`{}`",
16696
+ "description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::Dialog{{/link_to_component}}."
16697
+ },
16698
+ {
16699
+ "name": "button_arguments",
16700
+ "type": "Hash",
16701
+ "default": "`{}`",
16702
+ "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."
16703
+ }
16704
+ ],
16705
+ "slots": [
16706
+
16707
+ ],
16708
+ "methods": [
16709
+
16710
+ ],
16711
+ "previews": [
16712
+
16713
+ ],
16714
+ "subcomponents": [
16715
+
16716
+ ]
16717
+ },
16718
+ {
16719
+ "fully_qualified_name": "Primer::OpenProject::PageHeader::Menu",
16720
+ "description": "A Helper class to create ActionMenus inside the PageHeader action slot\nIt should not be used standalone",
16721
+ "accessibility_docs": null,
16722
+ "is_form_component": false,
16723
+ "is_published": true,
16724
+ "requires_js": false,
16725
+ "component": "OpenProject::PageHeader::Menu",
16726
+ "status": "open_project",
16727
+ "a11y_reviewed": false,
16728
+ "short_name": "OpenProjectPageHeaderMenu",
16729
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header/menu.rb",
16730
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/menu/default/",
16652
16731
  "parameters": [
16653
16732
  {
16654
16733
  "name": "menu_arguments",
@@ -16676,6 +16755,65 @@
16676
16755
 
16677
16756
  ]
16678
16757
  },
16758
+ {
16759
+ "fully_qualified_name": "Primer::OpenProject::ZenModeButton",
16760
+ "description": "Add a general description of component here\nAdd additional usage considerations or best practices that may aid the user to use the component correctly.",
16761
+ "accessibility_docs": "Add any accessibility considerations",
16762
+ "is_form_component": false,
16763
+ "is_published": true,
16764
+ "requires_js": false,
16765
+ "component": "OpenProject::ZenModeButton",
16766
+ "status": "open_project",
16767
+ "a11y_reviewed": false,
16768
+ "short_name": "OpenProjectZenModeButton",
16769
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/zen_mode_button.rb",
16770
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/zen_mode_button/default/",
16771
+ "parameters": [
16772
+ {
16773
+ "name": "system_arguments",
16774
+ "type": "Hash",
16775
+ "default": "N/A",
16776
+ "description": "{{link_to_system_arguments_docs}}"
16777
+ }
16778
+ ],
16779
+ "slots": [
16780
+
16781
+ ],
16782
+ "methods": [
16783
+
16784
+ ],
16785
+ "previews": [
16786
+ {
16787
+ "preview_path": "primer/open_project/zen_mode_button/default",
16788
+ "name": "default",
16789
+ "snapshot": "true",
16790
+ "skip_rules": {
16791
+ "wont_fix": [
16792
+ "region"
16793
+ ],
16794
+ "will_fix": [
16795
+ "color-contrast"
16796
+ ]
16797
+ }
16798
+ },
16799
+ {
16800
+ "preview_path": "primer/open_project/zen_mode_button/playground",
16801
+ "name": "playground",
16802
+ "snapshot": "false",
16803
+ "skip_rules": {
16804
+ "wont_fix": [
16805
+ "region"
16806
+ ],
16807
+ "will_fix": [
16808
+ "color-contrast"
16809
+ ]
16810
+ }
16811
+ }
16812
+ ],
16813
+ "subcomponents": [
16814
+
16815
+ ]
16816
+ },
16679
16817
  {
16680
16818
  "fully_qualified_name": "Primer::Tooltip",
16681
16819
  "description": "`Tooltip` is a wrapper component that will apply a tooltip to the provided content.",
data/static/previews.json CHANGED
@@ -5196,6 +5196,45 @@
5196
5196
  ]
5197
5197
  }
5198
5198
  },
5199
+ {
5200
+ "preview_path": "primer/open_project/page_header/menu_actions",
5201
+ "name": "menu_actions",
5202
+ "snapshot": "false",
5203
+ "skip_rules": {
5204
+ "wont_fix": [
5205
+ "region"
5206
+ ],
5207
+ "will_fix": [
5208
+ "color-contrast"
5209
+ ]
5210
+ }
5211
+ },
5212
+ {
5213
+ "preview_path": "primer/open_project/page_header/dialog_actions",
5214
+ "name": "dialog_actions",
5215
+ "snapshot": "false",
5216
+ "skip_rules": {
5217
+ "wont_fix": [
5218
+ "region"
5219
+ ],
5220
+ "will_fix": [
5221
+ "color-contrast"
5222
+ ]
5223
+ }
5224
+ },
5225
+ {
5226
+ "preview_path": "primer/open_project/page_header/zen_mode_button_actions",
5227
+ "name": "zen_mode_button_actions",
5228
+ "snapshot": "false",
5229
+ "skip_rules": {
5230
+ "wont_fix": [
5231
+ "region"
5232
+ ],
5233
+ "will_fix": [
5234
+ "color-contrast"
5235
+ ]
5236
+ }
5237
+ },
5199
5238
  {
5200
5239
  "preview_path": "primer/open_project/page_header/leading_action",
5201
5240
  "name": "leading_action",
@@ -7456,5 +7495,39 @@
7456
7495
  }
7457
7496
  }
7458
7497
  ]
7498
+ },
7499
+ {
7500
+ "name": "zen_mode_button",
7501
+ "component": "OpenProject::ZenModeButton",
7502
+ "status": "open_project",
7503
+ "lookup_path": "primer/open_project/zen_mode_button",
7504
+ "examples": [
7505
+ {
7506
+ "preview_path": "primer/open_project/zen_mode_button/default",
7507
+ "name": "default",
7508
+ "snapshot": "true",
7509
+ "skip_rules": {
7510
+ "wont_fix": [
7511
+ "region"
7512
+ ],
7513
+ "will_fix": [
7514
+ "color-contrast"
7515
+ ]
7516
+ }
7517
+ },
7518
+ {
7519
+ "preview_path": "primer/open_project/zen_mode_button/playground",
7520
+ "name": "playground",
7521
+ "snapshot": "false",
7522
+ "skip_rules": {
7523
+ "wont_fix": [
7524
+ "region"
7525
+ ],
7526
+ "will_fix": [
7527
+ "color-contrast"
7528
+ ]
7529
+ }
7530
+ }
7531
+ ]
7459
7532
  }
7460
7533
  ]
data/static/statuses.json CHANGED
@@ -121,7 +121,9 @@
121
121
  "Primer::OpenProject::GridLayout::Area": "open_project",
122
122
  "Primer::OpenProject::InputGroup": "open_project",
123
123
  "Primer::OpenProject::PageHeader": "open_project",
124
- "Primer::OpenProject::PageHeader::PageHeaderActionMenu": "open_project",
124
+ "Primer::OpenProject::PageHeader::Dialog": "open_project",
125
+ "Primer::OpenProject::PageHeader::Menu": "open_project",
126
+ "Primer::OpenProject::ZenModeButton": "open_project",
125
127
  "Primer::Tooltip": "deprecated",
126
128
  "Primer::Truncate": "deprecated"
127
129
  }
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.26.0
4
+ version: 0.28.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-04-03 00:00:00.000000000 Z
12
+ date: 2024-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionview
@@ -103,6 +103,7 @@ files:
103
103
  - app/assets/javascripts/app/components/primer/dialog_helper.d.ts
104
104
  - app/assets/javascripts/app/components/primer/focus_group.d.ts
105
105
  - app/assets/javascripts/app/components/primer/open_project/page_header_element.d.ts
106
+ - app/assets/javascripts/app/components/primer/open_project/zen_mode_button.d.ts
106
107
  - app/assets/javascripts/app/components/primer/primer.d.ts
107
108
  - app/assets/javascripts/app/components/primer/scrollable_region.d.ts
108
109
  - app/assets/javascripts/lib/primer/forms/primer_multi_input.d.ts
@@ -493,9 +494,16 @@ files:
493
494
  - app/components/primer/open_project/page_header.html.erb
494
495
  - app/components/primer/open_project/page_header.pcss
495
496
  - app/components/primer/open_project/page_header.rb
497
+ - app/components/primer/open_project/page_header/dialog.rb
498
+ - app/components/primer/open_project/page_header/menu.rb
496
499
  - app/components/primer/open_project/page_header_element.d.ts
497
500
  - app/components/primer/open_project/page_header_element.js
498
501
  - app/components/primer/open_project/page_header_element.ts
502
+ - app/components/primer/open_project/zen_mode_button.d.ts
503
+ - app/components/primer/open_project/zen_mode_button.html.erb
504
+ - app/components/primer/open_project/zen_mode_button.js
505
+ - app/components/primer/open_project/zen_mode_button.rb
506
+ - app/components/primer/open_project/zen_mode_button.ts
499
507
  - app/components/primer/primer.d.ts
500
508
  - app/components/primer/primer.js
501
509
  - app/components/primer/primer.pcss
@@ -915,6 +923,7 @@ files:
915
923
  - previews/primer/open_project/page_header_preview.rb
916
924
  - previews/primer/open_project/page_header_preview/actions.html.erb
917
925
  - previews/primer/open_project/page_header_preview/playground.html.erb
926
+ - previews/primer/open_project/zen_mode_button_preview.rb
918
927
  - previews/primer/url_helpers.rb
919
928
  - static/arguments.json
920
929
  - static/assets/view-components.svg