@oslokommune/punkt-react 18.5.1 → 18.6.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 +17 -0
- package/dist/components/calendar/types.d.ts +2 -16
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +593 -585
- 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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [18.6.0](https://github.com/oslokommune/punkt/compare/18.5.2...18.6.0) (2026-09-09)
|
|
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
|
+
|
|
8
25
|
## [18.5.0](https://github.com/oslokommune/punkt/compare/18.4.0...18.5.0) (2026-09-07)
|
|
9
26
|
|
|
10
27
|
### ⚠ 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 = {
|