@oslokommune/punkt-react 11.19.0 → 11.19.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 +39 -0
- package/dist/index.d.ts +10 -10
- package/dist/punkt-react.es.js +655 -673
- package/dist/punkt-react.umd.js +35 -35
- package/package.json +3 -3
- package/src/components/checkbox/Checkbox.tsx +6 -18
- package/src/components/inputwrapper/InputWrapper.tsx +6 -8
- package/src/components/radio/RadioButton.tsx +29 -32
- package/src/components/select/Select.tsx +2 -2
- package/src/components/stepper/Step.tsx +3 -3
- package/src/components/textarea/Textarea.tsx +2 -2
- package/src/components/textinput/Textinput.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,45 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [11.19.2](https://github.com/oslokommune/punkt/compare/11.19.1...11.19.2) (2024-08-20)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* stepper accessibility fixes (#1881). - remove role="separator" and use aria-hidden on step lines
|
|
18
|
+
- change vue default hideContent prop value to true
|
|
19
|
+
- add min width on horizontal content wrapper
|
|
20
|
+
- add additional button help class wrapper
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Chores
|
|
24
|
+
Ingen
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [11.19.1](https://github.com/oslokommune/punkt/compare/11.19.0...11.19.1) (2024-08-20)
|
|
30
|
+
|
|
31
|
+
### ⚠ BREAKING CHANGES
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
Ingen
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
* Hjelpetekster kan nå være React Nodes (#1878).
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Chores
|
|
42
|
+
Ingen
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
|
|
8
47
|
## [11.19.0](https://github.com/oslokommune/punkt/compare/11.18.0...11.19.0) (2024-08-19)
|
|
9
48
|
|
|
10
49
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -111,7 +111,7 @@ declare interface IPktCheckbox extends default_2.InputHTMLAttributes<HTMLInputEl
|
|
|
111
111
|
label?: string;
|
|
112
112
|
labelPosition?: 'right' | 'left';
|
|
113
113
|
hideLabel?: boolean;
|
|
114
|
-
checkHelptext?: string;
|
|
114
|
+
checkHelptext?: string | default_2.ReactNode | default_2.ReactNode[];
|
|
115
115
|
hasError?: boolean;
|
|
116
116
|
defaultChecked?: boolean;
|
|
117
117
|
isSwitch?: boolean;
|
|
@@ -159,8 +159,8 @@ declare interface IPktHeader extends HTMLAttributes<HTMLDivElement> {
|
|
|
159
159
|
declare interface IPktInputWrapper extends RefAttributes<HTMLElement> {
|
|
160
160
|
forId: string;
|
|
161
161
|
label: string;
|
|
162
|
-
helptext?: string;
|
|
163
|
-
helptextDropdown?: string;
|
|
162
|
+
helptext?: string | ReactNode | ReactNode[];
|
|
163
|
+
helptextDropdown?: string | ReactNode | ReactNode[];
|
|
164
164
|
helptextDropdownButton?: string;
|
|
165
165
|
counter?: boolean;
|
|
166
166
|
counterCurrent?: number;
|
|
@@ -246,8 +246,8 @@ declare interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement
|
|
|
246
246
|
disabled?: boolean;
|
|
247
247
|
errorMessage?: string | ReactNode | ReactNode[];
|
|
248
248
|
hasError?: boolean;
|
|
249
|
-
helptext?: string;
|
|
250
|
-
helptextDropdown?: string;
|
|
249
|
+
helptext?: string | ReactNode | ReactNode[];
|
|
250
|
+
helptextDropdown?: string | ReactNode | ReactNode[];
|
|
251
251
|
helptextDropdownButton?: string;
|
|
252
252
|
id: string;
|
|
253
253
|
inline?: boolean;
|
|
@@ -322,8 +322,8 @@ declare interface IPktTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
322
322
|
disabled?: boolean;
|
|
323
323
|
errorMessage?: string | ReactNode | ReactNode[];
|
|
324
324
|
hasError?: boolean;
|
|
325
|
-
helptext?: string;
|
|
326
|
-
helptextDropdown?: string;
|
|
325
|
+
helptext?: string | ReactNode | ReactNode[];
|
|
326
|
+
helptextDropdown?: string | ReactNode | ReactNode[];
|
|
327
327
|
helptextDropdownButton?: string;
|
|
328
328
|
inline?: boolean;
|
|
329
329
|
fullwidth?: boolean;
|
|
@@ -348,8 +348,8 @@ declare interface IPktTextinput extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
348
348
|
disabled?: boolean;
|
|
349
349
|
errorMessage?: string | ReactNode | ReactNode[];
|
|
350
350
|
hasError?: boolean;
|
|
351
|
-
helptext?: string;
|
|
352
|
-
helptextDropdown?: string;
|
|
351
|
+
helptext?: string | ReactNode | ReactNode[];
|
|
352
|
+
helptextDropdown?: string | ReactNode | ReactNode[];
|
|
353
353
|
helptextDropdownButton?: string;
|
|
354
354
|
iconNameRight?: string;
|
|
355
355
|
inline?: boolean;
|
|
@@ -375,7 +375,7 @@ declare interface IRadio extends default_2.InputHTMLAttributes<HTMLInputElement>
|
|
|
375
375
|
label: string;
|
|
376
376
|
hasTile?: boolean;
|
|
377
377
|
disabled?: boolean;
|
|
378
|
-
checkHelptext?: string;
|
|
378
|
+
checkHelptext?: string | default_2.ReactNode | default_2.ReactNode[];
|
|
379
379
|
hasError?: boolean;
|
|
380
380
|
value?: string;
|
|
381
381
|
}
|