@oslokommune/punkt-react 12.31.2 → 12.32.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,25 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [12.32.0](https://github.com/oslokommune/punkt/compare/12.31.2...12.32.0) (2025-04-09)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Combobox (#2378). Co-authored-by: My T. Nguyen <my.nguyen@origo.oslo.kommune.no>
15
+ Co-authored-by: Trine Håve <trine.haave@origo.oslo.kommune.no>
16
+
17
+
18
+ ### Bug Fixes
19
+ Ingen
20
+
21
+ ### Chores
22
+ Ingen
23
+
24
+ ---
25
+
26
+
8
27
  ## [12.31.1](https://github.com/oslokommune/punkt/compare/12.31.0...12.31.1) (2025-04-04)
9
28
 
10
29
  ### ⚠ 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