@oslokommune/punkt-react 19.9.1 → 19.10.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.10.0](https://github.com/oslokommune/punkt/compare/19.9.1...19.10.0) (2026-10-07)
9
+
10
+ ### Features
11
+ * migrate radioButton (#3698).
12
+
13
+ ---
14
+
15
+
8
16
  ## [19.9.0](https://github.com/oslokommune/punkt/compare/19.8.0...19.9.0) (2026-10-05)
9
17
 
10
18
  ### Features
@@ -1,6 +1,6 @@
1
1
  import { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react';
2
2
  import { IPktCheckboxBase } from '../../shared-types';
3
- export interface IPktCheckbox extends Omit<IPktCheckboxBase, 'id' | 'checkHelptext'>, Omit<InputHTMLAttributes<HTMLInputElement>, keyof IPktCheckboxBase> {
3
+ export interface IPktCheckbox extends Omit<IPktCheckboxBase, 'checkHelptext'>, Omit<InputHTMLAttributes<HTMLInputElement>, keyof IPktCheckboxBase> {
4
4
  id: string;
5
5
  checkHelptext?: ReactNode | ReactNode[] | string;
6
6
  onChange?: ChangeEventHandler<HTMLInputElement>;
@@ -1,25 +1,9 @@
1
1
  import { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react';
2
- import { IPktStringsProps } from '../../shared-strings';
3
- import { TPktInputSize } from '../../shared-types';
4
- export interface IPktRadioButton extends InputHTMLAttributes<HTMLInputElement>, IPktStringsProps<'forms'> {
2
+ import { IPktRadioButtonBase } from '../../shared-types';
3
+ export interface IPktRadioButton extends Omit<IPktRadioButtonBase, 'checkHelptext'>, Omit<InputHTMLAttributes<HTMLInputElement>, keyof IPktRadioButtonBase> {
5
4
  id: string;
6
- name?: string;
7
5
  label: string;
8
- hasTile?: boolean;
9
- inputSize?: TPktInputSize;
10
- disabled?: boolean;
11
6
  checkHelptext?: ReactNode | ReactNode[] | string;
12
- defaultChecked?: boolean;
13
- checked?: boolean;
14
- hasError?: boolean;
15
- value?: string;
16
- optionalTag?: boolean;
17
- /** @deprecated Bruk `strings={{ forms: { optional: '…' } }}` eller `setPktStrings()`. */
18
- optionalText?: string;
19
- requiredTag?: boolean;
20
- /** @deprecated Bruk `strings={{ forms: { required: '…' } }}` eller `setPktStrings()`. */
21
- requiredText?: string;
22
- tagText?: string | null;
23
7
  onChange?: ChangeEventHandler<HTMLInputElement>;
24
8
  }
25
9
  export declare const PktRadioButton: import('react').ForwardRefExoticComponent<IPktRadioButton & import('react').RefAttributes<HTMLInputElement>>;