@oslokommune/punkt-react 16.18.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 +36 -0
- package/dist/{dialog-polyfill.esm-B7W3teD0-CHMBcS-s.js → dialog-polyfill.esm-0dVT8G1o-Cf1Ux-Z9.js} +1 -1
- package/dist/index.d.ts +21 -10
- package/dist/punkt-react.es.js +2976 -2939
- package/dist/punkt-react.umd.js +146 -146
- package/package.json +3 -3
- package/src/components/heading/Heading.test.tsx +28 -28
- package/src/components/heading/Heading.tsx +65 -17
- 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,42 @@ 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
|
+
|
|
26
|
+
## [16.19.0](https://github.com/oslokommune/punkt/compare/16.18.0...16.19.0) (2026-05-28)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
* Omskriving av PktHeading i både React og Elements (#3499).
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
Ingen
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [16.18.0](https://github.com/oslokommune/punkt/compare/16.17.4...16.18.0) (2026-05-28)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ import { InputHTMLAttributes } from 'react';
|
|
|
17
17
|
import { IPktComboboxOption } from './shared-types/combobox';
|
|
18
18
|
import { IPktConsent as IPktConsent_2 } from '@oslokommune/punkt-elements';
|
|
19
19
|
import { IPktHeaderMenu as IPktHeaderMenu_2 } from './shared-types';
|
|
20
|
-
import { IPktHeading as IPktHeading_2 } from '@oslokommune/punkt-elements';
|
|
21
20
|
import { IPktLoader as IPktLoader_2 } from '@oslokommune/punkt-elements';
|
|
22
21
|
import { IPktSearchInputSuggestion } from './shared-types/searchinput';
|
|
23
22
|
import { ITimepickerStrings } from './shared-types/timepicker';
|
|
@@ -43,6 +42,9 @@ import { THeaderFooterApi } from './shared-types';
|
|
|
43
42
|
import { THeaderMenu } from './shared-types';
|
|
44
43
|
import { THeaderPosition } from './shared-types';
|
|
45
44
|
import { THeaderScrollBehavior } from './shared-types';
|
|
45
|
+
import { THeadingLevel as THeadingLevel_2 } from './shared-types';
|
|
46
|
+
import { THeadingSize } from './shared-types';
|
|
47
|
+
import { THeadingWeight } from './shared-types';
|
|
46
48
|
import { TLayout } from './shared-types';
|
|
47
49
|
import { TLogOutButtonPlacement } from './shared-types';
|
|
48
50
|
import { TMessageboxSkin } from './shared-types';
|
|
@@ -552,18 +554,21 @@ export declare interface IPktHeaderMenu extends Omit<HTMLAttributes<HTMLElement>
|
|
|
552
554
|
|
|
553
555
|
export declare type IPktHeaderService = IPktHeader;
|
|
554
556
|
|
|
555
|
-
declare interface IPktHeading extends
|
|
556
|
-
|
|
557
|
-
|
|
557
|
+
declare interface IPktHeading extends HTMLAttributes<HTMLHeadingElement> {
|
|
558
|
+
size?: TPktHeadingSize;
|
|
559
|
+
level?: TPktHeadingLevel;
|
|
560
|
+
weight?: TPktHeadingWeight;
|
|
561
|
+
visuallyHidden?: boolean;
|
|
562
|
+
align?: 'start' | 'center' | 'end';
|
|
563
|
+
children?: ReactNode;
|
|
558
564
|
}
|
|
559
565
|
|
|
560
566
|
declare interface IPktHelptextProps extends HTMLAttributes<HTMLDivElement> {
|
|
561
|
-
helptext?: string | ReactNode
|
|
562
|
-
helptextDropdown?: string | ReactNode
|
|
567
|
+
helptext?: string | ReactNode;
|
|
568
|
+
helptextDropdown?: string | ReactNode;
|
|
563
569
|
helptextDropdownButton?: string;
|
|
564
570
|
forId?: string;
|
|
565
|
-
|
|
566
|
-
onToggleHelpText?: (e: CustomEvent) => void;
|
|
571
|
+
onToggleHelpText?: (isOpen: boolean) => void;
|
|
567
572
|
}
|
|
568
573
|
|
|
569
574
|
declare interface IPktIcon extends HTMLAttributes<HTMLElement> {
|
|
@@ -1103,9 +1108,9 @@ export declare const PktHeaderMenu: ({ dataUrl, data, locale, open, mobileBreakp
|
|
|
1103
1108
|
|
|
1104
1109
|
export declare const PktHeaderService: ForwardRefExoticComponent<IPktHeader & RefAttributes<HTMLDivElement>>;
|
|
1105
1110
|
|
|
1106
|
-
export declare const PktHeading:
|
|
1111
|
+
export declare const PktHeading: ForwardRefExoticComponent<IPktHeading & RefAttributes<HTMLHeadingElement>>;
|
|
1107
1112
|
|
|
1108
|
-
export declare const PktHelptext:
|
|
1113
|
+
export declare const PktHelptext: ForwardRefExoticComponent<IPktHelptextProps & RefAttributes<HTMLDivElement>>;
|
|
1109
1114
|
|
|
1110
1115
|
export declare const PktIcon: ForwardRefExoticComponent<IPktIcon & RefAttributes<HTMLSpanElement>>;
|
|
1111
1116
|
|
|
@@ -1249,6 +1254,12 @@ declare type TPktAccordionSkin = TAccordionSkin;
|
|
|
1249
1254
|
|
|
1250
1255
|
declare type TPktAccordionSkin_2 = TAccordionSkin;
|
|
1251
1256
|
|
|
1257
|
+
declare type TPktHeadingLevel = THeadingLevel_2;
|
|
1258
|
+
|
|
1259
|
+
declare type TPktHeadingSize = THeadingSize;
|
|
1260
|
+
|
|
1261
|
+
declare type TPktHeadingWeight = THeadingWeight;
|
|
1262
|
+
|
|
1252
1263
|
/**
|
|
1253
1264
|
* An operation that can be attached to a queue item (rename, comment, remove, etc).
|
|
1254
1265
|
*
|