@oslokommune/punkt-react 12.11.6 → 12.11.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 +36 -0
- package/dist/index.d.ts +9 -13
- package/dist/punkt-react.es.js +2720 -2678
- package/dist/punkt-react.umd.js +182 -182
- package/package.json +3 -3
- package/src/components/datepicker/Datepicker.tsx +11 -15
- package/src/components/preview/Preview.tsx +8 -95
- package/src/components/preview/PreviewPropEditor.tsx +157 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,42 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.11.8](https://github.com/oslokommune/punkt/compare/12.11.7...12.11.8) (2024-12-04)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
* Redigér objekter i Komponentbygger (#2061).
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [12.11.7](https://github.com/oslokommune/punkt/compare/12.11.6...12.11.7) (2024-12-04)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
* PktDatepicker React event handling (#2072).
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
8
44
|
## [12.11.6](https://github.com/oslokommune/punkt/compare/12.11.5...12.11.6) (2024-12-02)
|
|
9
45
|
|
|
10
46
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
+
import { ChangeEventHandler } from 'react';
|
|
3
4
|
import { default as default_2 } from 'react';
|
|
4
5
|
import { FC } from 'react';
|
|
6
|
+
import { FocusEventHandler } from 'react';
|
|
5
7
|
import { ForwardRefExoticComponent } from 'react';
|
|
6
8
|
import { HTMLAttributes } from 'react';
|
|
7
9
|
import { HTMLProps } from 'react';
|
|
8
10
|
import { InputHTMLAttributes } from 'react';
|
|
9
11
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
10
12
|
import { LegacyRef } from 'react';
|
|
13
|
+
import { PktDatepicker as PktDatepicker_2 } from '@oslokommune/punkt-elements';
|
|
11
14
|
import * as React_2 from 'react';
|
|
12
15
|
import { ReactElement } from 'react';
|
|
13
16
|
import { ReactNode } from 'react';
|
|
@@ -131,10 +134,9 @@ declare interface IPktCheckbox extends default_2.InputHTMLAttributes<HTMLInputEl
|
|
|
131
134
|
value?: string;
|
|
132
135
|
}
|
|
133
136
|
|
|
134
|
-
declare interface IPktDatepicker extends Omit<PktElType, '
|
|
137
|
+
declare interface IPktDatepicker extends Omit<PktElType, 'ref'> {
|
|
135
138
|
value?: string | string[];
|
|
136
139
|
label?: string;
|
|
137
|
-
id?: string;
|
|
138
140
|
name?: string;
|
|
139
141
|
dateformat?: string;
|
|
140
142
|
multiple?: boolean;
|
|
@@ -162,12 +164,10 @@ declare interface IPktDatepicker extends Omit<PktElType, 'onChange' | 'onInput'
|
|
|
162
164
|
hasError?: boolean;
|
|
163
165
|
errorMessage?: string;
|
|
164
166
|
strings?: any;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
onBlur?: (e: PktEventWithTarget) => void;
|
|
170
|
-
onFocus?: (e: PktEventWithTarget) => void;
|
|
167
|
+
ref?: LegacyRef<PktDatepicker_2>;
|
|
168
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
169
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
170
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
171
171
|
onValueChange?: (e: CustomEvent) => void;
|
|
172
172
|
onToggleHelpText?: (e: CustomEvent) => void;
|
|
173
173
|
}
|
|
@@ -562,7 +562,7 @@ export declare const PktCard: FC<IPktCard>;
|
|
|
562
562
|
|
|
563
563
|
export declare const PktCheckbox: default_2.ForwardRefExoticComponent<IPktCheckbox & default_2.RefAttributes<HTMLInputElement>>;
|
|
564
564
|
|
|
565
|
-
export declare const PktDatepicker:
|
|
565
|
+
export declare const PktDatepicker: ForwardRefExoticComponent<IPktDatepicker>;
|
|
566
566
|
|
|
567
567
|
declare interface PktElType extends default_2.HTMLAttributes<HTMLElement> {
|
|
568
568
|
className?: string;
|
|
@@ -572,10 +572,6 @@ declare interface PktElType extends default_2.HTMLAttributes<HTMLElement> {
|
|
|
572
572
|
id?: string;
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
declare interface PktEventWithTarget extends Event {
|
|
576
|
-
target: EventTarget & HTMLInputElement;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
575
|
export declare const PktFooter: default_2.FC<IPktFooter>;
|
|
580
576
|
|
|
581
577
|
export declare const PktFooterSimple: default_2.FC<IPktFooterSimple>;
|