@oslokommune/punkt-react 14.1.1 → 14.2.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
+ ## [14.2.0](https://github.com/oslokommune/punkt/compare/14.1.1...14.2.0) (2026-02-04)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Ny mappe `shared-types` for å samle alle TS-definisjoner som deles mellom komponenter (#3225).
15
+
16
+
17
+ ### Bug Fixes
18
+ Ingen
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [14.0.0](https://github.com/oslokommune/punkt/compare/13.22.0...14.0.0) (2026-02-02)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
 
3
3
  import { AnchorHTMLAttributes } from 'react';
4
+ import { Booleanish } from '../../../../../shared-types';
4
5
  import { ButtonHTMLAttributes } from 'react';
5
6
  import { ChangeEvent } from 'react';
6
7
  import { ChangeEventHandler } from 'react';
@@ -30,9 +31,14 @@ import { RefAttributes } from 'react';
30
31
  import { RefObject } from 'react';
31
32
  import { SelectHTMLAttributes } from 'react';
32
33
  import { SyntheticEvent } from 'react';
33
- import { TAlertRole } from '../../types/aria';
34
- import { TAriaLive } from '../../types/aria';
34
+ import { TAccordionSkin } from '../../../../../shared-types';
35
+ import { TAlertRole } from '../../../../../shared-types';
36
+ import { TAlertSkin } from '../../../../../shared-types';
37
+ import { TAriaLive } from '../../../../../shared-types';
38
+ import { TCardSkin } from '../../../../../shared-types';
35
39
  import { TextareaHTMLAttributes } from 'react';
40
+ import { TLayout } from '../../../../../shared-types';
41
+ import { TMessageboxSkin } from '../../../../../shared-types';
36
42
 
37
43
  declare interface BasePktTagProps {
38
44
  skin?: 'blue' | 'blue-light' | 'blue-dark' | 'green' | 'red' | 'beige' | 'yellow' | 'grey' | 'gray';
@@ -45,8 +51,6 @@ declare interface BasePktTagProps {
45
51
  children?: ReactNode;
46
52
  }
47
53
 
48
- declare type Booleanish = boolean | 'true' | 'false';
49
-
50
54
  declare interface ButtonPktTagProps extends BasePktTagProps, HTMLAttributes<HTMLButtonElement> {
51
55
  closeTag: true;
52
56
  type?: 'button' | 'submit' | 'reset';
@@ -108,7 +112,7 @@ export declare interface IPktAccordionItem {
108
112
  }
109
113
 
110
114
  export declare interface IPktAlert extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
111
- skin?: 'error' | 'success' | 'warning' | 'info';
115
+ skin?: TAlertSkin;
112
116
  closeAlert?: boolean;
113
117
  title?: ReactNode;
114
118
  date?: string;
@@ -863,17 +867,11 @@ declare type TCardImageShape = 'square' | 'round';
863
867
 
864
868
  declare type TCardPadding = 'none' | 'default';
865
869
 
866
- declare type TCardSkin = 'outlined' | 'outlined-beige' | 'gray' | 'beige' | 'green' | 'blue';
867
-
868
870
  declare type TCardTagPosition = 'top' | 'bottom';
869
871
 
870
- declare type TLayout = 'vertical' | 'horizontal';
871
-
872
- declare type TMessageboxSkin = 'beige' | 'blue' | 'red' | 'green';
873
-
874
- declare type TPktAccordionSkin = 'borderless' | 'outlined' | 'beige' | 'blue';
872
+ declare type TPktAccordionSkin = TAccordionSkin;
875
873
 
876
- declare type TPktAccordionSkin_2 = 'borderless' | 'outlined' | 'beige' | 'blue';
874
+ declare type TPktAccordionSkin_2 = TAccordionSkin;
877
875
 
878
876
  declare type TPktHeaderServiceMenu = 'none' | 'slot' | 'search' | 'user';
879
877