@oslokommune/punkt-react 16.18.0 → 16.19.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/{dialog-polyfill.esm-B7W3teD0-CHMBcS-s.js → dialog-polyfill.esm-0dVT8G1o-Cf1Ux-Z9.js} +1 -1
- package/dist/index.d.ts +17 -5
- package/dist/punkt-react.es.js +293 -268
- package/dist/punkt-react.umd.js +24 -24
- package/package.json +3 -3
- package/src/components/heading/Heading.test.tsx +28 -28
- package/src/components/heading/Heading.tsx +65 -17
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.19.0](https://github.com/oslokommune/punkt/compare/16.18.0...16.19.0) (2026-05-28)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Omskriving av PktHeading i både React og Elements (#3499).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [16.18.0](https://github.com/oslokommune/punkt/compare/16.17.4...16.18.0) (2026-05-28)
|
|
9
27
|
|
|
10
28
|
### ⚠ 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,9 +554,13 @@ 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> {
|
|
@@ -1103,7 +1109,7 @@ export declare const PktHeaderMenu: ({ dataUrl, data, locale, open, mobileBreakp
|
|
|
1103
1109
|
|
|
1104
1110
|
export declare const PktHeaderService: ForwardRefExoticComponent<IPktHeader & RefAttributes<HTMLDivElement>>;
|
|
1105
1111
|
|
|
1106
|
-
export declare const PktHeading:
|
|
1112
|
+
export declare const PktHeading: ForwardRefExoticComponent<IPktHeading & RefAttributes<HTMLHeadingElement>>;
|
|
1107
1113
|
|
|
1108
1114
|
export declare const PktHelptext: FC<IPktHelptextProps>;
|
|
1109
1115
|
|
|
@@ -1249,6 +1255,12 @@ declare type TPktAccordionSkin = TAccordionSkin;
|
|
|
1249
1255
|
|
|
1250
1256
|
declare type TPktAccordionSkin_2 = TAccordionSkin;
|
|
1251
1257
|
|
|
1258
|
+
declare type TPktHeadingLevel = THeadingLevel_2;
|
|
1259
|
+
|
|
1260
|
+
declare type TPktHeadingSize = THeadingSize;
|
|
1261
|
+
|
|
1262
|
+
declare type TPktHeadingWeight = THeadingWeight;
|
|
1263
|
+
|
|
1252
1264
|
/**
|
|
1253
1265
|
* An operation that can be attached to a queue item (rename, comment, remove, etc).
|
|
1254
1266
|
*
|