@otwdesign/admin-ui 1.12.0 → 1.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otwdesign/admin-ui",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "React components for OTW CMS admin screens: list tables, postboxes, forms, notices and buttons.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "OTW SRL",
@@ -34,7 +34,7 @@
34
34
  "node": ">=22.18"
35
35
  },
36
36
  "dependencies": {
37
- "@otwdesign/sdk": "1.12.0"
37
+ "@otwdesign/sdk": "1.13.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "^19.0.0"
@@ -213,11 +213,14 @@ export function TableNav({
213
213
  page = 1,
214
214
  pages = 1,
215
215
  pageUrl,
216
+ more = false,
216
217
  children,
217
218
  }: {
218
219
  total: number
219
220
  /** Singular and plural, as in `['item', 'items']`. */
220
221
  noun: readonly [string, string]
222
+ /** There are more than `total`: the count stopped there. Shown as "More than 10,000 items". */
223
+ more?: boolean
221
224
  page?: number
222
225
  pages?: number
223
226
  pageUrl?(page: number): string
@@ -239,7 +242,8 @@ export function TableNav({
239
242
  {children && <div className="alignleft actions">{children}</div>}
240
243
  <div className={cx('tablenav-pages', pages <= 1 && 'one-page')}>
241
244
  <span className="displaying-num">
242
- {total} {total === 1 ? noun[0] : noun[1]}
245
+ {more ? `More than ${total.toLocaleString('en-US')}` : total}{' '}
246
+ {total === 1 && !more ? noun[0] : noun[1]}
243
247
  </span>
244
248
  {pages > 1 && (
245
249
  <span className="pagination-links">