@oslokommune/punkt-react 19.6.0 → 19.8.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 CHANGED
@@ -5,6 +5,19 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [19.8.0](https://github.com/oslokommune/punkt/compare/19.7.0...19.8.0) (2026-10-05)
9
+
10
+ ### Features
11
+ * typesikre messageBox (#3694).
12
+
13
+ ---
14
+
15
+
16
+ ## [19.7.0](https://github.com/oslokommune/punkt/compare/19.6.0...19.7.0) (2026-10-02)
17
+
18
+ ---
19
+
20
+
8
21
  ## [19.6.0](https://github.com/oslokommune/punkt/compare/19.5.2...19.6.0) (2026-10-01)
9
22
 
10
23
  ### Features
@@ -1,43 +1,10 @@
1
1
  import { IPktStringsProps, TPktStringsOverride } from '../../shared-strings';
2
2
  import { ChangeEvent, ChangeEventHandler, FocusEvent, KeyboardEvent, MouseEvent as ReactMouseEvent, KeyboardEvent as ReactKeyboardEvent, ReactNode, RefObject } from 'react';
3
- import { IPktComboboxOption, TPktComboboxDisplayValue, TPktComboboxTagPlacement } from '../../shared-types/combobox';
4
- export interface IPktCombobox extends IPktStringsProps<'combobox' | 'listbox' | 'forms' | 'validation'> {
5
- value?: string | string[];
6
- defaultValue?: string | string[];
7
- options?: IPktComboboxOption[];
8
- defaultOptions?: IPktComboboxOption[];
9
- multiple?: boolean;
10
- maxlength?: number;
11
- typeahead?: boolean;
12
- includeSearch?: boolean;
13
- allowUserInput?: boolean;
14
- displayValueAs?: TPktComboboxDisplayValue;
15
- tagPlacement?: TPktComboboxTagPlacement;
16
- searchPlaceholder?: string;
17
- name?: string;
18
- form?: string;
19
- ariaDescribedby?: string;
20
- id?: string;
21
- disabled?: boolean;
22
- required?: boolean;
23
- placeholder?: string;
24
- label?: string;
3
+ import { IPktComboboxBase, IPktComboboxOption, TPktComboboxDisplayValue, TPktComboboxTagPlacement } from '../../shared-types/combobox';
4
+ export interface IPktCombobox extends Omit<IPktComboboxBase, 'helptext' | 'helptextDropdown' | 'errorMessage'>, IPktStringsProps<'combobox' | 'listbox' | 'forms' | 'validation'> {
25
5
  helptext?: string | ReactNode;
26
6
  helptextDropdown?: string | ReactNode;
27
- helptextDropdownButton?: string;
28
- hasError?: boolean;
29
7
  errorMessage?: string | ReactNode;
30
- fullwidth?: boolean;
31
- requiredTag?: boolean;
32
- requiredText?: string;
33
- optionalTag?: boolean;
34
- optionalText?: string;
35
- tagText?: string;
36
- useWrapper?: boolean;
37
- inline?: boolean;
38
- counter?: boolean;
39
- hasFieldset?: boolean;
40
- inputSize?: 'small' | 'medium' | 'xsmall';
41
8
  onChange?: ChangeEventHandler<HTMLInputElement>;
42
9
  onValueChange?: (values: string[]) => void;
43
10
  className?: string;
@@ -85,7 +52,7 @@ export interface IComboboxState {
85
52
  optionalText?: string;
86
53
  requiredTag: boolean;
87
54
  requiredText?: string;
88
- tagText?: string;
55
+ tagText?: string | null;
89
56
  useWrapper: boolean;
90
57
  inline: boolean;
91
58
  inputSize: 'small' | 'medium' | 'xsmall';
@@ -1,12 +1,9 @@
1
1
  import { FC, HTMLAttributes, ReactNode } from 'react';
2
2
  import { IPktStringsProps } from '../../shared-strings';
3
- import { TMessageboxSkin } from '../../shared-types';
3
+ import { IPktMessageboxBase, TMessageboxSkin } from '../../shared-types';
4
4
  export type { TMessageboxSkin };
5
- export interface IPktMessagebox extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, IPktStringsProps<'generic'> {
6
- skin?: TMessageboxSkin;
5
+ export interface IPktMessagebox extends Omit<IPktMessageboxBase, 'title'>, Omit<HTMLAttributes<HTMLDivElement>, 'title'>, IPktStringsProps<'generic'> {
7
6
  title?: ReactNode;
8
- compact?: boolean;
9
- closable?: boolean;
10
7
  onClose?: () => void;
11
8
  }
12
9
  export declare const PktMessagebox: FC<IPktMessagebox>;