@oslokommune/punkt-react 12.3.7 → 12.3.8
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 +19 -0
- package/dist/index.d.ts +3 -2
- package/dist/punkt-react.es.js +194 -188
- package/dist/punkt-react.umd.js +35 -35
- package/package.json +3 -3
- package/src/components/datepicker/Datepicker.tsx +4 -4
- package/src/components/preview/PreviewSpecs.tsx +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.3.8](https://github.com/oslokommune/punkt/compare/12.3.7...12.3.8) (2024-10-10)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* PktEventWithTarget løser typing av returverdi fra PktInputElement i React (#1950). Og endre på håndtering av initiell verdi og formValue.
|
|
18
|
+
Oppdaterer samtidig dokumentasjon for Datepicker med informasjon om hendelseshåndtering og bruk i skjema.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Chores
|
|
22
|
+
Ingen
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
|
|
8
27
|
## [12.3.7](https://github.com/oslokommune/punkt/compare/12.3.6...12.3.7) (2024-10-09)
|
|
9
28
|
|
|
10
29
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { InputHTMLAttributes } from 'react';
|
|
|
10
10
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
11
11
|
import { LegacyRef } from 'react';
|
|
12
12
|
import { PktElType } from '../../interfaces/IPktElements';
|
|
13
|
+
import { PktEventWithTarget } from '../../interfaces/IPktElements';
|
|
13
14
|
import * as React_2 from 'react';
|
|
14
15
|
import { ReactElement } from 'react';
|
|
15
16
|
import { ReactNode } from 'react';
|
|
@@ -148,7 +149,7 @@ declare interface IPktDatepicker extends PktElType {
|
|
|
148
149
|
range?: boolean;
|
|
149
150
|
weeknumbers?: boolean;
|
|
150
151
|
withcontrols?: boolean;
|
|
151
|
-
|
|
152
|
+
fullwidth?: boolean;
|
|
152
153
|
min?: string | number | undefined;
|
|
153
154
|
max?: string | number | undefined;
|
|
154
155
|
excludedates?: string[];
|
|
@@ -168,7 +169,7 @@ declare interface IPktDatepicker extends PktElType {
|
|
|
168
169
|
strings?: any;
|
|
169
170
|
className?: string;
|
|
170
171
|
ref?: LegacyRef<HTMLElement>;
|
|
171
|
-
onChange?: (e:
|
|
172
|
+
onChange?: (e: PktEventWithTarget) => void;
|
|
172
173
|
onValueChange?: (e: CustomEvent) => void;
|
|
173
174
|
onToggleHelpText?: (e: CustomEvent) => void;
|
|
174
175
|
}
|