@oslokommune/punkt-react 13.0.4 → 13.1.1
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 +15 -0
- package/dist/punkt-react.es.js +10124 -10050
- package/dist/punkt-react.umd.js +436 -421
- package/package.json +3 -3
- package/src/components/checkbox/Checkbox.tsx +24 -2
- package/src/components/datepicker/Datepicker.tsx +1 -0
- package/src/components/inputwrapper/InputWrapper.tsx +13 -12
- package/src/components/radio/RadioButton.tsx +23 -1
- 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.1](https://github.com/oslokommune/punkt/compare/13.1.0...13.1.1) (2025-07-09)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* Legg til tagText i Combobox (#2695).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [13.1.0](https://github.com/oslokommune/punkt/compare/13.0.4...13.1.0) (2025-07-08)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
* Tags i check/radio, og ny attributt "tagText" i Input Wrapper (#2693).
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
Ingen
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [13.0.4](https://github.com/oslokommune/punkt/compare/13.0.3...13.0.4) (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
|
|
|
@@ -194,6 +199,7 @@ export declare interface IPktDatepicker extends InputHTMLAttributes<HTMLInputEle
|
|
|
194
199
|
requiredText?: string;
|
|
195
200
|
optionalTag?: boolean;
|
|
196
201
|
optionalText?: string;
|
|
202
|
+
tagText?: string;
|
|
197
203
|
useWrapper?: boolean;
|
|
198
204
|
helptext?: string | ReactNode | ReactNode[];
|
|
199
205
|
helptextDropdown?: string | ReactNode | ReactNode[];
|
|
@@ -296,6 +302,7 @@ export declare interface IPktInputWrapper extends RefAttributes<HTMLElement> {
|
|
|
296
302
|
optionalText?: string;
|
|
297
303
|
requiredTag?: boolean;
|
|
298
304
|
requiredText?: string;
|
|
305
|
+
tagText?: string | null;
|
|
299
306
|
hasError?: boolean;
|
|
300
307
|
errorMessage?: string | ReactNode;
|
|
301
308
|
disabled?: boolean;
|
|
@@ -364,6 +371,11 @@ export declare interface IPktRadioButton extends default_2.InputHTMLAttributes<H
|
|
|
364
371
|
checked?: boolean;
|
|
365
372
|
hasError?: boolean;
|
|
366
373
|
value?: string;
|
|
374
|
+
optionalTag?: boolean;
|
|
375
|
+
optionalText?: string;
|
|
376
|
+
requiredTag?: boolean;
|
|
377
|
+
requiredText?: string;
|
|
378
|
+
tagText?: string | null;
|
|
367
379
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
368
380
|
}
|
|
369
381
|
|
|
@@ -386,6 +398,7 @@ declare interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement
|
|
|
386
398
|
optionalText?: string;
|
|
387
399
|
requiredTag?: boolean;
|
|
388
400
|
requiredText?: string;
|
|
401
|
+
tagText?: string | null;
|
|
389
402
|
options?: Array<{
|
|
390
403
|
value: string;
|
|
391
404
|
label: string;
|
|
@@ -491,6 +504,7 @@ export declare interface IPktTextarea extends TextareaHTMLAttributes<HTMLTextAre
|
|
|
491
504
|
optionalText?: string;
|
|
492
505
|
requiredTag?: boolean;
|
|
493
506
|
requiredText?: string;
|
|
507
|
+
tagText?: string | null;
|
|
494
508
|
placeholder?: string;
|
|
495
509
|
rows?: number;
|
|
496
510
|
useWrapper?: boolean;
|
|
@@ -526,6 +540,7 @@ export declare interface IPktTextinput extends InputHTMLAttributes<HTMLInputElem
|
|
|
526
540
|
optionalText?: string;
|
|
527
541
|
requiredTag?: boolean;
|
|
528
542
|
requiredText?: string;
|
|
543
|
+
tagText?: string | null;
|
|
529
544
|
placeholder?: string;
|
|
530
545
|
prefix?: string;
|
|
531
546
|
suffix?: string;
|