@mediaradar/design-components 0.25.0 → 0.26.1
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +4 -4
- 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
|
{
|
|
@@ -3328,7 +3328,7 @@ function Pager({ page, totalPages, onPage, disabled = false }) {
|
|
|
3328
3328
|
btn,
|
|
3329
3329
|
p === page ? "bg-brand-primaryAction font-semibold text-brand-onprimary" : "text-text-secondary hover:bg-subtle hover:text-text-primary"
|
|
3330
3330
|
),
|
|
3331
|
-
children: p
|
|
3331
|
+
children: p.toLocaleString()
|
|
3332
3332
|
},
|
|
3333
3333
|
p
|
|
3334
3334
|
)
|
|
@@ -3572,7 +3572,7 @@ function TablePagination({
|
|
|
3572
3572
|
off,
|
|
3573
3573
|
p === current ? "bg-brand-primaryAction font-semibold text-brand-onprimary" : "text-text-secondary hover:bg-subtle hover:text-text-primary"
|
|
3574
3574
|
),
|
|
3575
|
-
children: p
|
|
3575
|
+
children: p.toLocaleString()
|
|
3576
3576
|
},
|
|
3577
3577
|
p
|
|
3578
3578
|
)
|