@meith/theme-midnight 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-midnight",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "A dark theme for Meith, built on the default theme's slots.",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "repository": {
@@ -20,8 +20,8 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@meith/theme-default": "^0.4.0",
24
- "@meith/theme-kit": "^0.4.0"
23
+ "@meith/theme-default": "^0.6.0",
24
+ "@meith/theme-kit": "^0.6.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^19.2.0"
@@ -1,7 +1,14 @@
1
1
  import type { PaginationModel } from '@meith/theme-kit'
2
2
 
3
- export function Pagination({ page, pageCount, pages, previousHref, nextHref }: PaginationModel) {
4
- if (pageCount <= 1) return null
3
+ export function Pagination({
4
+ page,
5
+ pageCount,
6
+ pageCountIsExact,
7
+ pages,
8
+ previousHref,
9
+ nextHref,
10
+ }: PaginationModel) {
11
+ if (pageCount <= 1 && previousHref === null && nextHref === null) return null
5
12
 
6
13
  return (
7
14
  <nav aria-label="Pagination" className="flex flex-wrap items-center gap-1 font-mono text-xs">
@@ -31,7 +38,7 @@ export function Pagination({ page, pageCount, pages, previousHref, nextHref }: P
31
38
  </a>
32
39
  )}
33
40
  <span className="ml-2 text-muted-foreground">
34
- page {page} of {pageCount}
41
+ page {pageCountIsExact ? `${page} of ${pageCount}` : page}
35
42
  </span>
36
43
  </nav>
37
44
  )