@oslokommune/punkt-react 13.0.0 → 13.0.2
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 +38 -0
- package/dist/index.d.ts +5 -1
- package/dist/punkt-react.es.js +666 -661
- package/dist/punkt-react.umd.js +63 -63
- package/package.json +2 -2
- package/src/components/checkbox/Checkbox.tsx +5 -2
- package/src/components/inputwrapper/InputWrapper.tsx +1 -1
- package/src/components/radio/RadioButton.tsx +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,44 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [13.0.2](https://github.com/oslokommune/punkt/compare/13.0.1...13.0.2) (2025-07-07)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* Checkbox/Radio: Støtte både controlled og uncontrolled (#2686).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [13.0.1](https://github.com/oslokommune/punkt/compare/13.0.0...13.0.1) (2025-07-04)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
* InputWrapper skjule helptext, radio/check eksplisitt onChange (#2678). - Når InputWrapper har useWrapper={false} må også helptext skjules
|
|
36
|
+
- Av en eller annen grunn måtte jeg sette onChange eksplisitt, ikke med ...props, på radio og checkbox
|
|
37
|
+
- Trenger å sette defaultChecked både når checked sendes inn og når defaultChecked sendes inn
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Chores
|
|
41
|
+
Ingen
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
|
|
8
46
|
## [13.0.0](https://github.com/oslokommune/punkt/compare/12.43.2...13.0.0) (2025-07-04)
|
|
9
47
|
|
|
10
48
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -152,11 +152,12 @@ export declare interface IPktCheckbox extends default_2.InputHTMLAttributes<HTML
|
|
|
152
152
|
checkHelptext?: string;
|
|
153
153
|
hasError?: boolean;
|
|
154
154
|
defaultChecked?: boolean;
|
|
155
|
+
checked?: boolean;
|
|
155
156
|
value?: string;
|
|
156
157
|
isSwitch?: boolean;
|
|
157
158
|
hideLabel?: boolean;
|
|
158
159
|
labelPosition?: 'right' | 'left';
|
|
159
|
-
|
|
160
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
export declare interface IPktCombobox extends ExtendedCombobox {
|
|
@@ -360,8 +361,11 @@ export declare interface IPktRadioButton extends default_2.InputHTMLAttributes<H
|
|
|
360
361
|
hasTile?: boolean;
|
|
361
362
|
disabled?: boolean;
|
|
362
363
|
checkHelptext?: string | default_2.ReactNode | default_2.ReactNode[];
|
|
364
|
+
defaultChecked?: boolean;
|
|
365
|
+
checked?: boolean;
|
|
363
366
|
hasError?: boolean;
|
|
364
367
|
value?: string;
|
|
368
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
365
369
|
}
|
|
366
370
|
|
|
367
371
|
declare interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|