@openproject/primer-view-components 0.25.0-rc.67f125ca → 0.25.0-rc.c25e7d7e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.25.0-rc.67f125ca",
3
+ "version": "0.25.0-rc.c25e7d7e",
4
4
  "description": "ViewComponents of the Primer Design System for OpenProject",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -4959,7 +4959,40 @@
4959
4959
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header.rb",
4960
4960
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/default/",
4961
4961
  "parameters": [
4962
-
4962
+ {
4963
+ "name": "mobile_menu_label",
4964
+ "type": "String",
4965
+ "default": "`I18n.t(\"label_more\")`",
4966
+ "description": "The tooltip label of the mobile menu"
4967
+ },
4968
+ {
4969
+ "name": "system_arguments",
4970
+ "type": "Hash",
4971
+ "default": "N/A",
4972
+ "description": "[System arguments](/system-arguments)"
4973
+ }
4974
+ ]
4975
+ },
4976
+ {
4977
+ "component": "OpenProject::PageHeader::PageHeaderActionMenu",
4978
+ "status": "alpha",
4979
+ "a11y_reviewed": false,
4980
+ "short_name": "OpenProjectPageHeaderPageHeaderActionMenu",
4981
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header/page_header_action_menu.rb",
4982
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/page_header_action_menu/default/",
4983
+ "parameters": [
4984
+ {
4985
+ "name": "menu_arguments",
4986
+ "type": "Hash",
4987
+ "default": "`{}`",
4988
+ "description": "The arguments accepted by [ActionMenu](/components/alpha/actionmenu)."
4989
+ },
4990
+ {
4991
+ "name": "button_arguments",
4992
+ "type": "Hash",
4993
+ "default": "`{}`",
4994
+ "description": "The arguments accepted by [Button](/components/beta/button) or [IconButton](/components/beta/iconbutton), depending on the value of the `icon:` argument."
4995
+ }
4963
4996
  ]
4964
4997
  },
4965
4998
  {
@@ -121,6 +121,7 @@
121
121
  "Primer::OpenProject::GridLayout::Area": "",
122
122
  "Primer::OpenProject::InputGroup": "",
123
123
  "Primer::OpenProject::PageHeader": "",
124
+ "Primer::OpenProject::PageHeader::PageHeaderActionMenu": "",
124
125
  "Primer::Tooltip": "",
125
126
  "Primer::Truncate": ""
126
127
  }
@@ -1430,15 +1430,12 @@
1430
1430
  "chevron-left",
1431
1431
  "triangle-left"
1432
1432
  ],
1433
+ "DEFAULT_ACTION_SCHEME": "default",
1433
1434
  "DEFAULT_BACK_BUTTON_ICON": "arrow-left",
1434
1435
  "DEFAULT_BREADCRUMBS_DISPLAY": [
1435
1436
  "none",
1436
1437
  "flex"
1437
1438
  ],
1438
- "DEFAULT_CONTEXT_BAR_ACTIONS_DISPLAY": [
1439
- "flex",
1440
- "none"
1441
- ],
1442
1439
  "DEFAULT_HEADER_VARIANT": "medium",
1443
1440
  "DEFAULT_LEADING_ACTION_DISPLAY": [
1444
1441
  "none",
@@ -1460,7 +1457,14 @@
1460
1457
  "h4",
1461
1458
  "h5",
1462
1459
  "h6"
1463
- ]
1460
+ ],
1461
+ "MORE_MENU_DISPLAY": [
1462
+ "flex",
1463
+ "none"
1464
+ ],
1465
+ "PageHeaderActionMenu": "Primer::OpenProject::PageHeader::PageHeaderActionMenu"
1466
+ },
1467
+ "Primer::OpenProject::PageHeader::PageHeaderActionMenu": {
1464
1468
  },
1465
1469
  "Primer::Tooltip": {
1466
1470
  "ALIGN_DEFAULT": "default",
@@ -16372,7 +16372,18 @@
16372
16372
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header.rb",
16373
16373
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/default/",
16374
16374
  "parameters": [
16375
-
16375
+ {
16376
+ "name": "mobile_menu_label",
16377
+ "type": "String",
16378
+ "default": "`I18n.t(\"label_more\")`",
16379
+ "description": "The tooltip label of the mobile menu"
16380
+ },
16381
+ {
16382
+ "name": "system_arguments",
16383
+ "type": "Hash",
16384
+ "default": "N/A",
16385
+ "description": "{{link_to_system_arguments_docs}}"
16386
+ }
16376
16387
  ],
16377
16388
  "slots": [
16378
16389
  {
@@ -16412,18 +16423,6 @@
16412
16423
  }
16413
16424
  ]
16414
16425
  },
16415
- {
16416
- "name": "context_bar_actions",
16417
- "description": "Context Bar Actions\nBy default shown on narrow screens. Can be overridden with system_argument: display",
16418
- "parameters": [
16419
- {
16420
- "name": "system_arguments",
16421
- "type": "Hash",
16422
- "default": "N/A",
16423
- "description": "{{link_to_system_arguments_docs}}"
16424
- }
16425
- ]
16426
- },
16427
16426
  {
16428
16427
  "name": "leading_action",
16429
16428
  "description": "Optional leading action prepend the title\nBy default shown on wider screens. Can be overridden with system_argument: display",
@@ -16442,18 +16441,6 @@
16442
16441
  }
16443
16442
  ]
16444
16443
  },
16445
- {
16446
- "name": "parent_link",
16447
- "description": "Optional parent link in the context area\nBy default shown on narrow screens. Can be overridden with system_argument: display",
16448
- "parameters": [
16449
- {
16450
- "name": "system_arguments",
16451
- "type": "Hash",
16452
- "default": "N/A",
16453
- "description": "{{link_to_system_arguments_docs}}"
16454
- }
16455
- ]
16456
- },
16457
16444
  {
16458
16445
  "name": "breadcrumbs",
16459
16446
  "description": "Optional breadcrumbs above the title row\nBy default shown on wider screens. Can be overridden with system_argument: display",
@@ -16567,33 +16554,47 @@
16567
16554
  "color-contrast"
16568
16555
  ]
16569
16556
  }
16570
- },
16557
+ }
16558
+ ],
16559
+ "subcomponents": [
16560
+
16561
+ ]
16562
+ },
16563
+ {
16564
+ "fully_qualified_name": "Primer::OpenProject::PageHeader::PageHeaderActionMenu",
16565
+ "description": "A Helper class to create ActionMenus inside the PageHeader action slot",
16566
+ "accessibility_docs": null,
16567
+ "is_form_component": false,
16568
+ "is_published": true,
16569
+ "requires_js": false,
16570
+ "component": "OpenProject::PageHeader::PageHeaderActionMenu",
16571
+ "status": "alpha",
16572
+ "a11y_reviewed": false,
16573
+ "short_name": "OpenProjectPageHeaderPageHeaderActionMenu",
16574
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header/page_header_action_menu.rb",
16575
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/page_header_action_menu/default/",
16576
+ "parameters": [
16571
16577
  {
16572
- "preview_path": "primer/open_project/page_header/parent_link",
16573
- "name": "parent_link",
16574
- "snapshot": "false",
16575
- "skip_rules": {
16576
- "wont_fix": [
16577
- "region"
16578
- ],
16579
- "will_fix": [
16580
- "color-contrast"
16581
- ]
16582
- }
16578
+ "name": "menu_arguments",
16579
+ "type": "Hash",
16580
+ "default": "`{}`",
16581
+ "description": "The arguments accepted by {{#link_to_component}}Primer::Alpha::ActionMenu{{/link_to_component}}."
16583
16582
  },
16584
16583
  {
16585
- "preview_path": "primer/open_project/page_header/context_bar_actions",
16586
- "name": "context_bar_actions",
16587
- "snapshot": "false",
16588
- "skip_rules": {
16589
- "wont_fix": [
16590
- "region"
16591
- ],
16592
- "will_fix": [
16593
- "color-contrast"
16594
- ]
16595
- }
16584
+ "name": "button_arguments",
16585
+ "type": "Hash",
16586
+ "default": "`{}`",
16587
+ "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."
16596
16588
  }
16589
+ ],
16590
+ "slots": [
16591
+
16592
+ ],
16593
+ "methods": [
16594
+
16595
+ ],
16596
+ "previews": [
16597
+
16597
16598
  ],
16598
16599
  "subcomponents": [
16599
16600
 
@@ -5182,32 +5182,6 @@
5182
5182
  "color-contrast"
5183
5183
  ]
5184
5184
  }
5185
- },
5186
- {
5187
- "preview_path": "primer/open_project/page_header/parent_link",
5188
- "name": "parent_link",
5189
- "snapshot": "false",
5190
- "skip_rules": {
5191
- "wont_fix": [
5192
- "region"
5193
- ],
5194
- "will_fix": [
5195
- "color-contrast"
5196
- ]
5197
- }
5198
- },
5199
- {
5200
- "preview_path": "primer/open_project/page_header/context_bar_actions",
5201
- "name": "context_bar_actions",
5202
- "snapshot": "false",
5203
- "skip_rules": {
5204
- "wont_fix": [
5205
- "region"
5206
- ],
5207
- "will_fix": [
5208
- "color-contrast"
5209
- ]
5210
- }
5211
5185
  }
5212
5186
  ]
5213
5187
  },
@@ -121,6 +121,7 @@
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": "alpha",
124
125
  "Primer::Tooltip": "deprecated",
125
126
  "Primer::Truncate": "deprecated"
126
127
  }