@chumsinc/sortable-tables 2.0.7 → 2.0.8

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/CHANGELOG.md CHANGED
@@ -7,7 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
9
9
 
10
- #### [v2.0.7](https://github.com/ChumsInc/sortable-tables/compare/v2.0.6...v2.0.7)
10
+ #### [v2.0.8](https://github.com/ChumsInc/sortable-tables/compare/v2.0.7...v2.0.8)
11
+
12
+ > 2025-03-13
13
+
14
+
15
+
16
+
17
+ ### Commits
18
+
19
+ - [`ad120cd`](https://github.com/ChumsInc/sortable-tables/commit/ad120cd7f521d194613370aa91befd24582aef5d) fix: allow React.ReactNode for rowsPerPage label
20
+
21
+ #### [v2.0.7](https://github.com/ChumsInc/sortable-tables/compare/v2.0.6...v2.0.7) - 2025-02-27
11
22
 
12
23
  > 2025-02-27
13
24
 
package/dist/types.d.ts CHANGED
@@ -87,7 +87,7 @@ export interface SortableTableTHProps<T = unknown> extends Omit<DataTableTHProps
87
87
  export interface RowsPerPageProps extends Omit<HTMLAttributes<HTMLSelectElement>, 'onChange'> {
88
88
  value: number;
89
89
  pageValues?: number[];
90
- label?: string;
90
+ label?: string | React.ReactNode;
91
91
  size?: UISize;
92
92
  className?: string;
93
93
  onChange: (value: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chumsinc/sortable-tables",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "main": "./dist/index.js",
5
5
  "source": "./src/index.tsx",
6
6
  "types": "./dist/index.d.ts",
package/src/types.ts CHANGED
@@ -108,7 +108,7 @@ export interface SortableTableTHProps<T = unknown> extends Omit<DataTableTHProps
108
108
  export interface RowsPerPageProps extends Omit<HTMLAttributes<HTMLSelectElement>, 'onChange'> {
109
109
  value: number;
110
110
  pageValues?: number[];
111
- label?: string;
111
+ label?: string|React.ReactNode;
112
112
  size?: UISize;
113
113
  className?: string;
114
114
  onChange: (value: number) => void;
@@ -56,6 +56,7 @@ export default function TestTable() {
56
56
  rowsPerPage={rowsPerPage}
57
57
  rowsPerPageProps={{
58
58
  onChange: rowsPerPageChangeHandler,
59
+ label: <span className="bi-images" />,
59
60
  pageValues: [5, 10, 15, 25, 50, 100]
60
61
  }}
61
62
  showFirst={list.length > rowsPerPage}