react-router-pagination 3.3.2 → 3.3.3

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": "react-router-pagination",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "A React Router Pagination component",
5
5
  "main": "./src/index.mjs",
6
6
  "type": "module",
package/src/index.cjs CHANGED
@@ -9,4 +9,8 @@ require('@babel/register')({
9
9
  ]
10
10
  })
11
11
 
12
- module.exports = require('./index.tsx')
12
+ const {
13
+ default: Pagination
14
+ } = require('./index.tsx')
15
+
16
+ module.exports = Pagination
@@ -9,4 +9,14 @@ require('@babel/register')({
9
9
  ]
10
10
  })
11
11
 
12
- module.exports = require('./index.tsx')
12
+ const {
13
+ toInteger,
14
+ calculateTotalPages,
15
+ calculatePageNumber,
16
+ Centered
17
+ } = require('./index.tsx')
18
+
19
+ module.exports.toInteger = toInteger
20
+ module.exports.calculateTotalPages = calculateTotalPages
21
+ module.exports.calculatePageNumber = calculatePageNumber
22
+ module.exports.Centered = Centered
@@ -1,2 +1,6 @@
1
- export { default } from './index.cjs'
2
- export * from './index.cjs'
1
+ export {
2
+ toInteger,
3
+ calculateTotalPages,
4
+ calculatePageNumber,
5
+ Centered
6
+ } from './index.cjs'
@@ -6,7 +6,9 @@ import {
6
6
  calculatePageNumber
7
7
  } from '#pagination/pagination/common'
8
8
 
9
- import AbstractPagination from '../../super/pagination/component.tsx'
9
+ import {
10
+ AbstractPagination
11
+ } from '#pagination/super/pagination/component' // '../../super/pagination/component.tsx'
10
12
 
11
13
  const error = debug('react-router-pagination/pagination/component')
12
14
 
@@ -9,4 +9,12 @@ require('@babel/register')({
9
9
  ]
10
10
  })
11
11
 
12
- module.exports = require('./index.mts')
12
+ const {
13
+ toInteger,
14
+ calculateTotalPages,
15
+ calculatePageNumber
16
+ } = require('./index.mts')
17
+
18
+ module.exports.toInteger = toInteger
19
+ module.exports.calculateTotalPages = calculateTotalPages
20
+ module.exports.calculatePageNumber = calculatePageNumber
@@ -1,2 +1,5 @@
1
- export { default } from './index.cjs'
2
- export * from './index.cjs'
1
+ export {
2
+ toInteger,
3
+ calculateTotalPages,
4
+ calculatePageNumber
5
+ } from './index.cjs'
@@ -9,4 +9,14 @@ require('@babel/register')({
9
9
  ]
10
10
  })
11
11
 
12
- module.exports = require('./component.tsx')
12
+ const {
13
+ toInteger,
14
+ calculateTotalPages,
15
+ calculatePageNumber,
16
+ Pagination
17
+ } = require('./component.tsx')
18
+
19
+ module.exports.toInteger = toInteger
20
+ module.exports.calculateTotalPages = calculateTotalPages
21
+ module.exports.calculatePageNumber = calculatePageNumber
22
+ module.exports.Pagination = Pagination
@@ -1,2 +1,6 @@
1
- export { default } from './component.cjs'
2
- export * from './component.cjs'
1
+ export {
2
+ toInteger,
3
+ calculateTotalPages,
4
+ calculatePageNumber,
5
+ Pagination
6
+ } from './component.cjs'
@@ -7,7 +7,9 @@ import {
7
7
  calculatePageNumber
8
8
  } from '#pagination/pagination/common'
9
9
 
10
- import AbstractPagination from '../super/pagination/component.tsx'
10
+ import {
11
+ AbstractPagination
12
+ } from '#pagination/super/pagination/component' // '../super/pagination/component.tsx'
11
13
 
12
14
  export {
13
15
  toInteger,
@@ -9,4 +9,16 @@ require('@babel/register')({
9
9
  ]
10
10
  })
11
11
 
12
- module.exports = require('./index.tsx')
12
+ const {
13
+ calculateTotalPages,
14
+ calculatePageNumber,
15
+ Pagination,
16
+ Centered,
17
+ Standard
18
+ } = require('./index.tsx')
19
+
20
+ module.exports.calculateTotalPages = calculateTotalPages
21
+ module.exports.calculatePageNumber = calculatePageNumber
22
+ module.exports.Pagination = Pagination
23
+ module.exports.Centered = Centered
24
+ module.exports.Standard = Standard
@@ -1,2 +1,7 @@
1
- export { default } from './index.cjs'
2
- export * from './index.cjs'
1
+ export {
2
+ calculateTotalPages,
3
+ calculatePageNumber,
4
+ Pagination,
5
+ Centered,
6
+ Standard
7
+ } from './index.cjs'
@@ -9,4 +9,14 @@ require('@babel/register')({
9
9
  ]
10
10
  })
11
11
 
12
- module.exports = require('./index.tsx')
12
+ const {
13
+ toInteger,
14
+ calculateTotalPages,
15
+ calculatePageNumber,
16
+ Standard
17
+ } = require('./index.tsx')
18
+
19
+ module.exports.toInteger = toInteger
20
+ module.exports.calculateTotalPages = calculateTotalPages
21
+ module.exports.calculatePageNumber = calculatePageNumber
22
+ module.exports.Standard = Standard
@@ -1,2 +1,6 @@
1
- export { default } from './index.cjs'
2
- export * from './index.cjs'
1
+ export {
2
+ toInteger,
3
+ calculateTotalPages,
4
+ calculatePageNumber,
5
+ Standard
6
+ } from './index.cjs'
@@ -6,7 +6,9 @@ import {
6
6
  calculatePageNumber
7
7
  } from '#pagination/pagination/common'
8
8
 
9
- import AbstractPagination from '../../super/pagination/component.tsx'
9
+ import {
10
+ AbstractPagination
11
+ } from '#pagination/super/pagination/component' // '../../super/pagination/component.tsx'
10
12
 
11
13
  const error = debug('react-router-pagination/pagination/component')
12
14
 
@@ -29,7 +29,7 @@ export type AbstractPaginationProps = ReactRouterPaginationTypes.AbstractPaginat
29
29
 
30
30
  export type AbstractPaginationState = ReactRouterPaginationTypes.AbstractPaginationState
31
31
 
32
- export default abstract class AbstractPagination<P, S> extends Component<P & AbstractPaginationProps, S & AbstractPaginationState> { // eslint-disable-line @typescript-eslint/no-unnecessary-type-parameters -- Base
32
+ export abstract class AbstractPagination<P, S> extends Component<P & AbstractPaginationProps, S & AbstractPaginationState> { // eslint-disable-line @typescript-eslint/no-unnecessary-type-parameters -- Base
33
33
  static defaultProps = {
34
34
  onClick () {},
35
35
  pageNumber: 0,