openproject-primer_view_components 0.31.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/app/assets/javascripts/app/components/primer/open_project/sub_header_element.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/assets/styles/primer_view_components.css +1 -1
  8. data/app/assets/styles/primer_view_components.css.map +1 -1
  9. data/app/components/primer/open_project/page_header.rb +1 -1
  10. data/app/components/primer/open_project/sub_header.css +1 -0
  11. data/app/components/primer/open_project/sub_header.css.json +11 -0
  12. data/app/components/primer/open_project/sub_header.css.map +1 -0
  13. data/app/components/primer/open_project/sub_header.html.erb +25 -0
  14. data/app/components/primer/open_project/sub_header.pcss +43 -0
  15. data/app/components/primer/open_project/sub_header.rb +141 -0
  16. data/app/components/primer/open_project/sub_header_element.d.ts +13 -0
  17. data/app/components/primer/open_project/sub_header_element.js +44 -0
  18. data/app/components/primer/open_project/sub_header_element.ts +45 -0
  19. data/app/components/primer/primer.d.ts +1 -0
  20. data/app/components/primer/primer.js +1 -0
  21. data/app/components/primer/primer.pcss +1 -0
  22. data/app/components/primer/primer.ts +1 -0
  23. data/lib/primer/view_components/version.rb +1 -1
  24. data/previews/primer/open_project/sub_header_preview/action_menu_buttons.html.erb +15 -0
  25. data/previews/primer/open_project/sub_header_preview/bottom_pane.html.erb +12 -0
  26. data/previews/primer/open_project/sub_header_preview/button_group.html.erb +11 -0
  27. data/previews/primer/open_project/sub_header_preview/custom_filter_button.html.erb +8 -0
  28. data/previews/primer/open_project/sub_header_preview/dialog_buttons.html.erb +12 -0
  29. data/previews/primer/open_project/sub_header_preview.rb +88 -0
  30. data/static/arguments.json +16 -0
  31. data/static/audited_at.json +1 -0
  32. data/static/classes.json +18 -0
  33. data/static/constants.json +4 -0
  34. data/static/info_arch.json +171 -0
  35. data/static/previews.json +112 -0
  36. data/static/statuses.json +1 -0
  37. metadata +18 -2
@@ -16951,6 +16951,177 @@
16951
16951
 
16952
16952
  ]
16953
16953
  },
16954
+ {
16955
+ "fully_qualified_name": "Primer::OpenProject::SubHeader",
16956
+ "description": "The SubHeader contains specific actions to modify the page content below, e.g a filter button or a create button\nIt should not be used stand alone, but in combination with a PageHeader, either as a direct sibling or as part of a tab content",
16957
+ "accessibility_docs": null,
16958
+ "is_form_component": false,
16959
+ "is_published": true,
16960
+ "requires_js": false,
16961
+ "component": "OpenProject::SubHeader",
16962
+ "status": "open_project",
16963
+ "a11y_reviewed": false,
16964
+ "short_name": "OpenProjectSubHeader",
16965
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/sub_header.rb",
16966
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/sub_header/default/",
16967
+ "parameters": [
16968
+ {
16969
+ "name": "system_arguments",
16970
+ "type": "Hash",
16971
+ "default": "N/A",
16972
+ "description": "{{link_to_system_arguments_docs}}"
16973
+ }
16974
+ ],
16975
+ "slots": [
16976
+ {
16977
+ "name": "actions",
16978
+ "description": "A button or custom content that will render on the right-hand side of the component.\n\nTo render a button, call the `with_button` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}.\n\nTo render custom content, call the `with_button_component` method and pass a block that returns HTML.",
16979
+ "parameters": [
16980
+
16981
+ ]
16982
+ },
16983
+ {
16984
+ "name": "filter_input",
16985
+ "description": null,
16986
+ "parameters": [
16987
+
16988
+ ]
16989
+ },
16990
+ {
16991
+ "name": "filter_button",
16992
+ "description": "A button or custom content that will render on the left-hand side of the component, next to the filter input.\n\nTo render a button, call the `with_filter_button` method, which accepts the arguments accepted by {{#link_to_component}}Primer::Beta::Button{{/link_to_component}}.\n\nTo render custom content, call the `with_filter_component` method and pass a block that returns HTML.",
16993
+ "parameters": [
16994
+
16995
+ ]
16996
+ },
16997
+ {
16998
+ "name": "text",
16999
+ "description": null,
17000
+ "parameters": [
17001
+
17002
+ ]
17003
+ },
17004
+ {
17005
+ "name": "bottom_pane_component",
17006
+ "description": "A slot for a generic component which will be shown in a second row below the rest, spanning the whole width",
17007
+ "parameters": [
17008
+
17009
+ ]
17010
+ }
17011
+ ],
17012
+ "methods": [
17013
+
17014
+ ],
17015
+ "previews": [
17016
+ {
17017
+ "preview_path": "primer/open_project/sub_header/playground",
17018
+ "name": "playground",
17019
+ "snapshot": "false",
17020
+ "skip_rules": {
17021
+ "wont_fix": [
17022
+ "region"
17023
+ ],
17024
+ "will_fix": [
17025
+ "color-contrast"
17026
+ ]
17027
+ }
17028
+ },
17029
+ {
17030
+ "preview_path": "primer/open_project/sub_header/default",
17031
+ "name": "default",
17032
+ "snapshot": "false",
17033
+ "skip_rules": {
17034
+ "wont_fix": [
17035
+ "region"
17036
+ ],
17037
+ "will_fix": [
17038
+ "color-contrast"
17039
+ ]
17040
+ }
17041
+ },
17042
+ {
17043
+ "preview_path": "primer/open_project/sub_header/action_menu_buttons",
17044
+ "name": "action_menu_buttons",
17045
+ "snapshot": "false",
17046
+ "skip_rules": {
17047
+ "wont_fix": [
17048
+ "region"
17049
+ ],
17050
+ "will_fix": [
17051
+ "color-contrast"
17052
+ ]
17053
+ }
17054
+ },
17055
+ {
17056
+ "preview_path": "primer/open_project/sub_header/dialog_buttons",
17057
+ "name": "dialog_buttons",
17058
+ "snapshot": "false",
17059
+ "skip_rules": {
17060
+ "wont_fix": [
17061
+ "region"
17062
+ ],
17063
+ "will_fix": [
17064
+ "color-contrast"
17065
+ ]
17066
+ }
17067
+ },
17068
+ {
17069
+ "preview_path": "primer/open_project/sub_header/button_group",
17070
+ "name": "button_group",
17071
+ "snapshot": "false",
17072
+ "skip_rules": {
17073
+ "wont_fix": [
17074
+ "region"
17075
+ ],
17076
+ "will_fix": [
17077
+ "color-contrast"
17078
+ ]
17079
+ }
17080
+ },
17081
+ {
17082
+ "preview_path": "primer/open_project/sub_header/custom_filter_button",
17083
+ "name": "custom_filter_button",
17084
+ "snapshot": "false",
17085
+ "skip_rules": {
17086
+ "wont_fix": [
17087
+ "region"
17088
+ ],
17089
+ "will_fix": [
17090
+ "color-contrast"
17091
+ ]
17092
+ }
17093
+ },
17094
+ {
17095
+ "preview_path": "primer/open_project/sub_header/bottom_pane",
17096
+ "name": "bottom_pane",
17097
+ "snapshot": "false",
17098
+ "skip_rules": {
17099
+ "wont_fix": [
17100
+ "region"
17101
+ ],
17102
+ "will_fix": [
17103
+ "color-contrast"
17104
+ ]
17105
+ }
17106
+ },
17107
+ {
17108
+ "preview_path": "primer/open_project/sub_header/text",
17109
+ "name": "text",
17110
+ "snapshot": "false",
17111
+ "skip_rules": {
17112
+ "wont_fix": [
17113
+ "region"
17114
+ ],
17115
+ "will_fix": [
17116
+ "color-contrast"
17117
+ ]
17118
+ }
17119
+ }
17120
+ ],
17121
+ "subcomponents": [
17122
+
17123
+ ]
17124
+ },
16954
17125
  {
16955
17126
  "fully_qualified_name": "Primer::OpenProject::ZenModeButton",
16956
17127
  "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.",
data/static/previews.json CHANGED
@@ -6310,6 +6310,118 @@
6310
6310
  }
6311
6311
  ]
6312
6312
  },
6313
+ {
6314
+ "name": "sub_header",
6315
+ "component": "OpenProject::SubHeader",
6316
+ "status": "open_project",
6317
+ "lookup_path": "primer/open_project/sub_header",
6318
+ "examples": [
6319
+ {
6320
+ "preview_path": "primer/open_project/sub_header/playground",
6321
+ "name": "playground",
6322
+ "snapshot": "false",
6323
+ "skip_rules": {
6324
+ "wont_fix": [
6325
+ "region"
6326
+ ],
6327
+ "will_fix": [
6328
+ "color-contrast"
6329
+ ]
6330
+ }
6331
+ },
6332
+ {
6333
+ "preview_path": "primer/open_project/sub_header/default",
6334
+ "name": "default",
6335
+ "snapshot": "false",
6336
+ "skip_rules": {
6337
+ "wont_fix": [
6338
+ "region"
6339
+ ],
6340
+ "will_fix": [
6341
+ "color-contrast"
6342
+ ]
6343
+ }
6344
+ },
6345
+ {
6346
+ "preview_path": "primer/open_project/sub_header/action_menu_buttons",
6347
+ "name": "action_menu_buttons",
6348
+ "snapshot": "false",
6349
+ "skip_rules": {
6350
+ "wont_fix": [
6351
+ "region"
6352
+ ],
6353
+ "will_fix": [
6354
+ "color-contrast"
6355
+ ]
6356
+ }
6357
+ },
6358
+ {
6359
+ "preview_path": "primer/open_project/sub_header/dialog_buttons",
6360
+ "name": "dialog_buttons",
6361
+ "snapshot": "false",
6362
+ "skip_rules": {
6363
+ "wont_fix": [
6364
+ "region"
6365
+ ],
6366
+ "will_fix": [
6367
+ "color-contrast"
6368
+ ]
6369
+ }
6370
+ },
6371
+ {
6372
+ "preview_path": "primer/open_project/sub_header/button_group",
6373
+ "name": "button_group",
6374
+ "snapshot": "false",
6375
+ "skip_rules": {
6376
+ "wont_fix": [
6377
+ "region"
6378
+ ],
6379
+ "will_fix": [
6380
+ "color-contrast"
6381
+ ]
6382
+ }
6383
+ },
6384
+ {
6385
+ "preview_path": "primer/open_project/sub_header/custom_filter_button",
6386
+ "name": "custom_filter_button",
6387
+ "snapshot": "false",
6388
+ "skip_rules": {
6389
+ "wont_fix": [
6390
+ "region"
6391
+ ],
6392
+ "will_fix": [
6393
+ "color-contrast"
6394
+ ]
6395
+ }
6396
+ },
6397
+ {
6398
+ "preview_path": "primer/open_project/sub_header/bottom_pane",
6399
+ "name": "bottom_pane",
6400
+ "snapshot": "false",
6401
+ "skip_rules": {
6402
+ "wont_fix": [
6403
+ "region"
6404
+ ],
6405
+ "will_fix": [
6406
+ "color-contrast"
6407
+ ]
6408
+ }
6409
+ },
6410
+ {
6411
+ "preview_path": "primer/open_project/sub_header/text",
6412
+ "name": "text",
6413
+ "snapshot": "false",
6414
+ "skip_rules": {
6415
+ "wont_fix": [
6416
+ "region"
6417
+ ],
6418
+ "will_fix": [
6419
+ "color-contrast"
6420
+ ]
6421
+ }
6422
+ }
6423
+ ]
6424
+ },
6313
6425
  {
6314
6426
  "name": "subhead",
6315
6427
  "component": "Subhead",
data/static/statuses.json CHANGED
@@ -123,6 +123,7 @@
123
123
  "Primer::OpenProject::PageHeader": "open_project",
124
124
  "Primer::OpenProject::PageHeader::Dialog": "open_project",
125
125
  "Primer::OpenProject::PageHeader::Menu": "open_project",
126
+ "Primer::OpenProject::SubHeader": "open_project",
126
127
  "Primer::OpenProject::ZenModeButton": "open_project",
127
128
  "Primer::Tooltip": "deprecated",
128
129
  "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.31.0
4
+ version: 0.32.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-05-23 00:00:00.000000000 Z
12
+ date: 2024-05-31 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/sub_header_element.d.ts
106
107
  - app/assets/javascripts/app/components/primer/open_project/zen_mode_button.d.ts
107
108
  - app/assets/javascripts/app/components/primer/primer.d.ts
108
109
  - app/assets/javascripts/app/components/primer/scrollable_region.d.ts
@@ -499,6 +500,15 @@ files:
499
500
  - app/components/primer/open_project/page_header_element.d.ts
500
501
  - app/components/primer/open_project/page_header_element.js
501
502
  - app/components/primer/open_project/page_header_element.ts
503
+ - app/components/primer/open_project/sub_header.css
504
+ - app/components/primer/open_project/sub_header.css.json
505
+ - app/components/primer/open_project/sub_header.css.map
506
+ - app/components/primer/open_project/sub_header.html.erb
507
+ - app/components/primer/open_project/sub_header.pcss
508
+ - app/components/primer/open_project/sub_header.rb
509
+ - app/components/primer/open_project/sub_header_element.d.ts
510
+ - app/components/primer/open_project/sub_header_element.js
511
+ - app/components/primer/open_project/sub_header_element.ts
502
512
  - app/components/primer/open_project/zen_mode_button.d.ts
503
513
  - app/components/primer/open_project/zen_mode_button.html.erb
504
514
  - app/components/primer/open_project/zen_mode_button.js
@@ -929,6 +939,12 @@ files:
929
939
  - previews/primer/open_project/page_header_preview.rb
930
940
  - previews/primer/open_project/page_header_preview/actions.html.erb
931
941
  - previews/primer/open_project/page_header_preview/playground.html.erb
942
+ - previews/primer/open_project/sub_header_preview.rb
943
+ - previews/primer/open_project/sub_header_preview/action_menu_buttons.html.erb
944
+ - previews/primer/open_project/sub_header_preview/bottom_pane.html.erb
945
+ - previews/primer/open_project/sub_header_preview/button_group.html.erb
946
+ - previews/primer/open_project/sub_header_preview/custom_filter_button.html.erb
947
+ - previews/primer/open_project/sub_header_preview/dialog_buttons.html.erb
932
948
  - previews/primer/open_project/zen_mode_button_preview.rb
933
949
  - previews/primer/url_helpers.rb
934
950
  - static/arguments.json