@oslokommune/punkt-react 19.12.3 → 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,22 @@ 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
+
16
+ ## [19.13.0](https://github.com/oslokommune/punkt/compare/19.12.3...19.13.0) (2026-10-14)
17
+
18
+ ### Features
19
+ * typesikre select (#3727).
20
+
21
+ ---
22
+
23
+
8
24
  ## [19.12.0](https://github.com/oslokommune/punkt/compare/19.11.0...19.12.0) (2026-10-12)
9
25
 
10
26
  ### 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,29 +1,14 @@
1
1
  import { ReactNode, SelectHTMLAttributes } from 'react';
2
- import { IPktStringsProps } from '../../shared-strings';
2
+ import { IPktSelectBase } from '../../shared-types';
3
3
  export type { IPktSelectOption, TSelectOption } from '../../shared-types/select';
4
- export interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement>, IPktStringsProps<'forms' | 'validation'> {
5
- ariaDescribedby?: string;
6
- ariaLabelledby?: string;
4
+ export interface IPktSelectProps extends Omit<IPktSelectBase, 'helptext' | 'helptextDropdown' | 'errorMessage' | 'value' | 'options'>, Omit<SelectHTMLAttributes<HTMLSelectElement>, keyof IPktSelectBase> {
7
5
  children?: ReactNode | ReactNode[];
8
- disabled?: boolean;
9
6
  errorMessage?: string | ReactNode | ReactNode[];
10
- hasError?: boolean;
11
7
  helptext?: string | ReactNode | ReactNode[];
12
8
  helptextDropdown?: string | ReactNode | ReactNode[];
13
- helptextDropdownButton?: string;
14
9
  id: string;
15
- inline?: boolean;
16
- fullwidth?: boolean;
17
10
  label: string;
18
- name?: string;
19
- optionalTag?: boolean;
20
- optionalText?: string;
21
- requiredTag?: boolean;
22
- requiredText?: string;
23
- tagText?: string | null;
24
- useWrapper?: boolean;
25
- hasFieldset?: boolean;
26
- inputSize?: 'small' | 'medium' | 'xsmall';
11
+ value?: SelectHTMLAttributes<HTMLSelectElement>['value'];
27
12
  /** @deprecated Var aldri implementert — bruk children med `<option>`-elementer. */
28
13
  options?: never;
29
14
  }
@@ -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;