@oslokommune/punkt-react 12.14.2 → 12.15.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 +39 -0
- package/dist/index.d.ts +10 -4
- package/dist/punkt-react.es.js +30175 -9589
- package/dist/punkt-react.umd.js +563 -286
- package/package.json +4 -4
- package/src/components/preview/Preview.tsx +3 -1
- package/src/components/preview/PreviewPropEditor.tsx +6 -6
- package/src/components/preview/PreviewSpecs.tsx +2 -2
- package/src/components/textinput/Textinput.test.tsx +13 -8
- package/src/components/textinput/Textinput.tsx +23 -112
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,45 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.15.0](https://github.com/oslokommune/punkt/compare/12.14.3...12.15.0) (2025-01-07)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* PktTextinput i Punkt Elements, med React-wrapper (Migrering) (#2087). Pluss:
|
|
15
|
+
|
|
16
|
+
* Erstatning for uuid, med vår nye uuidish-funksjon som genererer en UUID-liknende random streng.
|
|
17
|
+
* En hook i Elements-baseklassen som plukker opp innsendte ReactNodes i attributter og rendrer de ut som DOM-noder
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
### Chores
|
|
24
|
+
Ingen
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [12.14.3](https://github.com/oslokommune/punkt/compare/12.14.2...12.14.3) (2025-01-03)
|
|
30
|
+
|
|
31
|
+
### ⚠ BREAKING CHANGES
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
Ingen
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
* Komponentbygger forårsaker evig loop i Datepicker (#2104). Og button-varianter har fått feil styling…
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Chores
|
|
42
|
+
Ingen
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
|
|
8
47
|
## [12.14.2](https://github.com/oslokommune/punkt/compare/12.14.1...12.14.2) (2025-01-02)
|
|
9
48
|
|
|
10
49
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ import { FocusEventHandler } from 'react';
|
|
|
7
7
|
import { ForwardRefExoticComponent } from 'react';
|
|
8
8
|
import { HTMLAttributes } from 'react';
|
|
9
9
|
import { HTMLProps } from 'react';
|
|
10
|
-
import { InputHTMLAttributes } from 'react';
|
|
11
10
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
12
11
|
import { LegacyRef } from 'react';
|
|
13
12
|
import { PktDatepicker as PktDatepicker_2 } from '@oslokommune/punkt-elements';
|
|
13
|
+
import { PktTextinput as PktTextinput_2 } from '@oslokommune/punkt-elements';
|
|
14
14
|
import * as React_2 from 'react';
|
|
15
15
|
import { ReactElement } from 'react';
|
|
16
16
|
import { ReactNode } from 'react';
|
|
@@ -422,9 +422,8 @@ declare interface IPktTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
422
422
|
useWrapper?: boolean;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
declare interface IPktTextinput extends
|
|
425
|
+
declare interface IPktTextinput extends Omit<PktElType, 'ref'> {
|
|
426
426
|
id: string;
|
|
427
|
-
ariaDescribedby?: string;
|
|
428
427
|
ariaLabelledby?: string;
|
|
429
428
|
autocomplete?: string;
|
|
430
429
|
counter?: boolean;
|
|
@@ -451,6 +450,13 @@ declare interface IPktTextinput extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
451
450
|
useWrapper?: boolean;
|
|
452
451
|
value?: string;
|
|
453
452
|
omitSearchIcon?: boolean;
|
|
453
|
+
ref?: LegacyRef<PktTextinput_2>;
|
|
454
|
+
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
455
|
+
onInput?: ChangeEventHandler<HTMLInputElement>;
|
|
456
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
457
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
458
|
+
onValueChange?: (e: CustomEvent) => void;
|
|
459
|
+
onToggleHelpText?: (e: CustomEvent) => void;
|
|
454
460
|
}
|
|
455
461
|
|
|
456
462
|
declare interface IRadio extends default_2.InputHTMLAttributes<HTMLInputElement> {
|
|
@@ -640,7 +646,7 @@ export declare const PktTag: FC<IPktTag>;
|
|
|
640
646
|
|
|
641
647
|
export declare const PktTextarea: ForwardRefExoticComponent<IPktTextareaProps & RefAttributes<HTMLTextAreaElement>>;
|
|
642
648
|
|
|
643
|
-
export declare const PktTextinput:
|
|
649
|
+
export declare const PktTextinput: ForwardRefExoticComponent<IPktTextinput>;
|
|
644
650
|
|
|
645
651
|
declare interface PreviewProps {
|
|
646
652
|
children?: ReactNode;
|