@oslokommune/punkt-react 20.3.0 → 20.4.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/CHANGELOG.md +13 -0
- package/dist/components/table/TableHeaderCell.d.ts +2 -2
- package/dist/components/table/TableHeaderCell.js +1 -1
- package/dist/punkt-react.cjs +1 -1
- package/package.json +3 -3
- package/src/components/table/Table.test.tsx +64 -0
- package/src/components/table/TableHeaderCell.tsx +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [20.4.0](https://github.com/oslokommune/punkt/compare/20.3.1...20.4.0) (2026-11-20)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
* Tabellfikser for mobilvisning, radoverskrifter og tittel (caption) (#3843).
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [20.3.1](https://github.com/oslokommune/punkt/compare/20.3.0...20.3.1) (2026-11-19)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
|
|
8
21
|
## [20.3.0](https://github.com/oslokommune/punkt/compare/20.2.4...20.3.0) (2026-11-19)
|
|
9
22
|
|
|
10
23
|
### Features
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface ITableHeaderCellProps extends
|
|
1
|
+
import { ReactNode, ThHTMLAttributes } from 'react';
|
|
2
|
+
interface ITableHeaderCellProps extends ThHTMLAttributes<HTMLTableCellElement> {
|
|
3
3
|
className?: string;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}
|
|
@@ -4,7 +4,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
4
4
|
// src/components/table/TableHeaderCell.tsx
|
|
5
5
|
var r = /* @__PURE__ */ e(t(), 1), i = ({ className: e, children: t, ...i }) => /* @__PURE__ */ n("th", {
|
|
6
6
|
className: (0, r.default)(e, "pkt-table__header-cell", {}),
|
|
7
|
-
role: "columnheader",
|
|
7
|
+
role: i.scope === "row" || i.scope === "rowgroup" ? "rowheader" : "columnheader",
|
|
8
8
|
...i,
|
|
9
9
|
children: t
|
|
10
10
|
});
|