@oslokommune/punkt-react 12.27.7 → 12.28.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 +18 -0
- package/dist/index.d.ts +16 -8
- package/dist/punkt-react.es.js +9953 -9889
- package/dist/punkt-react.umd.js +356 -329
- package/package.json +4 -4
- package/src/components/checkbox/Checkbox.test.tsx +18 -5
- package/src/components/checkbox/Checkbox.tsx +38 -62
- package/src/components/radio/RadioButton.test.tsx +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.28.0](https://github.com/oslokommune/punkt/compare/12.27.10...12.28.0) (2025-03-13)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Migrere PktCheckbox til Punkt Elements (#2295).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [12.27.6](https://github.com/oslokommune/punkt/compare/12.27.5...12.27.6) (2025-03-11)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -125,18 +125,26 @@ declare interface IPktCard extends PktElType {
|
|
|
125
125
|
} | string;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
export declare interface IPktCheckbox extends
|
|
128
|
+
export declare interface IPktCheckbox extends InputHTMLAttributes<HTMLInputElement> {
|
|
129
129
|
id: string;
|
|
130
|
+
name?: string;
|
|
131
|
+
label: string;
|
|
130
132
|
hasTile?: boolean;
|
|
131
|
-
disabled?: boolean;
|
|
132
|
-
label?: string;
|
|
133
|
-
labelPosition?: 'right' | 'left';
|
|
134
|
-
hideLabel?: boolean;
|
|
135
|
-
checkHelptext?: string | default_2.ReactNode | default_2.ReactNode[];
|
|
136
133
|
hasError?: boolean;
|
|
137
134
|
defaultChecked?: boolean;
|
|
138
|
-
|
|
135
|
+
disabled?: boolean;
|
|
139
136
|
value?: string;
|
|
137
|
+
checkHelptext?: string | default_2.ReactNode | default_2.ReactNode[];
|
|
138
|
+
isSwitch?: boolean;
|
|
139
|
+
hideLabel?: boolean;
|
|
140
|
+
labelPosition?: 'right' | 'left';
|
|
141
|
+
checked?: boolean;
|
|
142
|
+
ref?: ForwardedRef<HTMLInputElement>;
|
|
143
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
144
|
+
onInput?: ChangeEventHandler<HTMLInputElement>;
|
|
145
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
146
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
147
|
+
onValueChange?: (e: CustomEvent) => void;
|
|
140
148
|
}
|
|
141
149
|
|
|
142
150
|
export declare interface IPktDatepicker extends InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -597,7 +605,7 @@ export declare const PktButton: default_2.ForwardRefExoticComponent<IPktButton &
|
|
|
597
605
|
|
|
598
606
|
export declare const PktCard: FC<IPktCard>;
|
|
599
607
|
|
|
600
|
-
export declare const PktCheckbox: default_2.ForwardRefExoticComponent<IPktCheckbox
|
|
608
|
+
export declare const PktCheckbox: default_2.ForwardRefExoticComponent<IPktCheckbox>;
|
|
601
609
|
|
|
602
610
|
export declare const PktDatepicker: FC<IPktDatepicker>;
|
|
603
611
|
|