@dt-dds/react-pagination 1.0.0-beta.48 → 1.0.0-beta.50

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/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @dt-ui/react-pagination
2
2
 
3
+ ## 1.0.0-beta.50
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: pass id to checkbox option
8
+ - Updated dependencies
9
+ - @dt-dds/react-select@1.0.0-beta.99
10
+
11
+ ## 1.0.0-beta.49
12
+
13
+ ### Patch Changes
14
+
15
+ - fix: dropdown documentation
16
+ - chore: update to ESLint 10
17
+ - chore: update to ESLint 9
18
+ - fix: default icon type in themes
19
+ - Updated dependencies
20
+ - Updated dependencies
21
+ - Updated dependencies
22
+ - Updated dependencies
23
+ - @dt-dds/react-select@1.0.0-beta.98
24
+ - @dt-dds/icons@1.0.0-beta.7
25
+ - @dt-dds/react-core@1.0.0-beta.60
26
+ - @dt-dds/react-tooltip@1.0.0-beta.70
27
+ - @dt-dds/react-icon@1.0.0-beta.64
28
+ - @dt-dds/react-typography@1.0.0-beta.51
29
+ - @dt-dds/themes@1.0.0-beta.15
30
+
3
31
  ## 1.0.0-beta.48
4
32
 
5
33
  ### Patch Changes
package/dist/index.js CHANGED
@@ -327,7 +327,10 @@ var Pagination = ({
327
327
  }) => {
328
328
  const LAST_PAGE = totalPages;
329
329
  const previousPageRef = (0, import_react.useRef)(currentPage);
330
- const paginationDirection = currentPage < previousPageRef.current ? "BACKWARD" : "FORWARD";
330
+ const paginationDirection = (
331
+ // eslint-disable-next-line react-hooks/refs
332
+ currentPage < previousPageRef.current ? "BACKWARD" : "FORWARD"
333
+ );
331
334
  (0, import_react.useEffect)(() => {
332
335
  if (currentPage < 2 || currentPage > LAST_PAGE - 1) {
333
336
  previousPageRef.current = currentPage;
package/dist/index.mjs CHANGED
@@ -286,7 +286,10 @@ var Pagination = ({
286
286
  }) => {
287
287
  const LAST_PAGE = totalPages;
288
288
  const previousPageRef = useRef(currentPage);
289
- const paginationDirection = currentPage < previousPageRef.current ? "BACKWARD" : "FORWARD";
289
+ const paginationDirection = (
290
+ // eslint-disable-next-line react-hooks/refs
291
+ currentPage < previousPageRef.current ? "BACKWARD" : "FORWARD"
292
+ );
290
293
  useEffect(() => {
291
294
  if (currentPage < 2 || currentPage > LAST_PAGE - 1) {
292
295
  previousPageRef.current = currentPage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-pagination",
3
- "version": "1.0.0-beta.48",
3
+ "version": "1.0.0-beta.50",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -20,13 +20,13 @@
20
20
  "test:update:snapshot": "jest -u"
21
21
  },
22
22
  "dependencies": {
23
- "@dt-dds/react-core": "1.0.0-beta.59",
24
- "@dt-dds/react-typography": "1.0.0-beta.50",
25
- "@dt-dds/react-icon": "1.0.0-beta.63",
26
- "@dt-dds/icons": "1.0.0-beta.6",
27
- "@dt-dds/react-select": "1.0.0-beta.97",
28
- "@dt-dds/react-tooltip": "1.0.0-beta.69",
29
- "@dt-dds/themes": "1.0.0-beta.14"
23
+ "@dt-dds/react-core": "1.0.0-beta.60",
24
+ "@dt-dds/react-typography": "1.0.0-beta.51",
25
+ "@dt-dds/react-icon": "1.0.0-beta.64",
26
+ "@dt-dds/icons": "1.0.0-beta.7",
27
+ "@dt-dds/react-select": "1.0.0-beta.99",
28
+ "@dt-dds/react-tooltip": "1.0.0-beta.70",
29
+ "@dt-dds/themes": "1.0.0-beta.15"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@babel/core": "^7.22.9",