@oslokommune/punkt-react 12.36.2 → 12.37.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,24 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [12.37.0](https://github.com/oslokommune/punkt/compare/12.36.2...12.37.0) (2025-05-05)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Ny komponent Consent - innstillinger for informasjonskapsler (#2467).
15
+
16
+
17
+ ### Bug Fixes
18
+ Ingen
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [12.36.0](https://github.com/oslokommune/punkt/compare/12.35.0...12.36.0) (2025-04-28)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
package/dist/index.d.ts CHANGED
@@ -7,12 +7,14 @@ import { default as default_2 } from 'react';
7
7
  import { FC } from 'react';
8
8
  import { FocusEventHandler } from 'react';
9
9
  import { ForwardedRef } from 'react';
10
+ import { ForwardRefExoticComponent } from 'react';
10
11
  import { HTMLAttributes } from 'react';
11
12
  import { HTMLProps } from 'react';
12
13
  import { InputHTMLAttributes } from 'react';
13
14
  import { IPktBackLink as IPktBackLink_2 } from '@oslokommune/punkt-elements';
14
15
  import { IPktButton as IPktButton_2 } from '@oslokommune/punkt-elements';
15
16
  import { IPktCombobox as IPktCombobox_2 } from '@oslokommune/punkt-elements';
17
+ import { IPktConsent as IPktConsent_2 } from '@oslokommune/punkt-elements';
16
18
  import { IPktLoader as IPktLoader_2 } from '@oslokommune/punkt-elements';
17
19
  import { IPktProgressbar as IPktProgressbar_2 } from '@oslokommune/punkt-elements';
18
20
  import { JSX as JSX_2 } from 'react/jsx-runtime';
@@ -164,6 +166,11 @@ export declare interface IPktCombobox extends ExtendedCombobox {
164
166
  onToggleHelpText?: (e: CustomEvent) => void;
165
167
  }
166
168
 
169
+ declare interface IPktConsent extends IPktConsent_2 {
170
+ ref?: LegacyRef<HTMLDivElement>;
171
+ onToggleConsent?: (e: CustomEvent) => void;
172
+ }
173
+
167
174
  export declare interface IPktDatepicker extends InputHTMLAttributes<HTMLInputElement> {
168
175
  value?: string | string[];
169
176
  label?: string;
@@ -207,6 +214,10 @@ export declare interface IPktFooter extends default_2.HTMLAttributes<HTMLDivElem
207
214
  personvernOgInfoLink?: string;
208
215
  tilgjengelighetLink?: string;
209
216
  openLinksInNewTab?: boolean;
217
+ includeConsent?: boolean;
218
+ hotjarId?: string | null;
219
+ googleAnalyticsId?: string | null;
220
+ onToggleConsent?: (e: CustomEvent) => void;
210
221
  }
211
222
 
212
223
  export declare interface IPktFooterSimple extends default_2.HTMLAttributes<HTMLDivElement> {
@@ -219,6 +230,9 @@ export declare interface IPktFooterSimple extends default_2.HTMLAttributes<HTMLD
219
230
  personvernOgInfoLink?: string;
220
231
  tilgjengelighetLink?: string;
221
232
  openLinksInNewTab?: boolean;
233
+ includeConsent?: boolean;
234
+ hotjarId?: string | null;
235
+ googleAnalyticsId?: string | null;
222
236
  }
223
237
 
224
238
  export declare interface IPktHeader extends HTMLAttributes<HTMLDivElement> {
@@ -604,6 +618,8 @@ export declare const PktCheckbox: default_2.ForwardRefExoticComponent<IPktCheckb
604
618
 
605
619
  export declare const PktCombobox: FC<IPktCombobox>;
606
620
 
621
+ export declare const PktConsent: ForwardRefExoticComponent<IPktConsent>;
622
+
607
623
  export declare const PktDatepicker: FC<IPktDatepicker>;
608
624
 
609
625
  declare interface PktElType extends default_2.HTMLAttributes<HTMLElement> {