@oslokommune/punkt-react 13.11.0 → 13.13.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 +37 -0
- package/dist/index.d.ts +12 -6
- package/dist/punkt-react.es.js +1387 -1346
- package/dist/punkt-react.umd.js +71 -71
- package/package.json +4 -4
- package/src/components/linkcard/LinkCard.test.tsx +0 -11
- package/src/components/linkcard/LinkCard.tsx +34 -21
- package/src/components/messagebox/Messagebox.test.tsx +63 -0
- package/src/components/messagebox/Messagebox.tsx +58 -28
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,43 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [13.13.0](https://github.com/oslokommune/punkt/compare/13.12.0...13.13.0) (2025-11-03)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Linkcard som React-komponent (#3104). * Reactifisert LinkCard
|
|
15
|
+
* Component-specs-JSON for alert, linkcard og messagebox
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
Ingen
|
|
20
|
+
|
|
21
|
+
### Chores
|
|
22
|
+
Ingen
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [13.12.0](https://github.com/oslokommune/punkt/compare/13.11.0...13.12.0) (2025-10-31)
|
|
28
|
+
|
|
29
|
+
### ⚠ BREAKING CHANGES
|
|
30
|
+
Ingen
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
* Messagebox som ren React-komponent (#3101). * Messagebox som ren React-komponent
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
Ingen
|
|
38
|
+
|
|
39
|
+
### Chores
|
|
40
|
+
Ingen
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
|
|
8
45
|
## [13.10.1](https://github.com/oslokommune/punkt/compare/13.10.0...13.10.1) (2025-10-29)
|
|
9
46
|
|
|
10
47
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -339,24 +339,25 @@ declare interface IPktLink extends LinkHTMLAttributes<HTMLAnchorElement> {
|
|
|
339
339
|
ref?: LegacyRef<HTMLAnchorElement>;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
-
export declare interface IPktLinkCard extends
|
|
342
|
+
export declare interface IPktLinkCard extends Omit<HTMLAttributes<HTMLAnchorElement>, 'title'> {
|
|
343
343
|
skin?: 'normal' | 'no-padding' | 'blue' | 'beige' | 'green' | 'gray' | 'beige-outline' | 'gray-outline';
|
|
344
344
|
title?: string;
|
|
345
345
|
href?: string;
|
|
346
346
|
iconName?: string;
|
|
347
347
|
openInNewTab?: boolean;
|
|
348
348
|
external?: boolean;
|
|
349
|
+
children?: ReactNode;
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
export declare interface IPktLoader extends ExtendedLoader {
|
|
352
353
|
}
|
|
353
354
|
|
|
354
|
-
export declare interface IPktMessagebox extends
|
|
355
|
-
skin?:
|
|
356
|
-
title?:
|
|
355
|
+
export declare interface IPktMessagebox extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
356
|
+
skin?: TMessageboxSkin;
|
|
357
|
+
title?: ReactNode;
|
|
357
358
|
compact?: boolean;
|
|
358
359
|
closable?: boolean;
|
|
359
|
-
onClose?: (
|
|
360
|
+
onClose?: () => void;
|
|
360
361
|
}
|
|
361
362
|
|
|
362
363
|
export declare interface IPktModal extends PktElType {
|
|
@@ -716,7 +717,10 @@ export declare const PktInputWrapper: ForwardRefExoticComponent<Omit<IPktInputWr
|
|
|
716
717
|
|
|
717
718
|
export declare const PktLink: FC<IPktLink>;
|
|
718
719
|
|
|
719
|
-
export declare const PktLinkCard:
|
|
720
|
+
export declare const PktLinkCard: {
|
|
721
|
+
({ children, skin, title, href, iconName, openInNewTab, external, className, ...props }: IPktLinkCard): JSX_2.Element;
|
|
722
|
+
displayName: string;
|
|
723
|
+
};
|
|
720
724
|
|
|
721
725
|
export declare const PktLoader: FC<IPktLoader>;
|
|
722
726
|
|
|
@@ -788,6 +792,8 @@ declare type TCardTagPosition = 'top' | 'bottom';
|
|
|
788
792
|
|
|
789
793
|
declare type TLayout = 'vertical' | 'horizontal';
|
|
790
794
|
|
|
795
|
+
declare type TMessageboxSkin = 'beige' | 'blue' | 'red' | 'green';
|
|
796
|
+
|
|
791
797
|
declare type TPktAccordionSkin = 'borderless' | 'outlined' | 'beige' | 'blue';
|
|
792
798
|
|
|
793
799
|
declare type TPktAccordionSkin_2 = 'borderless' | 'outlined' | 'beige' | 'blue';
|