@oslokommune/punkt-react 13.0.3 → 13.1.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 +36 -0
- package/dist/index.d.ts +14 -0
- package/dist/punkt-react.es.js +10037 -9949
- package/dist/punkt-react.umd.js +439 -424
- package/package.json +3 -3
- package/src/components/checkbox/Checkbox.tsx +53 -6
- package/src/components/inputwrapper/InputWrapper.tsx +13 -12
- package/src/components/radio/RadioButton.tsx +45 -8
- package/src/components/select/Select.tsx +3 -0
- package/src/components/textarea/Textarea.tsx +3 -0
- package/src/components/textinput/Textinput.tsx +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,42 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [13.1.0](https://github.com/oslokommune/punkt/compare/13.0.4...13.1.0) (2025-07-08)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Tags i check/radio, og ny attributt "tagText" i Input Wrapper (#2693).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [13.0.4](https://github.com/oslokommune/punkt/compare/13.0.3...13.0.4) (2025-07-07)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
* Legg til manglende klasser i Checkbox og Radiobutton (#2689).
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [13.0.3](https://github.com/oslokommune/punkt/compare/13.0.2...13.0.3) (2025-07-07)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -156,6 +156,11 @@ export declare interface IPktCheckbox extends default_2.InputHTMLAttributes<HTML
|
|
|
156
156
|
isSwitch?: boolean;
|
|
157
157
|
hideLabel?: boolean;
|
|
158
158
|
labelPosition?: 'right' | 'left';
|
|
159
|
+
optionalTag?: boolean;
|
|
160
|
+
optionalText?: string;
|
|
161
|
+
requiredTag?: boolean;
|
|
162
|
+
requiredText?: string;
|
|
163
|
+
tagText?: string | null;
|
|
159
164
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
160
165
|
}
|
|
161
166
|
|
|
@@ -296,6 +301,7 @@ export declare interface IPktInputWrapper extends RefAttributes<HTMLElement> {
|
|
|
296
301
|
optionalText?: string;
|
|
297
302
|
requiredTag?: boolean;
|
|
298
303
|
requiredText?: string;
|
|
304
|
+
tagText?: string | null;
|
|
299
305
|
hasError?: boolean;
|
|
300
306
|
errorMessage?: string | ReactNode;
|
|
301
307
|
disabled?: boolean;
|
|
@@ -364,6 +370,11 @@ export declare interface IPktRadioButton extends default_2.InputHTMLAttributes<H
|
|
|
364
370
|
checked?: boolean;
|
|
365
371
|
hasError?: boolean;
|
|
366
372
|
value?: string;
|
|
373
|
+
optionalTag?: boolean;
|
|
374
|
+
optionalText?: string;
|
|
375
|
+
requiredTag?: boolean;
|
|
376
|
+
requiredText?: string;
|
|
377
|
+
tagText?: string | null;
|
|
367
378
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
368
379
|
}
|
|
369
380
|
|
|
@@ -386,6 +397,7 @@ declare interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement
|
|
|
386
397
|
optionalText?: string;
|
|
387
398
|
requiredTag?: boolean;
|
|
388
399
|
requiredText?: string;
|
|
400
|
+
tagText?: string | null;
|
|
389
401
|
options?: Array<{
|
|
390
402
|
value: string;
|
|
391
403
|
label: string;
|
|
@@ -491,6 +503,7 @@ export declare interface IPktTextarea extends TextareaHTMLAttributes<HTMLTextAre
|
|
|
491
503
|
optionalText?: string;
|
|
492
504
|
requiredTag?: boolean;
|
|
493
505
|
requiredText?: string;
|
|
506
|
+
tagText?: string | null;
|
|
494
507
|
placeholder?: string;
|
|
495
508
|
rows?: number;
|
|
496
509
|
useWrapper?: boolean;
|
|
@@ -526,6 +539,7 @@ export declare interface IPktTextinput extends InputHTMLAttributes<HTMLInputElem
|
|
|
526
539
|
optionalText?: string;
|
|
527
540
|
requiredTag?: boolean;
|
|
528
541
|
requiredText?: string;
|
|
542
|
+
tagText?: string | null;
|
|
529
543
|
placeholder?: string;
|
|
530
544
|
prefix?: string;
|
|
531
545
|
suffix?: string;
|