@oslokommune/punkt-react 16.17.0 → 16.17.2
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 +34 -0
- package/dist/{dialog-polyfill.esm-DrODM08x-C8rdFsL8.js → dialog-polyfill.esm-B7W3teD0-CHMBcS-s.js} +1 -1
- package/dist/index.d.ts +12 -8
- package/dist/punkt-react.es.js +3223 -3078
- package/dist/punkt-react.umd.js +61 -2
- package/dist/shared-types/index.d.ts +1 -0
- package/dist/shared-types/searchinput.d.ts +41 -0
- package/package.json +4 -4
- package/src/components/index.ts +1 -0
- package/src/components/searchinput/SearchInput.test.tsx +14 -0
- package/src/components/searchinput/SearchInput.tsx +47 -26
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,40 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [16.17.2](https://github.com/oslokommune/punkt/compare/16.17.1...16.17.2) (2026-05-20)
|
|
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
|
+
|
|
25
|
+
## [16.17.1](https://github.com/oslokommune/punkt/compare/16.17.0...16.17.1) (2026-05-19)
|
|
26
|
+
|
|
27
|
+
### ⚠ BREAKING CHANGES
|
|
28
|
+
Ingen
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
Ingen
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
Ingen
|
|
35
|
+
|
|
36
|
+
### Chores
|
|
37
|
+
Ingen
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
|
|
8
42
|
## [16.17.0](https://github.com/oslokommune/punkt/compare/16.16.2...16.17.0) (2026-05-15)
|
|
9
43
|
|
|
10
44
|
### ⚠ BREAKING CHANGES
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { IPktConsent as IPktConsent_2 } from '@oslokommune/punkt-elements';
|
|
|
19
19
|
import { IPktHeaderMenu as IPktHeaderMenu_2 } from './shared-types';
|
|
20
20
|
import { IPktHeading as IPktHeading_2 } from '@oslokommune/punkt-elements';
|
|
21
21
|
import { IPktLoader as IPktLoader_2 } from '@oslokommune/punkt-elements';
|
|
22
|
+
import { IPktSearchInputSuggestion } from './shared-types/searchinput';
|
|
22
23
|
import { ITimepickerStrings } from './shared-types/timepicker';
|
|
23
24
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
24
25
|
import { LegacyRef } from 'react';
|
|
@@ -962,7 +963,7 @@ declare interface ISearch extends HTMLProps<HTMLInputElement> {
|
|
|
962
963
|
label?: string;
|
|
963
964
|
name?: string;
|
|
964
965
|
placeholder?: string;
|
|
965
|
-
suggestions?:
|
|
966
|
+
suggestions?: PktSearchInputSuggestion[];
|
|
966
967
|
value?: string | undefined;
|
|
967
968
|
onSearch?: (value: string) => void;
|
|
968
969
|
onSuggestionClick?: (index: number) => void;
|
|
@@ -1141,6 +1142,16 @@ export declare const PktRadioButton: ForwardRefExoticComponent<IPktRadioButton &
|
|
|
1141
1142
|
|
|
1142
1143
|
export declare const PktSearchInput: ForwardRefExoticComponent<(Omit<ISearchForm, "ref"> | Omit<ISearchInput, "ref">) & RefAttributes<HTMLInputElement>>;
|
|
1143
1144
|
|
|
1145
|
+
/**
|
|
1146
|
+
* React suggestion item: portable fields from {@link IPktSearchInputSuggestion}
|
|
1147
|
+
* plus optional rich content and per-row handler.
|
|
1148
|
+
*/
|
|
1149
|
+
export declare type PktSearchInputSuggestion = Omit<IPktSearchInputSuggestion, 'title' | 'text'> & {
|
|
1150
|
+
title?: string | ReactNode;
|
|
1151
|
+
text?: string | ReactNode;
|
|
1152
|
+
onClick?: () => void;
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1144
1155
|
export declare const PktSelect: ForwardRefExoticComponent<IPktSelectProps & RefAttributes<HTMLSelectElement>>;
|
|
1145
1156
|
|
|
1146
1157
|
export declare const PktStep: ({ children, className, status, title }: IPktStep) => JSX_2.Element;
|
|
@@ -1179,13 +1190,6 @@ declare interface Representing {
|
|
|
1179
1190
|
orgNumber?: string | number;
|
|
1180
1191
|
}
|
|
1181
1192
|
|
|
1182
|
-
declare interface SearchSuggestion {
|
|
1183
|
-
title?: string | ReactNode;
|
|
1184
|
-
text?: string | ReactNode;
|
|
1185
|
-
href?: string;
|
|
1186
|
-
onClick?: () => void;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
1193
|
declare interface SocialLink {
|
|
1190
1194
|
href: string;
|
|
1191
1195
|
iconName?: string;
|