@openproject/primer-view-components 0.83.1 → 0.84.0

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.
@@ -0,0 +1 @@
1
+ .Page{align-items:center;border-radius:var(--borderRadius-medium,.375rem);color:var(--fgColor-default);cursor:pointer;display:inline-flex;height:var(--base-size-32);justify-content:center;margin-right:var(--base-size-4);min-width:var(--base-size-32);padding:var(--base-size-8) var(--base-size-6);transition:background-color .2s cubic-bezier(.3,0,.5,1);vertical-align:middle;white-space:nowrap}.Page[rel=next]>svg,.Page[rel=prev]>svg{height:var(--base-size-16);width:var(--base-size-16)}.Page[rel=prev]>svg{margin-inline-end:var(--base-size-4)}.Page[rel=next]>svg{margin-inline-start:var(--base-size-4)}.Page:last-child{margin-right:0}.Page:focus,.Page:hover{background-color:var(--control-transparent-bgColor-hover);outline:0;-webkit-text-decoration:none;text-decoration:none;transition-duration:.1s}.Page:focus-visible{outline:2px solid var(--bgColor-accent-emphasis)}.Page:active{border-color:var(--borderColor-muted)}.Page[rel=next],.Page[rel=prev]{color:var(--fgColor-accent)}.Page[aria-current],.Page[aria-current]:hover{background-color:var(--bgColor-accent-emphasis);border-color:#0000;color:var(--fgColor-onEmphasis)}.Page[aria-current]:focus-visible{box-shadow:inset 0 0 0 var(--base-size-2) var(--fgColor-onEmphasis);outline:2px solid var(--bgColor-accent-emphasis)}.Page[aria-hidden],.Page[aria-hidden]:hover,.Page[role=presentation],.Page[role=presentation]:hover{background-color:initial;color:var(--fgColor-disabled);cursor:default}.PaginationContainer{margin:var(--base-size-16) 0;text-align:center}@media (max-width:543.98px){.Page:not([rel=prev]):not([rel=next]){display:none}}
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "open_project/pagination",
3
+ "selectors": [
4
+ ".Page",
5
+ ".Page[rel=next]>svg",
6
+ ".Page[rel=prev]>svg",
7
+ ".Page:last-child",
8
+ ".Page:focus",
9
+ ".Page:hover",
10
+ ".Page:focus-visible",
11
+ ".Page:active",
12
+ ".Page[rel=next]",
13
+ ".Page[rel=prev]",
14
+ ".Page[aria-current]",
15
+ ".Page[aria-current]:hover",
16
+ ".Page[aria-current]:focus-visible",
17
+ ".Page[aria-hidden]",
18
+ ".Page[aria-hidden]:hover",
19
+ ".Page[role=presentation]",
20
+ ".Page[role=presentation]:hover",
21
+ ".PaginationContainer",
22
+ ".Page:not([rel=prev]):not([rel=next])"
23
+ ]
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openproject/primer-view-components",
3
- "version": "0.83.1",
3
+ "version": "0.84.0",
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",
@@ -6462,6 +6462,15 @@
6462
6462
  }
6463
6463
  ]
6464
6464
  },
6465
+ {
6466
+ "component": "OpenProject::Pagination",
6467
+ "status": "open_project",
6468
+ "a11y_reviewed": false,
6469
+ "short_name": "OpenProjectPagination",
6470
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/pagination.rb",
6471
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/pagination/default/",
6472
+ "parameters": []
6473
+ },
6465
6474
  {
6466
6475
  "component": "OpenProject::SidePanel",
6467
6476
  "status": "open_project",
@@ -165,6 +165,7 @@
165
165
  "Primer::OpenProject::PageHeader::Dialog": "",
166
166
  "Primer::OpenProject::PageHeader::Menu": "",
167
167
  "Primer::OpenProject::PageHeader::Title": "",
168
+ "Primer::OpenProject::Pagination": "",
168
169
  "Primer::OpenProject::SidePanel": "",
169
170
  "Primer::OpenProject::SidePanel::Section": "",
170
171
  "Primer::OpenProject::SubHeader": "",
@@ -497,6 +497,9 @@
497
497
  "Overlay-headerFilter": [
498
498
  "Primer::Alpha::Dialog"
499
499
  ],
500
+ "Page": [
501
+ "Primer::OpenProject::Pagination"
502
+ ],
500
503
  "PageHeader": [
501
504
  "Primer::OpenProject::PageHeader"
502
505
  ],
@@ -539,6 +542,9 @@
539
542
  "PageHeader-titleBar": [
540
543
  "Primer::OpenProject::PageHeader"
541
544
  ],
545
+ "PaginationContainer": [
546
+ "Primer::OpenProject::Pagination"
547
+ ],
542
548
  "Popover": [
543
549
  "Primer::Beta::Popover"
544
550
  ],
@@ -1939,6 +1939,16 @@
1939
1939
  "h6"
1940
1940
  ]
1941
1941
  },
1942
+ "Primer::OpenProject::Pagination": {
1943
+ "DEFAULT_MARGIN_PAGE_COUNT": 1,
1944
+ "DEFAULT_SURROUNDING_PAGE_COUNT": 2,
1945
+ "GeneratedSlotMethods": "Primer::OpenProject::Pagination::GeneratedSlotMethods",
1946
+ "PAGE_TYPE__BREAK": "break",
1947
+ "PAGE_TYPE__NEXT": "next",
1948
+ "PAGE_TYPE__NUM": "num",
1949
+ "PAGE_TYPE__PREV": "prev",
1950
+ "PageData": "Primer::OpenProject::Pagination::PageData"
1951
+ },
1942
1952
  "Primer::OpenProject::SidePanel": {
1943
1953
  "GeneratedSlotMethods": "Primer::OpenProject::SidePanel::GeneratedSlotMethods",
1944
1954
  "Section": "Primer::OpenProject::SidePanel::Section"
@@ -21440,6 +21440,89 @@
21440
21440
  "previews": [],
21441
21441
  "subcomponents": []
21442
21442
  },
21443
+ {
21444
+ "fully_qualified_name": "Primer::OpenProject::Pagination",
21445
+ "description": "",
21446
+ "accessibility_docs": null,
21447
+ "is_form_component": false,
21448
+ "is_published": true,
21449
+ "requires_js": false,
21450
+ "component": "OpenProject::Pagination",
21451
+ "status": "open_project",
21452
+ "a11y_reviewed": false,
21453
+ "short_name": "OpenProjectPagination",
21454
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/pagination.rb",
21455
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/pagination/default/",
21456
+ "parameters": [],
21457
+ "slots": [],
21458
+ "methods": [
21459
+ {
21460
+ "name": "page_count",
21461
+ "description": "Returns the value of attribute page_count.",
21462
+ "parameters": [],
21463
+ "return_types": []
21464
+ },
21465
+ {
21466
+ "name": "current_page",
21467
+ "description": "Returns the value of attribute current_page.",
21468
+ "parameters": [],
21469
+ "return_types": []
21470
+ },
21471
+ {
21472
+ "name": "href_builder",
21473
+ "description": "Returns the value of attribute href_builder.",
21474
+ "parameters": [],
21475
+ "return_types": []
21476
+ },
21477
+ {
21478
+ "name": "margin_page_count",
21479
+ "description": "Returns the value of attribute margin_page_count.",
21480
+ "parameters": [],
21481
+ "return_types": []
21482
+ },
21483
+ {
21484
+ "name": "show_pages",
21485
+ "description": "Returns the value of attribute show_pages.",
21486
+ "parameters": [],
21487
+ "return_types": []
21488
+ },
21489
+ {
21490
+ "name": "surrounding_page_count",
21491
+ "description": "Returns the value of attribute surrounding_page_count.",
21492
+ "parameters": [],
21493
+ "return_types": []
21494
+ }
21495
+ ],
21496
+ "previews": [
21497
+ {
21498
+ "preview_path": "primer/open_project/pagination/playground",
21499
+ "name": "playground",
21500
+ "snapshot": "false",
21501
+ "skip_rules": {
21502
+ "wont_fix": [
21503
+ "region"
21504
+ ],
21505
+ "will_fix": [
21506
+ "color-contrast"
21507
+ ]
21508
+ }
21509
+ },
21510
+ {
21511
+ "preview_path": "primer/open_project/pagination/default",
21512
+ "name": "default",
21513
+ "snapshot": "true",
21514
+ "skip_rules": {
21515
+ "wont_fix": [
21516
+ "region"
21517
+ ],
21518
+ "will_fix": [
21519
+ "color-contrast"
21520
+ ]
21521
+ }
21522
+ }
21523
+ ],
21524
+ "subcomponents": []
21525
+ },
21443
21526
  {
21444
21527
  "fully_qualified_name": "Primer::OpenProject::SidePanel",
21445
21528
  "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.",
@@ -6574,6 +6574,40 @@
6574
6574
  }
6575
6575
  ]
6576
6576
  },
6577
+ {
6578
+ "name": "pagination",
6579
+ "component": "OpenProject::Pagination",
6580
+ "status": "open_project",
6581
+ "lookup_path": "primer/open_project/pagination",
6582
+ "examples": [
6583
+ {
6584
+ "preview_path": "primer/open_project/pagination/playground",
6585
+ "name": "playground",
6586
+ "snapshot": "false",
6587
+ "skip_rules": {
6588
+ "wont_fix": [
6589
+ "region"
6590
+ ],
6591
+ "will_fix": [
6592
+ "color-contrast"
6593
+ ]
6594
+ }
6595
+ },
6596
+ {
6597
+ "preview_path": "primer/open_project/pagination/default",
6598
+ "name": "default",
6599
+ "snapshot": "true",
6600
+ "skip_rules": {
6601
+ "wont_fix": [
6602
+ "region"
6603
+ ],
6604
+ "will_fix": [
6605
+ "color-contrast"
6606
+ ]
6607
+ }
6608
+ }
6609
+ ]
6610
+ },
6577
6611
  {
6578
6612
  "name": "popover",
6579
6613
  "component": "Popover",
@@ -165,6 +165,7 @@
165
165
  "Primer::OpenProject::PageHeader::Dialog": "open_project",
166
166
  "Primer::OpenProject::PageHeader::Menu": "open_project",
167
167
  "Primer::OpenProject::PageHeader::Title": "open_project",
168
+ "Primer::OpenProject::Pagination": "open_project",
168
169
  "Primer::OpenProject::SidePanel": "open_project",
169
170
  "Primer::OpenProject::SidePanel::Section": "open_project",
170
171
  "Primer::OpenProject::SubHeader": "open_project",