@meith/theme-clubhouse 0.4.0 → 0.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/theme-clubhouse",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "A sports club theme for Meith — GAA, soccer, basketball — painted from the club's own two colours.",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "repository": {
@@ -20,9 +20,9 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@meith/theme-kit": "^0.4.0",
24
- "@meith/theme-default": "^0.4.0",
25
- "@meith/ui": "^0.4.0"
23
+ "@meith/theme-default": "^0.6.0",
24
+ "@meith/ui": "^0.6.0",
25
+ "@meith/theme-kit": "^0.6.0"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^19.2.0"
@@ -3,7 +3,14 @@ import type { PaginationModel } from '@meith/theme-kit'
3
3
 
4
4
  import { BUTTON, MICRO, NUMERIC } from '../shared'
5
5
 
6
- export function Pagination({ page, pageCount, pages, previousHref, nextHref }: PaginationModel) {
6
+ export function Pagination({
7
+ page,
8
+ pageCount,
9
+ pageCountIsExact,
10
+ pages,
11
+ previousHref,
12
+ nextHref,
13
+ }: PaginationModel) {
7
14
  if (pageCount <= 1 && previousHref === null && nextHref === null) return null
8
15
 
9
16
  const step = cn(BUTTON, 'min-w-20 justify-center border border-border bg-card hover:bg-accent')
@@ -53,9 +60,8 @@ export function Pagination({ page, pageCount, pages, previousHref, nextHref }: P
53
60
  })}
54
61
 
55
62
  <li className={`ml-2 whitespace-nowrap ${MICRO}`}>
56
- <span className="sr-only">Page </span>
57
63
  <span className={NUMERIC}>
58
- {page} of {pageCount}
64
+ {pageCountIsExact ? `Page ${page} of ${pageCount}` : `Page ${page}`}
59
65
  </span>
60
66
  </li>
61
67
  </ol>