@mediaradar/design-components 0.26.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.d.cts CHANGED
@@ -1895,7 +1895,8 @@ interface PagerProps {
1895
1895
  * @pattern Pager
1896
1896
  * @description Compact prev/next pager with a windowed page-number list —
1897
1897
  * shows every page up to 7 total, otherwise 1 … current±1 … last with
1898
- * ellipsis gaps. Shared by My Exports and Account Matcher. `disabled`
1898
+ * ellipsis gaps, each number formatted for the locale ("14,433"). Shared by
1899
+ * My Exports and Account Matcher. `disabled`
1899
1900
  * disables every control while the list loads.
1900
1901
  * @use in a card or a compact list, with the range ("Showing 1–10 of 48") on
1901
1902
  * the left if the reader needs it.
@@ -2086,7 +2087,8 @@ declare function Tag({ children, className }: TagProps): react.JSX.Element;
2086
2087
  * page — disabled controls stay in the layout so the row never reflows.
2087
2088
  * Changing the per-page count reports it and leaves the host to reset to page
2088
2089
  * 1. With one page of results the pager still renders, so the bar's height
2089
- * and the range readout don't come and go as filters narrow. `disabled`
2090
+ * and the range readout don't come and go as filters narrow. Page numbers
2091
+ * are formatted for the locale ("14,433"), like the range readout. `disabled`
2090
2092
  * disables every control (select and page buttons) while the table loads,
2091
2093
  * so a click can't request a second page on top of the first; the range
2092
2094
  * readout stays.
package/dist/index.d.ts CHANGED
@@ -1895,7 +1895,8 @@ interface PagerProps {
1895
1895
  * @pattern Pager
1896
1896
  * @description Compact prev/next pager with a windowed page-number list —
1897
1897
  * shows every page up to 7 total, otherwise 1 … current±1 … last with
1898
- * ellipsis gaps. Shared by My Exports and Account Matcher. `disabled`
1898
+ * ellipsis gaps, each number formatted for the locale ("14,433"). Shared by
1899
+ * My Exports and Account Matcher. `disabled`
1899
1900
  * disables every control while the list loads.
1900
1901
  * @use in a card or a compact list, with the range ("Showing 1–10 of 48") on
1901
1902
  * the left if the reader needs it.
@@ -2086,7 +2087,8 @@ declare function Tag({ children, className }: TagProps): react.JSX.Element;
2086
2087
  * page — disabled controls stay in the layout so the row never reflows.
2087
2088
  * Changing the per-page count reports it and leaves the host to reset to page
2088
2089
  * 1. With one page of results the pager still renders, so the bar's height
2089
- * and the range readout don't come and go as filters narrow. `disabled`
2090
+ * and the range readout don't come and go as filters narrow. Page numbers
2091
+ * are formatted for the locale ("14,433"), like the range readout. `disabled`
2090
2092
  * disables every control (select and page buttons) while the table loads,
2091
2093
  * so a click can't request a second page on top of the first; the range
2092
2094
  * readout stays.
package/dist/index.js CHANGED
@@ -3243,7 +3243,7 @@ function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination
3243
3243
  btn,
3244
3244
  p === page ? "bg-brand-primaryAction font-semibold text-brand-onprimary" : "text-text-secondary hover:bg-subtle hover:text-text-primary"
3245
3245
  ),
3246
- children: p
3246
+ children: p.toLocaleString()
3247
3247
  },
3248
3248
  p
3249
3249
  )
@@ -3487,7 +3487,7 @@ function TablePagination({
3487
3487
  off,
3488
3488
  p === current ? "bg-brand-primaryAction font-semibold text-brand-onprimary" : "text-text-secondary hover:bg-subtle hover:text-text-primary"
3489
3489
  ),
3490
- children: p
3490
+ children: p.toLocaleString()
3491
3491
  },
3492
3492
  p
3493
3493
  )