openproject-primer_view_components 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -1
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +1 -1
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_bar/item.rb +3 -2
- data/app/components/primer/alpha/action_bar.rb +1 -5
- data/app/components/primer/alpha/overlay.css +1 -1
- data/app/components/primer/alpha/overlay.css.json +3 -1
- data/app/components/primer/alpha/overlay.css.map +1 -1
- data/app/components/primer/alpha/overlay.pcss +4 -0
- data/app/components/primer/alpha/tool_tip.js +28 -8
- data/app/components/primer/alpha/tool_tip.ts +27 -8
- data/app/components/primer/anchored_position.js +14 -5
- data/app/components/primer/anchored_position.ts +13 -4
- data/app/components/primer/beta/spinner.html.erb +1 -1
- data/app/components/primer/open_project/page_header.css +1 -1
- data/app/components/primer/open_project/page_header.css.json +1 -0
- data/app/components/primer/open_project/page_header.css.map +1 -1
- data/app/components/primer/open_project/page_header.pcss +6 -1
- data/app/components/primer/open_project/page_header.rb +13 -3
- data/lib/primer/view_components/linters/migrations/iconbutton_component.rb +36 -0
- data/lib/primer/view_components/version.rb +1 -1
- data/previews/primer/alpha/overlay_preview/in_an_action_menu.html.erb +13 -0
- data/previews/primer/alpha/overlay_preview.rb +5 -0
- data/previews/primer/open_project/page_header_preview.rb +13 -4
- data/static/arguments.json +11 -0
- data/static/audited_at.json +1 -0
- data/static/classes.json +3 -0
- data/static/constants.json +16 -0
- data/static/info_arch.json +129 -0
- data/static/previews.json +33 -7
- data/static/statuses.json +1 -0
- metadata +4 -2
data/static/info_arch.json
CHANGED
@@ -5910,6 +5910,19 @@
|
|
5910
5910
|
]
|
5911
5911
|
}
|
5912
5912
|
},
|
5913
|
+
{
|
5914
|
+
"preview_path": "primer/alpha/overlay/in_an_action_menu",
|
5915
|
+
"name": "in_an_action_menu",
|
5916
|
+
"snapshot": "false",
|
5917
|
+
"skip_rules": {
|
5918
|
+
"wont_fix": [
|
5919
|
+
"region"
|
5920
|
+
],
|
5921
|
+
"will_fix": [
|
5922
|
+
"color-contrast"
|
5923
|
+
]
|
5924
|
+
}
|
5925
|
+
},
|
5913
5926
|
{
|
5914
5927
|
"preview_path": "primer/alpha/overlay/dialog_with_header_footer",
|
5915
5928
|
"name": "dialog_with_header_footer",
|
@@ -14364,6 +14377,122 @@
|
|
14364
14377
|
|
14365
14378
|
]
|
14366
14379
|
},
|
14380
|
+
{
|
14381
|
+
"fully_qualified_name": "Primer::OpenProject::PageHeader",
|
14382
|
+
"description": "A ViewComponent PageHeader inspired by the primer react variant",
|
14383
|
+
"accessibility_docs": null,
|
14384
|
+
"is_form_component": false,
|
14385
|
+
"is_published": true,
|
14386
|
+
"requires_js": false,
|
14387
|
+
"component": "OpenProject::PageHeader",
|
14388
|
+
"status": "open_project",
|
14389
|
+
"a11y_reviewed": false,
|
14390
|
+
"short_name": "OpenProjectPageHeader",
|
14391
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/page_header.rb",
|
14392
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/page_header/default/",
|
14393
|
+
"parameters": [
|
14394
|
+
|
14395
|
+
],
|
14396
|
+
"slots": [
|
14397
|
+
{
|
14398
|
+
"name": "title",
|
14399
|
+
"description": "The title of the page header",
|
14400
|
+
"parameters": [
|
14401
|
+
{
|
14402
|
+
"name": "tag",
|
14403
|
+
"type": "Symbol",
|
14404
|
+
"default": "N/A",
|
14405
|
+
"description": "One of `:h1`, `:h2`, `:h3`, `:h4`, `:h5`, or `:h6`."
|
14406
|
+
},
|
14407
|
+
{
|
14408
|
+
"name": "system_arguments",
|
14409
|
+
"type": "Hash",
|
14410
|
+
"default": "N/A",
|
14411
|
+
"description": "{{link_to_system_arguments_docs}}"
|
14412
|
+
}
|
14413
|
+
]
|
14414
|
+
},
|
14415
|
+
{
|
14416
|
+
"name": "description",
|
14417
|
+
"description": "Optional description below the title row",
|
14418
|
+
"parameters": [
|
14419
|
+
|
14420
|
+
]
|
14421
|
+
},
|
14422
|
+
{
|
14423
|
+
"name": "actions",
|
14424
|
+
"description": "Actions",
|
14425
|
+
"parameters": [
|
14426
|
+
{
|
14427
|
+
"name": "system_arguments",
|
14428
|
+
"type": "Hash",
|
14429
|
+
"default": "N/A",
|
14430
|
+
"description": "{{link_to_system_arguments_docs}}"
|
14431
|
+
}
|
14432
|
+
]
|
14433
|
+
}
|
14434
|
+
],
|
14435
|
+
"methods": [
|
14436
|
+
|
14437
|
+
],
|
14438
|
+
"previews": [
|
14439
|
+
{
|
14440
|
+
"preview_path": "primer/open_project/page_header/default",
|
14441
|
+
"name": "default",
|
14442
|
+
"snapshot": "true",
|
14443
|
+
"skip_rules": {
|
14444
|
+
"wont_fix": [
|
14445
|
+
"region"
|
14446
|
+
],
|
14447
|
+
"will_fix": [
|
14448
|
+
"color-contrast"
|
14449
|
+
]
|
14450
|
+
}
|
14451
|
+
},
|
14452
|
+
{
|
14453
|
+
"preview_path": "primer/open_project/page_header/playground",
|
14454
|
+
"name": "playground",
|
14455
|
+
"snapshot": "false",
|
14456
|
+
"skip_rules": {
|
14457
|
+
"wont_fix": [
|
14458
|
+
"region"
|
14459
|
+
],
|
14460
|
+
"will_fix": [
|
14461
|
+
"color-contrast"
|
14462
|
+
]
|
14463
|
+
}
|
14464
|
+
},
|
14465
|
+
{
|
14466
|
+
"preview_path": "primer/open_project/page_header/large_title",
|
14467
|
+
"name": "large_title",
|
14468
|
+
"snapshot": "false",
|
14469
|
+
"skip_rules": {
|
14470
|
+
"wont_fix": [
|
14471
|
+
"region"
|
14472
|
+
],
|
14473
|
+
"will_fix": [
|
14474
|
+
"color-contrast"
|
14475
|
+
]
|
14476
|
+
}
|
14477
|
+
},
|
14478
|
+
{
|
14479
|
+
"preview_path": "primer/open_project/page_header/actions",
|
14480
|
+
"name": "actions",
|
14481
|
+
"snapshot": "false",
|
14482
|
+
"skip_rules": {
|
14483
|
+
"wont_fix": [
|
14484
|
+
"region"
|
14485
|
+
],
|
14486
|
+
"will_fix": [
|
14487
|
+
"color-contrast"
|
14488
|
+
]
|
14489
|
+
}
|
14490
|
+
}
|
14491
|
+
],
|
14492
|
+
"subcomponents": [
|
14493
|
+
|
14494
|
+
]
|
14495
|
+
},
|
14367
14496
|
{
|
14368
14497
|
"fully_qualified_name": "Primer::Tooltip",
|
14369
14498
|
"description": "`Tooltip` is a wrapper component that will apply a tooltip to the provided content.",
|
data/static/previews.json
CHANGED
@@ -4417,6 +4417,19 @@
|
|
4417
4417
|
]
|
4418
4418
|
}
|
4419
4419
|
},
|
4420
|
+
{
|
4421
|
+
"preview_path": "primer/alpha/overlay/in_an_action_menu",
|
4422
|
+
"name": "in_an_action_menu",
|
4423
|
+
"snapshot": "false",
|
4424
|
+
"skip_rules": {
|
4425
|
+
"wont_fix": [
|
4426
|
+
"region"
|
4427
|
+
],
|
4428
|
+
"will_fix": [
|
4429
|
+
"color-contrast"
|
4430
|
+
]
|
4431
|
+
}
|
4432
|
+
},
|
4420
4433
|
{
|
4421
4434
|
"preview_path": "primer/alpha/overlay/dialog_with_header_footer",
|
4422
4435
|
"name": "dialog_with_header_footer",
|
@@ -4434,14 +4447,27 @@
|
|
4434
4447
|
},
|
4435
4448
|
{
|
4436
4449
|
"name": "page_header",
|
4437
|
-
"component": "PageHeader",
|
4438
|
-
"status": "
|
4450
|
+
"component": "OpenProject::PageHeader",
|
4451
|
+
"status": "open_project",
|
4439
4452
|
"lookup_path": "primer/open_project/page_header",
|
4440
4453
|
"examples": [
|
4454
|
+
{
|
4455
|
+
"preview_path": "primer/open_project/page_header/default",
|
4456
|
+
"name": "default",
|
4457
|
+
"snapshot": "true",
|
4458
|
+
"skip_rules": {
|
4459
|
+
"wont_fix": [
|
4460
|
+
"region"
|
4461
|
+
],
|
4462
|
+
"will_fix": [
|
4463
|
+
"color-contrast"
|
4464
|
+
]
|
4465
|
+
}
|
4466
|
+
},
|
4441
4467
|
{
|
4442
4468
|
"preview_path": "primer/open_project/page_header/playground",
|
4443
4469
|
"name": "playground",
|
4444
|
-
"snapshot": "
|
4470
|
+
"snapshot": "false",
|
4445
4471
|
"skip_rules": {
|
4446
4472
|
"wont_fix": [
|
4447
4473
|
"region"
|
@@ -4452,9 +4478,9 @@
|
|
4452
4478
|
}
|
4453
4479
|
},
|
4454
4480
|
{
|
4455
|
-
"preview_path": "primer/open_project/page_header/
|
4456
|
-
"name": "
|
4457
|
-
"snapshot": "
|
4481
|
+
"preview_path": "primer/open_project/page_header/large_title",
|
4482
|
+
"name": "large_title",
|
4483
|
+
"snapshot": "false",
|
4458
4484
|
"skip_rules": {
|
4459
4485
|
"wont_fix": [
|
4460
4486
|
"region"
|
@@ -4467,7 +4493,7 @@
|
|
4467
4493
|
{
|
4468
4494
|
"preview_path": "primer/open_project/page_header/actions",
|
4469
4495
|
"name": "actions",
|
4470
|
-
"snapshot": "
|
4496
|
+
"snapshot": "false",
|
4471
4497
|
"skip_rules": {
|
4472
4498
|
"wont_fix": [
|
4473
4499
|
"region"
|
data/static/statuses.json
CHANGED
@@ -102,6 +102,7 @@
|
|
102
102
|
"Primer::IconButton": "deprecated",
|
103
103
|
"Primer::LayoutComponent": "deprecated",
|
104
104
|
"Primer::Navigation::TabComponent": "deprecated",
|
105
|
+
"Primer::OpenProject::PageHeader": "open_project",
|
105
106
|
"Primer::Tooltip": "deprecated",
|
106
107
|
"Primer::Truncate": "deprecated"
|
107
108
|
}
|
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.
|
4
|
+
version: 0.10.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-09-
|
12
|
+
date: 2023-09-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|
@@ -941,6 +941,7 @@ files:
|
|
941
941
|
- lib/primer/view_components/linters/helpers/rule_helpers.rb
|
942
942
|
- lib/primer/view_components/linters/label_component_migration_counter.rb
|
943
943
|
- lib/primer/view_components/linters/migrate_deprecated_flash_arguments.rb
|
944
|
+
- lib/primer/view_components/linters/migrations/iconbutton_component.rb
|
944
945
|
- lib/primer/view_components/linters/migrations/truncate_component.rb
|
945
946
|
- lib/primer/view_components/linters/severity_schema.rb
|
946
947
|
- lib/primer/view_components/linters/subhead_component_migration_counter.rb
|
@@ -1027,6 +1028,7 @@ files:
|
|
1027
1028
|
- previews/primer/alpha/nav_list_preview.rb
|
1028
1029
|
- previews/primer/alpha/nav_list_preview/trailing_action.html.erb
|
1029
1030
|
- previews/primer/alpha/overlay_preview.rb
|
1031
|
+
- previews/primer/alpha/overlay_preview/in_an_action_menu.html.erb
|
1030
1032
|
- previews/primer/alpha/overlay_preview/middle_of_page.html.erb
|
1031
1033
|
- previews/primer/alpha/overlay_preview/middle_of_page_with_relative_container.html.erb
|
1032
1034
|
- previews/primer/alpha/radio_button_group_preview.rb
|