@oslokommune/punkt-react 12.30.2 → 12.31.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/index.d.ts +9 -4
- package/dist/punkt-react.es.js +7948 -7906
- package/dist/punkt-react.umd.js +272 -260
- package/package.json +4 -4
- package/src/components/backlink/BackLink.test.tsx +37 -43
- package/src/components/backlink/BackLink.tsx +15 -29
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
|
+
## [12.31.0](https://github.com/oslokommune/punkt/compare/12.30.3...12.31.0) (2025-03-28)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* migrer backlink (#2360).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [12.30.3](https://github.com/oslokommune/punkt/compare/12.30.2...12.30.3) (2025-03-27)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
* Radio og Check rapporterer ikke riktig valgt verdi i FormData (#2368).
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [12.29.3](https://github.com/oslokommune/punkt/compare/12.29.2...12.29.3) (2025-03-21)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
3
4
|
import { ButtonHTMLAttributes } from 'react';
|
|
4
5
|
import { ChangeEventHandler } from 'react';
|
|
5
6
|
import { default as default_2 } from 'react';
|
|
@@ -10,6 +11,7 @@ import { ForwardRefExoticComponent } from 'react';
|
|
|
10
11
|
import { HTMLAttributes } from 'react';
|
|
11
12
|
import { HTMLProps } from 'react';
|
|
12
13
|
import { InputHTMLAttributes } from 'react';
|
|
14
|
+
import { IPktBackLink as IPktBackLink_2 } from '@oslokommune/punkt-elements';
|
|
13
15
|
import { IPktButton as IPktButton_2 } from '@oslokommune/punkt-elements';
|
|
14
16
|
import { IPktLoader as IPktLoader_2 } from '@oslokommune/punkt-elements';
|
|
15
17
|
import { IPktProgressbar as IPktProgressbar_2 } from '@oslokommune/punkt-elements';
|
|
@@ -34,6 +36,8 @@ declare interface Column {
|
|
|
34
36
|
text?: string;
|
|
35
37
|
}
|
|
36
38
|
|
|
39
|
+
declare type ExtendedBackLink = Omit<IPktBackLink_2, 'text'> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
40
|
+
|
|
37
41
|
declare type ExtendedButton = IPktButton_2 & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
38
42
|
|
|
39
43
|
declare type ExtendedLoader = IPktLoader_2 & PktElType;
|
|
@@ -95,10 +99,11 @@ export declare interface IPktAlert extends PktElType {
|
|
|
95
99
|
onClose?: (e: CustomEvent) => void;
|
|
96
100
|
}
|
|
97
101
|
|
|
98
|
-
export declare interface IPktBackLink extends
|
|
99
|
-
href?: string;
|
|
102
|
+
export declare interface IPktBackLink extends ExtendedBackLink {
|
|
100
103
|
text?: string;
|
|
101
|
-
|
|
104
|
+
ref?: LegacyRef<HTMLAnchorElement>;
|
|
105
|
+
ariaLabel?: string;
|
|
106
|
+
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
102
107
|
}
|
|
103
108
|
|
|
104
109
|
export declare interface IPktBreadcrumbs extends default_2.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
@@ -580,7 +585,7 @@ export declare const PktAccordionItem: default_2.ForwardRefExoticComponent<IPktA
|
|
|
580
585
|
|
|
581
586
|
export declare const PktAlert: FC<IPktAlert>;
|
|
582
587
|
|
|
583
|
-
export declare const PktBackLink: default_2.ForwardRefExoticComponent<IPktBackLink
|
|
588
|
+
export declare const PktBackLink: default_2.ForwardRefExoticComponent<IPktBackLink>;
|
|
584
589
|
|
|
585
590
|
export declare const PktBreadcrumbs: default_2.ForwardRefExoticComponent<IPktBreadcrumbs & default_2.RefAttributes<HTMLAnchorElement>>;
|
|
586
591
|
|