@oslokommune/punkt-react 19.2.0 → 19.3.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,11 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [19.3.0](https://github.com/oslokommune/punkt/compare/19.2.0...19.3.0) (2026-09-29)
9
+
10
+ ---
11
+
12
+
8
13
  ## [19.2.0](https://github.com/oslokommune/punkt/compare/19.1.0...19.2.0) (2026-09-28)
9
14
 
10
15
  ---
@@ -1,26 +1,8 @@
1
1
  import { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react';
2
- import { IPktStringsProps } from '../../shared-strings';
3
- export interface IPktCheckbox extends InputHTMLAttributes<HTMLInputElement>, IPktStringsProps<'forms'> {
2
+ import { IPktCheckboxBase } from '../../shared-types';
3
+ export interface IPktCheckbox extends Omit<IPktCheckboxBase, 'id' | 'checkHelptext'>, Omit<InputHTMLAttributes<HTMLInputElement>, keyof IPktCheckboxBase> {
4
4
  id: string;
5
- hasTile?: boolean;
6
- disabled?: boolean;
7
- label?: string;
8
5
  checkHelptext?: ReactNode | ReactNode[] | string;
9
- hasError?: boolean;
10
- defaultChecked?: boolean;
11
- checked?: boolean;
12
- indeterminate?: boolean;
13
- value?: string;
14
- isSwitch?: boolean;
15
- hideLabel?: boolean;
16
- labelPosition?: 'right' | 'left';
17
- optionalTag?: boolean;
18
- /** @deprecated Bruk `strings={{ forms: { optional: '…' } }}` eller `setPktStrings()`. */
19
- optionalText?: string;
20
- requiredTag?: boolean;
21
- /** @deprecated Bruk `strings={{ forms: { required: '…' } }}` eller `setPktStrings()`. */
22
- requiredText?: string;
23
- tagText?: string | null;
24
6
  onChange?: ChangeEventHandler<HTMLInputElement>;
25
7
  }
26
8
  export declare const PktCheckbox: import('react').ForwardRefExoticComponent<IPktCheckbox & import('react').RefAttributes<HTMLInputElement>>;