@snapdragonsnursery/react-components 1.1.19 → 1.1.21

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": "@snapdragonsnursery/react-components",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -34,10 +34,14 @@ const PaginationLink = React.forwardRef(
34
34
  ({ className, isActive, size = "icon", ...props }, ref) => (
35
35
  <Button
36
36
  aria-current={isActive ? "page" : undefined}
37
- variant={isActive ? "outline" : "ghost"}
37
+ variant={isActive ? "default" : "outline"}
38
38
  size={size}
39
39
  ref={ref}
40
- className={cn("cursor-pointer", className)}
40
+ className={cn(
41
+ "h-9 w-9 p-0",
42
+ isActive && "bg-primary text-primary-foreground hover:bg-primary/90",
43
+ className
44
+ )}
41
45
  {...props}
42
46
  />
43
47
  )
@@ -47,13 +51,13 @@ PaginationLink.displayName = "PaginationLink";
47
51
  const PaginationPrevious = React.forwardRef(({ className, ...props }, ref) => (
48
52
  <PaginationLink
49
53
  aria-label="Go to previous page"
50
- size="default"
54
+ size="icon"
51
55
  ref={ref}
52
- className={cn("gap-1 pl-2.5", className)}
56
+ className={cn("gap-1", className)}
53
57
  {...props}
54
58
  >
55
59
  <ChevronLeftIcon className="h-4 w-4" />
56
- <span>Previous</span>
60
+ <span className="sr-only">Previous</span>
57
61
  </PaginationLink>
58
62
  ));
59
63
  PaginationPrevious.displayName = "PaginationPrevious";
@@ -61,13 +65,13 @@ PaginationPrevious.displayName = "PaginationPrevious";
61
65
  const PaginationNext = React.forwardRef(({ className, ...props }, ref) => (
62
66
  <PaginationLink
63
67
  aria-label="Go to next page"
64
- size="default"
68
+ size="icon"
65
69
  ref={ref}
66
- className={cn("gap-1 pr-2.5", className)}
70
+ className={cn("gap-1", className)}
67
71
  {...props}
68
72
  >
69
- <span>Next</span>
70
73
  <ChevronRightIcon className="h-4 w-4" />
74
+ <span className="sr-only">Next</span>
71
75
  </PaginationLink>
72
76
  ));
73
77
  PaginationNext.displayName = "PaginationNext";