@mediaradar/design-components 0.25.0 → 0.26.0
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/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3302,9 +3302,9 @@ function pageWindow(current, total) {
|
|
|
3302
3302
|
}
|
|
3303
3303
|
return out;
|
|
3304
3304
|
}
|
|
3305
|
-
function Pager({ page, totalPages, onPage, disabled = false }) {
|
|
3305
|
+
function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination" }) {
|
|
3306
3306
|
const btn = "flex h-8 min-w-8 items-center justify-center rounded-control px-2 text-[13px] transition-colors disabled:pointer-events-none disabled:opacity-30";
|
|
3307
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("
|
|
3307
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("nav", { "aria-label": label, className: "flex items-center gap-1", children: [
|
|
3308
3308
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
3309
3309
|
"button",
|
|
3310
3310
|
{
|