@oslokommune/punkt-react 17.0.9 → 17.1.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 +18 -0
- package/dist/components/combobox/types.d.ts +4 -0
- package/dist/components/datepicker/types.d.ts +2 -0
- package/dist/components/select/Select.d.ts +2 -0
- package/dist/components/textarea/Textarea.d.ts +1 -0
- package/dist/components/textinput/Textinput.d.ts +1 -0
- package/dist/components/timepicker/types.d.ts +2 -0
- package/dist/punkt-react.cjs +1 -1
- package/dist/punkt-react.js +1765 -1715
- package/dist/shared-types/booleanish.d.ts +11 -0
- package/dist/shared-types/index.d.ts +1 -1
- package/dist/shared-utils/forms/described-by.d.ts +24 -0
- package/package.json +3 -3
- package/src/components/combobox/Combobox.tsx +2 -1
- package/src/components/combobox/types.ts +4 -0
- package/src/components/combobox/useComboboxState.ts +5 -1
- package/src/components/datepicker/Datepicker.tsx +7 -1
- package/src/components/datepicker/types.ts +2 -0
- package/src/components/datepicker/useDatepickerState.ts +3 -1
- package/src/components/fileupload/FileUpload.tsx +20 -18
- package/src/components/helptext/Helptext.tsx +3 -0
- package/src/components/inputwrapper/InputWrapper.tsx +20 -8
- package/src/components/select/Select.tsx +46 -32
- package/src/components/textarea/Textarea.tsx +59 -47
- package/src/components/textinput/Textinput.tsx +79 -67
- package/src/components/timepicker/Timepicker.tsx +3 -0
- package/src/components/timepicker/types.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [17.1.0](https://github.com/oslokommune/punkt/compare/17.0.10...17.1.0) (2026-08-24)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
* Opprydding i stiler og tilgjengelighet for skjemaelementer (#3602).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
Ingen
|
|
19
|
+
|
|
20
|
+
### Chores
|
|
21
|
+
Ingen
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
|
|
8
26
|
## [17.0.9](https://github.com/oslokommune/punkt/compare/17.0.8...17.0.9) (2026-08-18)
|
|
9
27
|
|
|
10
28
|
### ⚠ BREAKING CHANGES
|
|
@@ -31,6 +31,9 @@ export interface IPktCombobox {
|
|
|
31
31
|
optionalText?: string;
|
|
32
32
|
tagText?: string;
|
|
33
33
|
useWrapper?: boolean;
|
|
34
|
+
inline?: boolean;
|
|
35
|
+
counter?: boolean;
|
|
36
|
+
hasFieldset?: boolean;
|
|
34
37
|
inputSize?: 'small' | 'medium' | 'xsmall';
|
|
35
38
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
36
39
|
onValueChange?: (values: string[]) => void;
|
|
@@ -77,6 +80,7 @@ export interface IComboboxState {
|
|
|
77
80
|
requiredText?: string;
|
|
78
81
|
tagText?: string;
|
|
79
82
|
useWrapper: boolean;
|
|
83
|
+
inline: boolean;
|
|
80
84
|
inputSize: 'small' | 'medium' | 'xsmall';
|
|
81
85
|
name?: string;
|
|
82
86
|
className?: string;
|
|
@@ -4,6 +4,7 @@ import { TPktInputSize } from '../../shared-types/size';
|
|
|
4
4
|
export interface IPktDatepicker extends Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'onChange'> {
|
|
5
5
|
id: string;
|
|
6
6
|
label: string;
|
|
7
|
+
ariaDescribedby?: string;
|
|
7
8
|
value?: string | string[];
|
|
8
9
|
dateformat?: string;
|
|
9
10
|
multiple?: boolean;
|
|
@@ -22,6 +23,7 @@ export interface IPktDatepicker extends Omit<InputHTMLAttributes<HTMLInputElemen
|
|
|
22
23
|
inputSize?: TPktInputSize;
|
|
23
24
|
hasFieldset?: boolean;
|
|
24
25
|
inline?: boolean;
|
|
26
|
+
counter?: boolean;
|
|
25
27
|
helptext?: string | ReactNode;
|
|
26
28
|
helptextDropdown?: string | ReactNode;
|
|
27
29
|
helptextDropdownButton?: string;
|
|
@@ -20,6 +20,8 @@ export interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement>
|
|
|
20
20
|
requiredTag?: boolean;
|
|
21
21
|
requiredText?: string;
|
|
22
22
|
tagText?: string | null;
|
|
23
|
+
useWrapper?: boolean;
|
|
24
|
+
hasFieldset?: boolean;
|
|
23
25
|
inputSize?: 'small' | 'medium' | 'xsmall';
|
|
24
26
|
/** @deprecated Var aldri implementert — bruk children med `<option>`-elementer. */
|
|
25
27
|
options?: never;
|
|
@@ -5,6 +5,7 @@ export interface IPktTextarea extends TextareaHTMLAttributes<HTMLTextAreaElement
|
|
|
5
5
|
ariaDescribedby?: string;
|
|
6
6
|
ariaLabelledby?: string;
|
|
7
7
|
counter?: boolean;
|
|
8
|
+
hasFieldset?: boolean;
|
|
8
9
|
counterMaxLength?: number;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
errorMessage?: string | ReactNode | ReactNode[];
|
|
@@ -5,6 +5,7 @@ export interface IPktTextinput extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
5
5
|
ariaLabelledby?: string;
|
|
6
6
|
autocomplete?: string;
|
|
7
7
|
counter?: boolean;
|
|
8
|
+
hasFieldset?: boolean;
|
|
8
9
|
counterMaxLength?: number;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
errorMessage?: string | ReactNode | ReactNode[];
|
|
@@ -62,6 +62,8 @@ export interface IPktTimepicker extends Omit<InputHTMLAttributes<HTMLInputElemen
|
|
|
62
62
|
inline?: boolean;
|
|
63
63
|
/** Show visible label and help text (`false` = screen-reader-only label). */
|
|
64
64
|
useWrapper?: boolean;
|
|
65
|
+
/** Bruk fieldset og legend i stedet for label. */
|
|
66
|
+
hasFieldset?: boolean;
|
|
65
67
|
/** Passed through to InputWrapper as `aria-describedby`. */
|
|
66
68
|
ariaDescribedby?: string;
|
|
67
69
|
/** Copy for hours, minutes, buttons, and popup. */
|