@oslokommune/punkt-react 19.1.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 +10 -0
- package/dist/components/checkbox/Checkbox.d.ts +2 -20
- package/dist/components/footerSimple/FooterSimple.d.ts +0 -12
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +546 -535
- package/dist/shared-types/alert.d.ts +6 -0
- package/dist/shared-types/checkbox.d.ts +52 -0
- package/dist/shared-types/footer.d.ts +14 -2
- package/dist/shared-types/index.d.ts +3 -1
- package/package.json +2 -2
- package/src/components/checkbox/Checkbox.tsx +11 -26
- package/src/components/footerSimple/FooterSimple.tsx +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ 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
|
+
|
|
13
|
+
## [19.2.0](https://github.com/oslokommune/punkt/compare/19.1.0...19.2.0) (2026-09-28)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
|
|
8
18
|
## [19.1.0](https://github.com/oslokommune/punkt/compare/19.0.5...19.1.0) (2026-09-25)
|
|
9
19
|
|
|
10
20
|
### Features
|
|
@@ -1,26 +1,8 @@
|
|
|
1
1
|
import { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface IPktCheckbox extends InputHTMLAttributes<HTMLInputElement>,
|
|
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>>;
|
|
@@ -3,18 +3,6 @@ import { IPktFooterSimpleProps } from '../../shared-types';
|
|
|
3
3
|
import { TFooterConsentConfig } from '../footer/FooterGlobal';
|
|
4
4
|
export interface IPktFooterSimple extends IPktFooterSimpleProps<string>, TFooterConsentConfig, Omit<HTMLAttributes<HTMLElement>, 'children'> {
|
|
5
5
|
onDataError?: (error: Error) => void;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated The privacy link now comes from the global footer's payload.
|
|
8
|
-
* Only rendered (in the secondary footer) when explicitly set to a
|
|
9
|
-
* non-default value.
|
|
10
|
-
*/
|
|
11
|
-
personvernOgInfoLink?: string;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated The accessibility link now comes from the global footer's
|
|
14
|
-
* payload. Only rendered (in the secondary footer) when explicitly set
|
|
15
|
-
* to a non-default value.
|
|
16
|
-
*/
|
|
17
|
-
tilgjengelighetLink?: string;
|
|
18
6
|
}
|
|
19
7
|
/**
|
|
20
8
|
* PktFooterSimple — kompakt footer: en sentrert rad med pil-lenker i det
|