@oslokommune/punkt-react 19.12.3 → 19.13.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 +8 -0
- package/dist/components/select/Select.d.ts +3 -18
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +1677 -1667
- package/dist/shared-types/index.d.ts +2 -1
- package/dist/shared-types/select.d.ts +57 -0
- package/package.json +3 -3
- package/src/components/select/Select.tsx +13 -26
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [19.13.0](https://github.com/oslokommune/punkt/compare/19.12.3...19.13.0) (2026-10-14)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
* typesikre select (#3727).
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
|
|
8
16
|
## [19.12.0](https://github.com/oslokommune/punkt/compare/19.11.0...19.12.0) (2026-10-12)
|
|
9
17
|
|
|
10
18
|
### Features
|
|
@@ -1,29 +1,14 @@
|
|
|
1
1
|
import { ReactNode, SelectHTMLAttributes } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IPktSelectBase } from '../../shared-types';
|
|
3
3
|
export type { IPktSelectOption, TSelectOption } from '../../shared-types/select';
|
|
4
|
-
export interface IPktSelectProps extends
|
|
5
|
-
ariaDescribedby?: string;
|
|
6
|
-
ariaLabelledby?: string;
|
|
4
|
+
export interface IPktSelectProps extends Omit<IPktSelectBase, 'helptext' | 'helptextDropdown' | 'errorMessage' | 'value' | 'options'>, Omit<SelectHTMLAttributes<HTMLSelectElement>, keyof IPktSelectBase> {
|
|
7
5
|
children?: ReactNode | ReactNode[];
|
|
8
|
-
disabled?: boolean;
|
|
9
6
|
errorMessage?: string | ReactNode | ReactNode[];
|
|
10
|
-
hasError?: boolean;
|
|
11
7
|
helptext?: string | ReactNode | ReactNode[];
|
|
12
8
|
helptextDropdown?: string | ReactNode | ReactNode[];
|
|
13
|
-
helptextDropdownButton?: string;
|
|
14
9
|
id: string;
|
|
15
|
-
inline?: boolean;
|
|
16
|
-
fullwidth?: boolean;
|
|
17
10
|
label: string;
|
|
18
|
-
|
|
19
|
-
optionalTag?: boolean;
|
|
20
|
-
optionalText?: string;
|
|
21
|
-
requiredTag?: boolean;
|
|
22
|
-
requiredText?: string;
|
|
23
|
-
tagText?: string | null;
|
|
24
|
-
useWrapper?: boolean;
|
|
25
|
-
hasFieldset?: boolean;
|
|
26
|
-
inputSize?: 'small' | 'medium' | 'xsmall';
|
|
11
|
+
value?: SelectHTMLAttributes<HTMLSelectElement>['value'];
|
|
27
12
|
/** @deprecated Var aldri implementert — bruk children med `<option>`-elementer. */
|
|
28
13
|
options?: never;
|
|
29
14
|
}
|