@oslokommune/punkt-react 13.10.1 → 13.12.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 CHANGED
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [13.12.0](https://github.com/oslokommune/punkt/compare/13.11.0...13.12.0) (2025-10-31)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Messagebox som ren React-komponent (#3101). * Messagebox som ren React-komponent
15
+
16
+
17
+ ### Bug Fixes
18
+ Ingen
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [13.10.1](https://github.com/oslokommune/punkt/compare/13.10.0...13.10.1) (2025-10-29)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
package/dist/index.d.ts CHANGED
@@ -351,12 +351,12 @@ export declare interface IPktLinkCard extends PktElType {
351
351
  export declare interface IPktLoader extends ExtendedLoader {
352
352
  }
353
353
 
354
- export declare interface IPktMessagebox extends PktElType {
355
- skin?: 'beige' | 'red' | 'green' | 'blue';
356
- title?: string;
354
+ export declare interface IPktMessagebox extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
355
+ skin?: TMessageboxSkin;
356
+ title?: ReactNode;
357
357
  compact?: boolean;
358
358
  closable?: boolean;
359
- onClose?: (e: CustomEvent) => void;
359
+ onClose?: () => void;
360
360
  }
361
361
 
362
362
  export declare interface IPktModal extends PktElType {
@@ -788,6 +788,8 @@ declare type TCardTagPosition = 'top' | 'bottom';
788
788
 
789
789
  declare type TLayout = 'vertical' | 'horizontal';
790
790
 
791
+ declare type TMessageboxSkin = 'beige' | 'blue' | 'red' | 'green';
792
+
791
793
  declare type TPktAccordionSkin = 'borderless' | 'outlined' | 'beige' | 'blue';
792
794
 
793
795
  declare type TPktAccordionSkin_2 = 'borderless' | 'outlined' | 'beige' | 'blue';