@bonprix-ds/react-pagination 1.1.10 → 1.1.12
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/dist/src/Pagination.js
CHANGED
|
@@ -6,7 +6,7 @@ import "react";
|
|
|
6
6
|
import { tv as r } from "tailwind-variants";
|
|
7
7
|
import { useBreakpointUp as i } from "@bonprix-ds/utils";
|
|
8
8
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
9
|
-
|
|
9
|
+
// src/Pagination.tsx
|
|
10
10
|
var s = r({
|
|
11
11
|
base: "preflight flex items-center justify-center gap-2",
|
|
12
12
|
slots: {
|
|
@@ -54,7 +54,6 @@ var s = r({
|
|
|
54
54
|
className: "typography-button inline-block w-8 text-center text-clr-on-bg-high",
|
|
55
55
|
children: "…"
|
|
56
56
|
});
|
|
57
|
-
//#endregion
|
|
58
57
|
export { c as default };
|
|
59
58
|
|
|
60
59
|
//# sourceMappingURL=Pagination.js.map
|
|
@@ -2,7 +2,7 @@ import "react";
|
|
|
2
2
|
import e from "@bonprix-ds/react-icon-button";
|
|
3
3
|
import { ArrowLeftIcon as t, ArrowRightIcon as n } from "@bonprix-ds/react-icon/icons";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/PaginationArrow.tsx
|
|
6
6
|
var i = ({ position: i = "left", href: a, onClick: o, disabled: s = !1 }) => s ? /* @__PURE__ */ r("div", { className: "h-8 w-8" }) : /* @__PURE__ */ r(e, {
|
|
7
7
|
component: "a",
|
|
8
8
|
href: a,
|
|
@@ -12,7 +12,6 @@ var i = ({ position: i = "left", href: a, onClick: o, disabled: s = !1 }) => s ?
|
|
|
12
12
|
label: i === "left" ? "vorherige Seite" : "nächste Seite",
|
|
13
13
|
icon: r(i === "left" ? t : n, {})
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { i as default };
|
|
17
16
|
|
|
18
17
|
//# sourceMappingURL=PaginationArrow.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { tv as e } from "tailwind-variants";
|
|
3
3
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/PaginationItem.tsx
|
|
5
5
|
var r = e({
|
|
6
6
|
base: "preflight typography-button group relative inline-block w-8 text-center align-middle leading-8 text-clr-on-bg-high",
|
|
7
7
|
slots: { indicator: "absolute bottom-0 start-0 w-full bg-clr-primary" },
|
|
@@ -27,7 +27,6 @@ var r = e({
|
|
|
27
27
|
children: [e, /* @__PURE__ */ t("span", { className: d() })]
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { i as default };
|
|
32
31
|
|
|
33
32
|
//# sourceMappingURL=PaginationItem.js.map
|
package/dist/src/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/utils.ts
|
|
2
2
|
var e = (e, t, n = 7) => {
|
|
3
3
|
let r = [];
|
|
4
4
|
if (t <= n) {
|
|
@@ -27,7 +27,6 @@ var e = (e, t, n = 7) => {
|
|
|
27
27
|
];
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { e as calculateItems };
|
|
32
31
|
|
|
33
32
|
//# sourceMappingURL=utils.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonprix-ds/react-pagination",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "Pagination component, implemented in React, for the Bonprix Design System.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"provenance": true
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@bonprix-ds/react-icon": "1.3.
|
|
36
|
-
"@bonprix-ds/react-icon-button": "1.2.
|
|
37
|
-
"@bonprix-ds/utils": "0.
|
|
35
|
+
"@bonprix-ds/react-icon": "1.3.3",
|
|
36
|
+
"@bonprix-ds/react-icon-button": "1.2.6",
|
|
37
|
+
"@bonprix-ds/utils": "0.6.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
+
"@bonprix-ds/vite-config": "0.0.0",
|
|
40
41
|
"@types/react": "19.3.0",
|
|
41
|
-
"vite": "8.3.
|
|
42
|
-
"vitest": "5.0.5"
|
|
43
|
-
"@bonprix-ds/vite-config": "0.0.0"
|
|
42
|
+
"vite": "8.3.5",
|
|
43
|
+
"vitest": "5.0.5"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^19",
|