@oslokommune/punkt-react 12.31.2 → 12.32.6
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 +108 -0
- package/dist/index.d.ts +17 -0
- package/dist/punkt-react.es.js +20285 -20032
- package/dist/punkt-react.umd.js +686 -472
- package/package.json +6 -5
- package/src/components/button/Button.test.tsx +32 -0
- package/src/components/combobox/Combobox.tsx +60 -0
- package/src/components/index.ts +1 -0
- package/src/components/interfaces.ts +1 -0
- package/src/components/preview/Preview.tsx +13 -0
- package/src/components/preview/PreviewPropEditor.tsx +1 -1
- package/src/components/preview/PreviewSpecs.tsx +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,114 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.32.6](https://github.com/oslokommune/punkt/compare/12.32.5...12.32.6) (2025-04-11)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
* Forsøker å publisere (#2407).
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [12.32.5](https://github.com/oslokommune/punkt/compare/12.32.4...12.32.5) (2025-04-11)
|
|
27
|
+
|
|
28
|
+
### ⚠ BREAKING CHANGES
|
|
29
|
+
Ingen
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
Ingen
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
* Flytt Combobox-test til testing-utils for å hindre sirkulær avhengighet (#2406).
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Chores
|
|
39
|
+
Ingen
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [12.32.4](https://github.com/oslokommune/punkt/compare/12.32.3...12.32.4) (2025-04-11)
|
|
45
|
+
|
|
46
|
+
### ⚠ BREAKING CHANGES
|
|
47
|
+
Ingen
|
|
48
|
+
|
|
49
|
+
### Features
|
|
50
|
+
Ingen
|
|
51
|
+
|
|
52
|
+
### Bug Fixes
|
|
53
|
+
* Oppdaterer Vite. Kanskje det fikser byggeproblemer? (#2405).
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Chores
|
|
57
|
+
Ingen
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [12.32.2](https://github.com/oslokommune/punkt/compare/12.32.1...12.32.2) (2025-04-11)
|
|
63
|
+
|
|
64
|
+
### ⚠ BREAKING CHANGES
|
|
65
|
+
Ingen
|
|
66
|
+
|
|
67
|
+
### Features
|
|
68
|
+
Ingen
|
|
69
|
+
|
|
70
|
+
### Bug Fixes
|
|
71
|
+
Ingen
|
|
72
|
+
|
|
73
|
+
### Chores
|
|
74
|
+
Ingen
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
## [12.32.1](https://github.com/oslokommune/punkt/compare/12.32.0...12.32.1) (2025-04-11)
|
|
80
|
+
|
|
81
|
+
### ⚠ BREAKING CHANGES
|
|
82
|
+
Ingen
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
Ingen
|
|
86
|
+
|
|
87
|
+
### Bug Fixes
|
|
88
|
+
* Button bug fixes (#2398).
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### Chores
|
|
92
|
+
Ingen
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## [12.32.0](https://github.com/oslokommune/punkt/compare/12.31.2...12.32.0) (2025-04-09)
|
|
98
|
+
|
|
99
|
+
### ⚠ BREAKING CHANGES
|
|
100
|
+
Ingen
|
|
101
|
+
|
|
102
|
+
### Features
|
|
103
|
+
* Combobox (#2378). Co-authored-by: My T. Nguyen <my.nguyen@origo.oslo.kommune.no>
|
|
104
|
+
Co-authored-by: Trine Håve <trine.haave@origo.oslo.kommune.no>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Bug Fixes
|
|
108
|
+
Ingen
|
|
109
|
+
|
|
110
|
+
### Chores
|
|
111
|
+
Ingen
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
|
|
8
116
|
## [12.31.1](https://github.com/oslokommune/punkt/compare/12.31.0...12.31.1) (2025-04-04)
|
|
9
117
|
|
|
10
118
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { HTMLProps } from 'react';
|
|
|
13
13
|
import { InputHTMLAttributes } from 'react';
|
|
14
14
|
import { IPktBackLink as IPktBackLink_2 } from '@oslokommune/punkt-elements';
|
|
15
15
|
import { IPktButton as IPktButton_2 } from '@oslokommune/punkt-elements';
|
|
16
|
+
import { IPktCombobox as IPktCombobox_2 } from '@oslokommune/punkt-elements';
|
|
16
17
|
import { IPktLoader as IPktLoader_2 } from '@oslokommune/punkt-elements';
|
|
17
18
|
import { IPktProgressbar as IPktProgressbar_2 } from '@oslokommune/punkt-elements';
|
|
18
19
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -40,6 +41,8 @@ declare type ExtendedBackLink = Omit<IPktBackLink_2, 'text'> & AnchorHTMLAttribu
|
|
|
40
41
|
|
|
41
42
|
declare type ExtendedButton = IPktButton_2 & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
42
43
|
|
|
44
|
+
declare type ExtendedCombobox = Omit<IPktCombobox_2, 'helptext'> & SelectHTMLAttributes<HTMLSelectElement>;
|
|
45
|
+
|
|
43
46
|
declare type ExtendedLoader = IPktLoader_2 & PktElType;
|
|
44
47
|
|
|
45
48
|
declare type ExtendedProgressbar = IPktProgressbar_2 & PktElType;
|
|
@@ -157,6 +160,17 @@ export declare interface IPktCheckbox extends InputHTMLAttributes<HTMLInputEleme
|
|
|
157
160
|
onValueChange?: (e: CustomEvent) => void;
|
|
158
161
|
}
|
|
159
162
|
|
|
163
|
+
export declare interface IPktCombobox extends ExtendedCombobox {
|
|
164
|
+
helptext?: string | ReactNode | ReactNode[];
|
|
165
|
+
ref?: LegacyRef<HTMLSelectElement>;
|
|
166
|
+
onChange?: ChangeEventHandler<HTMLSelectElement>;
|
|
167
|
+
onInput?: ChangeEventHandler<HTMLSelectElement>;
|
|
168
|
+
onBlur?: FocusEventHandler<HTMLSelectElement>;
|
|
169
|
+
onFocus?: FocusEventHandler<HTMLSelectElement>;
|
|
170
|
+
onValueChange?: (e: CustomEvent) => void;
|
|
171
|
+
onToggleHelpText?: (e: CustomEvent) => void;
|
|
172
|
+
}
|
|
173
|
+
|
|
160
174
|
export declare interface IPktDatepicker extends InputHTMLAttributes<HTMLInputElement> {
|
|
161
175
|
value?: string | string[];
|
|
162
176
|
label?: string;
|
|
@@ -595,6 +609,8 @@ export declare const PktCard: FC<IPktCard>;
|
|
|
595
609
|
|
|
596
610
|
export declare const PktCheckbox: default_2.ForwardRefExoticComponent<IPktCheckbox>;
|
|
597
611
|
|
|
612
|
+
export declare const PktCombobox: FC<IPktCombobox>;
|
|
613
|
+
|
|
598
614
|
export declare const PktDatepicker: FC<IPktDatepicker>;
|
|
599
615
|
|
|
600
616
|
declare interface PktElType extends default_2.HTMLAttributes<HTMLElement> {
|
|
@@ -689,6 +705,7 @@ declare type PropObject = {
|
|
|
689
705
|
converter?: string;
|
|
690
706
|
reflect?: boolean;
|
|
691
707
|
default?: any;
|
|
708
|
+
previewDefault?: any;
|
|
692
709
|
items?: PropObject;
|
|
693
710
|
};
|
|
694
711
|
|