agroptima-design-system 0.31.2-beta.1 → 0.31.2-beta.2

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": "agroptima-design-system",
3
- "version": "0.31.2-beta.1",
3
+ "version": "0.31.2-beta.2",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -1,4 +1,5 @@
1
1
  import './Pagination.scss'
2
+ import type { LinkProps } from 'next/link'
2
3
  import React from 'react'
3
4
  import { classNames } from '../../utils/classNames'
4
5
  import type { ButtonProps } from '../Button'
@@ -14,7 +15,7 @@ export interface CustomProps {
14
15
  variant?: Variant
15
16
  }
16
17
 
17
- export type PaginationNumberProps = CustomProps & ButtonProps
18
+ export type PaginationNumberProps = CustomProps & ButtonProps & LinkProps
18
19
 
19
20
  export function PaginationNumber({
20
21
  label,
@@ -24,6 +25,7 @@ export function PaginationNumber({
24
25
  className,
25
26
  disabled,
26
27
  selected = false,
28
+ prefetch = false,
27
29
  ...props
28
30
  }: PaginationNumberProps): React.JSX.Element {
29
31
  const cssClasses = classNames('pagination-button', variant, className, {
@@ -38,6 +40,7 @@ export function PaginationNumber({
38
40
  href={disabled ? '#' : href}
39
41
  className={cssClasses}
40
42
  aria-current={selected}
43
+ prefetch={prefetch}
41
44
  {...props}
42
45
  />
43
46
  )