@oslokommune/punkt-react 19.13.0 → 19.14.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 CHANGED
@@ -5,6 +5,14 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [19.14.0](https://github.com/oslokommune/punkt/compare/19.13.0...19.14.0) (2026-10-15)
9
+
10
+ ### Features
11
+ * Typesikre table (#3729).
12
+
13
+ ---
14
+
15
+
8
16
  ## [19.13.0](https://github.com/oslokommune/punkt/compare/19.12.3...19.13.0) (2026-10-14)
9
17
 
10
18
  ### Features
@@ -46,6 +46,9 @@ export { PktTableDataCell } from './table/TableDataCell';
46
46
  export { PktTableHeader } from './table/TableHeader';
47
47
  export { PktTableHeaderCell } from './table/TableHeaderCell';
48
48
  export { PktTableRow } from './table/TableRow';
49
+ export type { IPktTable } from './table/Table';
50
+ export type { IPktTableDataCell } from './table/TableDataCell';
51
+ export type { TPktTableSkin } from '../shared-types';
49
52
  export { PktTabs } from './tabs/Tabs';
50
53
  export { PktTabItem } from './tabs/TabItem';
51
54
  export { PktTag } from './tag/Tag';
@@ -1,11 +1,8 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- export type TTableSkin = 'basic' | 'zebra-blue';
3
- interface ITableProps extends HTMLAttributes<HTMLTableElement> {
4
- compact?: boolean;
5
- skin?: 'basic' | 'zebra-blue';
6
- responsiveView?: boolean;
7
- className?: string;
2
+ import { IPktTableBase, TPktTableSkin } from '../../shared-types';
3
+ /** @deprecated Bruk `TPktTableSkin`. */
4
+ export type TTableSkin = TPktTableSkin;
5
+ export interface IPktTable extends IPktTableBase, HTMLAttributes<HTMLTableElement> {
8
6
  children: ReactNode;
9
7
  }
10
- export declare const PktTable: ({ className, compact, skin, responsiveView, children, ...props }: ITableProps) => import("react").JSX.Element;
11
- export {};
8
+ export declare const PktTable: ({ className, compact, skin, responsiveView, children, ...props }: IPktTable) => import("react").JSX.Element;
@@ -1,8 +1,6 @@
1
1
  import { HTMLAttributes, ReactNode } from 'react';
2
- interface ITableDataCellProps extends HTMLAttributes<HTMLTableCellElement> {
3
- className?: string;
2
+ import { IPktTableDataCellBase } from '../../shared-types';
3
+ export interface IPktTableDataCell extends IPktTableDataCellBase, HTMLAttributes<HTMLTableCellElement> {
4
4
  children?: ReactNode;
5
- dataLabel?: string;
6
5
  }
7
- export declare const PktTableDataCell: ({ children, className, dataLabel, ...props }: ITableDataCellProps) => import("react").JSX.Element;
8
- export {};
6
+ export declare const PktTableDataCell: ({ children, className, dataLabel, ...props }: IPktTableDataCell) => import("react").JSX.Element;