@oslokommune/punkt-react 18.6.0 → 18.7.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 +38 -0
- package/dist/components/card/Card.d.ts +2 -35
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +552 -541
- package/dist/shared-types/card.d.ts +86 -0
- package/dist/shared-types/index.d.ts +4 -1
- package/dist/shared-types/layout.d.ts +2 -1
- package/dist/shared-types/skin.d.ts +1 -4
- package/package.json +2 -2
- package/src/components/card/Card.tsx +12 -43
- package/src/components/datepicker/Datepicker.accessibility.test.tsx +9 -5
- package/src/components/datepicker/Datepicker.core.test.tsx +1 -1
- package/src/components/datepicker/Datepicker.selection.test.tsx +23 -0
- package/src/components/datepicker/DatepickerInputs.tsx +6 -7
- package/src/components/datepicker/useDatepickerState.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,44 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [18.7.0](https://github.com/oslokommune/punkt/compare/18.6.1...18.7.0) (2026-09-10)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
Ingen
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [18.6.1](https://github.com/oslokommune/punkt/compare/18.6.0...18.6.1) (2026-09-09)
|
|
26
|
+
|
|
27
|
+
### ⚠ BREAKING CHANGES
|
|
28
|
+
Ingen
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
Ingen
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
* Fiks rerendering og UU-problemer i datepicker (#3641). - Lagt til conformance-tester for datepicker
|
|
35
|
+
- Oppdaget og fikset en del UU-problemer
|
|
36
|
+
- Tettet igjen rerendering-hullet
|
|
37
|
+
- Lagt til et par nye tester
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Chores
|
|
41
|
+
Ingen
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
|
|
8
46
|
## [18.6.0](https://github.com/oslokommune/punkt/compare/18.5.2...18.6.0) (2026-09-09)
|
|
9
47
|
|
|
10
48
|
### ⚠ BREAKING CHANGES
|
|
@@ -1,40 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
|
-
import { TCardSkin, TLayout
|
|
2
|
+
import { IPktCardBase, TCardSkin, TLayout } from '../../shared-types';
|
|
3
3
|
export type { TCardSkin, TLayout };
|
|
4
|
-
|
|
5
|
-
type TCardImageShape = 'square' | 'round';
|
|
6
|
-
type TCardImageAspect = 'auto' | '1-1' | '4-3' | '3-2' | '16-9' | '19-10';
|
|
7
|
-
type TCardTagPosition = 'top' | 'bottom';
|
|
8
|
-
type THeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
9
|
-
interface ICardTag {
|
|
10
|
-
skin?: TTagSkin;
|
|
11
|
-
iconName?: string;
|
|
12
|
-
ariaLabel?: string;
|
|
13
|
-
text: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IPktCard extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
16
|
-
ariaLabel?: string;
|
|
17
|
-
metaLead?: string | null;
|
|
18
|
-
borderOnHover?: boolean;
|
|
19
|
-
zoom?: boolean;
|
|
20
|
-
metaTrail?: string | null;
|
|
21
|
-
layout?: TLayout;
|
|
22
|
-
heading?: string;
|
|
23
|
-
headingLevel?: THeadingLevel;
|
|
24
|
-
image?: {
|
|
25
|
-
src: string;
|
|
26
|
-
alt: string;
|
|
27
|
-
};
|
|
28
|
-
imageShape?: TCardImageShape;
|
|
29
|
-
imageAspect?: TCardImageAspect;
|
|
30
|
-
restrictImageHeight?: boolean;
|
|
31
|
-
clickCardLink?: string | null;
|
|
32
|
-
padding?: TCardPadding;
|
|
33
|
-
openLinkInNewTab?: boolean;
|
|
34
|
-
skin?: TCardSkin;
|
|
35
|
-
subheading?: string;
|
|
36
|
-
tagPosition?: TCardTagPosition;
|
|
37
|
-
tags?: ICardTag[];
|
|
4
|
+
export interface IPktCard extends IPktCardBase, Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
38
5
|
children?: ReactNode;
|
|
39
6
|
ref?: Ref<HTMLElement>;
|
|
40
7
|
}
|