@oslokommune/punkt-react 18.5.1 → 18.6.1
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/calendar/types.d.ts +2 -16
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +601 -593
- package/dist/shared-types/calendar.d.ts +67 -0
- package/dist/shared-types/index.d.ts +2 -1
- package/package.json +2 -2
- package/src/components/calendar/types.ts +2 -23
- package/src/components/calendar/useCalendarState.ts +8 -8
- 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.6.1](https://github.com/oslokommune/punkt/compare/18.6.0...18.6.1) (2026-09-09)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* Fiks rerendering og UU-problemer i datepicker (#3641). - Lagt til conformance-tester for datepicker
|
|
18
|
+
- Oppdaget og fikset en del UU-problemer
|
|
19
|
+
- Tettet igjen rerendering-hullet
|
|
20
|
+
- Lagt til et par nye tester
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Chores
|
|
24
|
+
Ingen
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [18.6.0](https://github.com/oslokommune/punkt/compare/18.5.2...18.6.0) (2026-09-09)
|
|
30
|
+
|
|
31
|
+
### ⚠ BREAKING CHANGES
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
Ingen
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
Ingen
|
|
39
|
+
|
|
40
|
+
### Chores
|
|
41
|
+
Ingen
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
|
|
8
46
|
## [18.5.0](https://github.com/oslokommune/punkt/compare/18.4.0...18.5.0) (2026-09-07)
|
|
9
47
|
|
|
10
48
|
### ⚠ BREAKING CHANGES
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IDateConstraints, TDateRangeMap } from '../../shared-types/calendar';
|
|
2
|
-
import { IPktStringsProps } from '../../shared-strings';
|
|
1
|
+
import { IDateConstraints, IPktCalendarBase, TDateRangeMap } from '../../shared-types/calendar';
|
|
3
2
|
/** Datonavn og navigasjonstekster slik kalender-underkomponentene forventer dem. */
|
|
4
3
|
export interface IPktCalendarStrings {
|
|
5
4
|
month: string;
|
|
@@ -19,22 +18,9 @@ export interface PktCalendarHandle {
|
|
|
19
18
|
focusOnCurrentDate: () => void;
|
|
20
19
|
close: () => void;
|
|
21
20
|
}
|
|
22
|
-
export interface IPktCalendar extends
|
|
23
|
-
selected?: string[];
|
|
24
|
-
multiple?: boolean;
|
|
25
|
-
maxMultiple?: number;
|
|
26
|
-
range?: boolean;
|
|
27
|
-
earliest?: string | null;
|
|
28
|
-
latest?: string | null;
|
|
29
|
-
excludedates?: Date[] | string[];
|
|
30
|
-
excludeweekdays?: string[];
|
|
31
|
-
weeknumbers?: boolean;
|
|
32
|
-
withcontrols?: boolean;
|
|
33
|
-
currentmonth?: Date | string | null;
|
|
34
|
-
today?: string;
|
|
21
|
+
export interface IPktCalendar extends IPktCalendarBase {
|
|
35
22
|
onDateSelected?: (selected: string[]) => void;
|
|
36
23
|
onClose?: () => void;
|
|
37
|
-
id?: string;
|
|
38
24
|
className?: string;
|
|
39
25
|
}
|
|
40
26
|
export type TDayViewData = {
|