@oslokommune/punkt-react 16.19.0 → 16.20.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 +4 -5
- package/dist/punkt-react.es.js +2866 -2854
- package/dist/punkt-react.umd.js +146 -146
- package/package.json +2 -2
- package/src/components/helptext/Helptext.test.tsx +98 -0
- package/src/components/helptext/Helptext.tsx +84 -26
- package/src/components/inputwrapper/InputWrapper.tsx +10 -41
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
|
+
## [16.20.0](https://github.com/oslokommune/punkt/compare/16.19.0...16.20.0) (2026-05-28)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Helptext i React, og faktisk ta den i bruk i InputWrapper (#3500).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [16.19.0](https://github.com/oslokommune/punkt/compare/16.18.0...16.19.0) (2026-05-28)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -564,12 +564,11 @@ declare interface IPktHeading extends HTMLAttributes<HTMLHeadingElement> {
|
|
|
564
564
|
}
|
|
565
565
|
|
|
566
566
|
declare interface IPktHelptextProps extends HTMLAttributes<HTMLDivElement> {
|
|
567
|
-
helptext?: string | ReactNode
|
|
568
|
-
helptextDropdown?: string | ReactNode
|
|
567
|
+
helptext?: string | ReactNode;
|
|
568
|
+
helptextDropdown?: string | ReactNode;
|
|
569
569
|
helptextDropdownButton?: string;
|
|
570
570
|
forId?: string;
|
|
571
|
-
|
|
572
|
-
onToggleHelpText?: (e: CustomEvent) => void;
|
|
571
|
+
onToggleHelpText?: (isOpen: boolean) => void;
|
|
573
572
|
}
|
|
574
573
|
|
|
575
574
|
declare interface IPktIcon extends HTMLAttributes<HTMLElement> {
|
|
@@ -1111,7 +1110,7 @@ export declare const PktHeaderService: ForwardRefExoticComponent<IPktHeader & Re
|
|
|
1111
1110
|
|
|
1112
1111
|
export declare const PktHeading: ForwardRefExoticComponent<IPktHeading & RefAttributes<HTMLHeadingElement>>;
|
|
1113
1112
|
|
|
1114
|
-
export declare const PktHelptext:
|
|
1113
|
+
export declare const PktHelptext: ForwardRefExoticComponent<IPktHelptextProps & RefAttributes<HTMLDivElement>>;
|
|
1115
1114
|
|
|
1116
1115
|
export declare const PktIcon: ForwardRefExoticComponent<IPktIcon & RefAttributes<HTMLSpanElement>>;
|
|
1117
1116
|
|