@oslokommune/punkt-react 12.39.3 → 12.39.4

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.39.4](https://github.com/oslokommune/punkt/compare/12.39.3...12.39.4) (2025-05-16)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ * Fjerne begrensning på antall breadcrumbs-nivåer (#2552).
18
+
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
8
26
  ## [12.39.0](https://github.com/oslokommune/punkt/compare/12.38.2...12.39.0) (2025-05-15)
9
27
 
10
28
  ### ⚠ BREAKING CHANGES
@@ -28720,7 +28720,7 @@ const $r = jr({
28720
28720
  events: {}
28721
28721
  }), KH = Ir(
28722
28722
  ({ breadcrumbs: n, navigationType: r, className: i, ...l }, d) => {
28723
- const h = n.slice(0, 4), m = h[h.length - 2], D = [i, "pkt-breadcrumbs"].filter(Boolean).join(" ");
28723
+ const h = n, m = h[h.length - 2], D = [i, "pkt-breadcrumbs"].filter(Boolean).join(" ");
28724
28724
  return /* @__PURE__ */ L.jsxs("nav", { ref: d, "aria-label": "brødsmulemeny", className: D, children: [
28725
28725
  /* @__PURE__ */ L.jsx("ol", { className: "pkt-breadcrumbs__list pkt-breadcrumbs--desktop", children: h.map((C, T) => /* @__PURE__ */ L.jsx("li", { className: "pkt-breadcrumbs__item", children: T === h.length - 1 ? /* @__PURE__ */ L.jsx("span", { className: "pkt-breadcrumbs__label", "aria-current": "true", children: /* @__PURE__ */ L.jsx("span", { className: "pkt-breadcrumbs__text", children: C.text }) }) : r === "router" ? /* @__PURE__ */ L.jsxs(
28726
28726
  rE,
@@ -1415,7 +1415,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
1415
1415
  <ul>
1416
1416
  ${n.map(r=>be`<li>${r}</li>`)}
1417
1417
  </ul>
1418
- `}doStuff(n){return n.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};Lg([z({type:String})],Nh.prototype,"string",2),Lg([z({converter:j1})],Nh.prototype,"strings",2),Lg([z({type:Boolean})],Nh.prototype,"darkmode",2),Lg([z({type:Array})],Nh.prototype,"_list",2),Nh=Lg([dr("pkt-component")],Nh);const fO=Or({tagName:"pkt-accordion",elementClass:RP,react:$e,displayName:"PktAccordion"}),G1=$e.forwardRef(({children:n,...r},i)=>L.jsx(fO,{"data-testid":"pkt-accordion",...r,ref:i,children:L.jsx("div",{className:"pkt-contents",children:n})}));G1.displayName="PktAccordion";const pO=Or({tagName:"pkt-accordion-item",elementClass:MP,react:$e,displayName:"PktAccordionItem",events:{onClick:"click"}}),K1=$e.forwardRef(({children:n,...r},i)=>L.jsx(pO,{ref:i,...r,children:L.jsx("div",{className:"pkt-contents",children:n})}));K1.displayName="PktAccordionItem";const hO=Or({tagName:"pkt-alert",elementClass:dl,react:$e,displayName:"PktAlert",events:{onClose:"close"}}),Q1=$e.forwardRef(({children:n,...r},i)=>L.jsx(hO,{ref:i,...r,children:L.jsx("div",{className:"pkt-contents",children:n})}));Q1.displayName="PktAlert";const X1=Or({tagName:"pkt-backlink",elementClass:Ch,react:$e,displayName:"PktBackLink"});X1.displayName="PktBackLink";const br=Or({tagName:"pkt-icon",elementClass:Lf,react:$e,displayName:"PktIcon",events:{}}),mO=$e.forwardRef(({breadcrumbs:n,navigationType:r,className:i,...l},c)=>{const h=n.slice(0,4),m=h[h.length-2],D=[i,"pkt-breadcrumbs"].filter(Boolean).join(" ");return L.jsxs("nav",{ref:c,"aria-label":"brødsmulemeny",className:D,children:[L.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:h.map((C,T)=>L.jsx("li",{className:"pkt-breadcrumbs__item",children:T===h.length-1?L.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:L.jsx("span",{className:"pkt-breadcrumbs__text",children:C.text})}):r==="router"?L.jsxs(Ff.Link,{to:C.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[L.jsx(br,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),L.jsx("span",{className:"pkt-breadcrumbs__text",children:C.text})]}):L.jsxs("a",{href:C.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[L.jsx(br,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),L.jsx("span",{className:"pkt-breadcrumbs__text",children:C.text})]})},`breadcrumb-${T}`))}),r==="router"?L.jsxs(Ff.Link,{to:m.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[L.jsx(br,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),L.jsx("span",{className:"pkt-breadcrumbs__text",children:m.text})]}):L.jsxs("a",{href:m.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[L.jsx(br,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),L.jsx("span",{className:"pkt-breadcrumbs__text",children:m.text})]})]})}),gO=Or({tagName:"pkt-button",elementClass:Di,react:$e,displayName:"PktButton",events:{onButtonClick:"button-click"}}),Fd=$e.forwardRef(({children:n,...r},i)=>L.jsx(gO,{...r,ref:i,children:L.jsx("div",{className:"pkt-contents",children:n})}));Fd.displayName="PktButton";const vO=Or({tagName:"pkt-card",elementClass:xa,react:$e,displayName:"PktCard",events:{}}),J1=$e.forwardRef(({children:n,...r},i)=>L.jsx(vO,{...r,ref:i,children:L.jsx("div",{className:"pkt-contents",children:n})}));J1.displayName="PktCard";const y0=Or({tagName:"pkt-checkbox",elementClass:Es,react:$e,displayName:"PktCheckbox",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange"}}),yO=Or({tagName:"pkt-combobox",elementClass:Xr,react:$e,displayName:"PktCombobox",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Z1=$e.forwardRef(({children:n,helptext:r,...i},l)=>L.jsxs(yO,{...i,ref:l,children:[r&&L.jsx("div",{slot:"helptext",className:"pkt-contents",children:r}),n]}));Z1.displayName="PktCombobox";const ab=Or({tagName:"pkt-consent",elementClass:xd,react:$e,displayName:"PktConsent",events:{onToggleConsent:"toggle-consent"}});ab.displayName="PktConsent";const bO=Or({tagName:"pkt-datepicker",elementClass:Jr,react:$e,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),b0=$e.forwardRef(({helptext:n,...r},i)=>L.jsx(bO,{ref:i,...r,children:L.jsx("div",{className:"pkt-contents",slot:"helptext",children:n})}));b0.displayName="PktDatepicker";const kO=({columnOne:n,columnTwo:r,socialLinks:i,className:l,openLinksInNewTab:c=!1,personvernOgInfoLink:h="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:m="https://www.oslo.kommune.no/tilgjengelighet/",includeConsent:D=!1,hotjarId:C=null,googleAnalyticsId:T=null,onToggleConsent:$=N=>{console.log(N.detail)}})=>{var O,B;const N=[l,"pkt-footer"].filter(Boolean).join(" ");return L.jsx("footer",{className:N,"data-mode":"dark",children:L.jsxs("div",{className:"pkt-footer__container",children:[L.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[L.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[L.jsx("h2",{className:"pkt-footer__title",children:n.title}),L.jsxs("ul",{className:"pkt-footer__list",children:[n.text&&L.jsx("li",{className:"pkt-footer__text",children:n.text}),(O=n.links)==null?void 0:O.map((I,K)=>L.jsx("li",{className:"pkt-footer__list-item",children:L.jsxs("a",{className:`pkt-footer__link ${I.external?"pkt-link--external":""}`,href:I.href,target:I.openInNewTab||c?"_blank":"_self",rel:I.openInNewTab||c?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer__link-icon",name:"chevron-right"}),I.text]})},`links-${K}`))]})]}),L.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[L.jsx("h2",{className:"pkt-footer__title",children:r.title}),L.jsxs("ul",{className:"pkt-footer__list",children:[r.text&&L.jsx("li",{className:"pkt-footer__text",children:r.text}),(B=r.links)==null?void 0:B.map((I,K)=>L.jsx("li",{className:"pkt-footer__list-item",children:L.jsxs("a",{className:`pkt-footer__link ${I.external?"pkt-link--external":""}`,href:I.href,target:I.openInNewTab||c?"_blank":"_self",rel:I.openInNewTab||c?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer__link-icon",name:"chevron-right"}),I.text]})},`links-${K}`))]})]}),L.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[L.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),L.jsxs("ul",{className:"pkt-footer__list",children:[L.jsx("li",{className:"pkt-footer__list-item",children:L.jsxs("a",{className:"pkt-footer__link",href:h,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),L.jsx("li",{className:"pkt-footer__list-item",children:L.jsxs("a",{className:"pkt-footer__link",href:m,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})}),D&&L.jsx("li",{className:"pkt-footer__list-item",children:L.jsx(ab,{triggerType:"footerlink",hotjarId:C,googleAnalyticsId:T,onToggleConsent:$})})]})]})]}),i&&L.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[L.jsx("div",{className:"pkt-footer__social-languages",children:i.filter(I=>I.language).map((I,K)=>L.jsx("div",{className:"pkt-footer__social-language",children:L.jsx("a",{href:I.href,"aria-label":`til ${I.language} versjon av nettsiden`,target:I.openInNewTab||c?"_blank":"_self",rel:I.openInNewTab||c?"noopener noreferrer":void 0,children:I.language})},`sociallinks-language-${K}`))}),L.jsx("div",{className:"pkt-footer__social-icons",children:i.filter(I=>I.iconName).map((I,K)=>L.jsx($e.Fragment,{children:L.jsx("a",{href:I.href,"aria-label":`til ${I.iconName}`,className:"pkt-footer__social-icon-link",target:I.openInNewTab||c?"_blank":"_self",rel:I.openInNewTab||c?"noopener noreferrer":void 0,children:L.jsx(br,{className:"pkt-footer__social-icon",name:I.iconName})})},`sociallinks-${K}`))})]})]})})},wO=({links:n=[],openLinksInNewTab:r=!1,personvernOgInfoLink:i="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:l="https://www.oslo.kommune.no/tilgjengelighet/",includeConsent:c=!1,hotjarId:h=null,googleAnalyticsId:m=null,className:D})=>{const C=[D,"pkt-footer-simple"].filter(Boolean).join(" ");return L.jsx("footer",{className:C,"data-mode":"dark",children:L.jsx("div",{className:"pkt-footer-simple__container",children:L.jsxs("ul",{className:"pkt-footer-simple__list",children:[n.map((T,$)=>L.jsx("li",{className:"pkt-footer-simple__list-item",children:L.jsxs("a",{className:`pkt-footer-simple__link ${T.external?" pkt-link--external":""}`,href:T.href,target:T.openInNewTab||r?"_blank":"_self",rel:T.openInNewTab||r?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),T.text]})},$)),L.jsx("li",{className:"pkt-footer-simple__list-item",children:L.jsxs("a",{className:"pkt-footer-simple__link",href:i,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),L.jsx("li",{className:"pkt-footer-simple__list-item",children:L.jsxs("a",{className:"pkt-footer-simple__link",href:l,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})}),c&&L.jsx("li",{className:"pkt-footer-simple__list-item",children:L.jsx(ab,{triggerType:"footerlink",hotjarId:h,googleAnalyticsId:m})})]})})})};var e_={exports:{}};/*!
1418
+ `}doStuff(n){return n.reverse()}handleGreeting(){this.dispatchEvent(new CustomEvent("pkt-greeting",{detail:"Hei på deg!"}))}};Lg([z({type:String})],Nh.prototype,"string",2),Lg([z({converter:j1})],Nh.prototype,"strings",2),Lg([z({type:Boolean})],Nh.prototype,"darkmode",2),Lg([z({type:Array})],Nh.prototype,"_list",2),Nh=Lg([dr("pkt-component")],Nh);const fO=Or({tagName:"pkt-accordion",elementClass:RP,react:$e,displayName:"PktAccordion"}),G1=$e.forwardRef(({children:n,...r},i)=>L.jsx(fO,{"data-testid":"pkt-accordion",...r,ref:i,children:L.jsx("div",{className:"pkt-contents",children:n})}));G1.displayName="PktAccordion";const pO=Or({tagName:"pkt-accordion-item",elementClass:MP,react:$e,displayName:"PktAccordionItem",events:{onClick:"click"}}),K1=$e.forwardRef(({children:n,...r},i)=>L.jsx(pO,{ref:i,...r,children:L.jsx("div",{className:"pkt-contents",children:n})}));K1.displayName="PktAccordionItem";const hO=Or({tagName:"pkt-alert",elementClass:dl,react:$e,displayName:"PktAlert",events:{onClose:"close"}}),Q1=$e.forwardRef(({children:n,...r},i)=>L.jsx(hO,{ref:i,...r,children:L.jsx("div",{className:"pkt-contents",children:n})}));Q1.displayName="PktAlert";const X1=Or({tagName:"pkt-backlink",elementClass:Ch,react:$e,displayName:"PktBackLink"});X1.displayName="PktBackLink";const br=Or({tagName:"pkt-icon",elementClass:Lf,react:$e,displayName:"PktIcon",events:{}}),mO=$e.forwardRef(({breadcrumbs:n,navigationType:r,className:i,...l},c)=>{const h=n,m=h[h.length-2],D=[i,"pkt-breadcrumbs"].filter(Boolean).join(" ");return L.jsxs("nav",{ref:c,"aria-label":"brødsmulemeny",className:D,children:[L.jsx("ol",{className:"pkt-breadcrumbs__list pkt-breadcrumbs--desktop",children:h.map((C,T)=>L.jsx("li",{className:"pkt-breadcrumbs__item",children:T===h.length-1?L.jsx("span",{className:"pkt-breadcrumbs__label","aria-current":"true",children:L.jsx("span",{className:"pkt-breadcrumbs__text",children:C.text})}):r==="router"?L.jsxs(Ff.Link,{to:C.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[L.jsx(br,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),L.jsx("span",{className:"pkt-breadcrumbs__text",children:C.text})]}):L.jsxs("a",{href:C.href,className:"pkt-link pkt-link--icon-right pkt-breadcrumbs__label pkt-breadcrumbs__link",...l,children:[L.jsx(br,{className:"pkt-icon pkt-breadcrumbs__icon pkt-link__icon",name:"chevron-thin-right"}),L.jsx("span",{className:"pkt-breadcrumbs__text",children:C.text})]})},`breadcrumb-${T}`))}),r==="router"?L.jsxs(Ff.Link,{to:m.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[L.jsx(br,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),L.jsx("span",{className:"pkt-breadcrumbs__text",children:m.text})]}):L.jsxs("a",{href:m.href,className:"pkt-link pkt-link--icon-left pkt-breadcrumbs--mobile",...l,children:[L.jsx(br,{className:"pkt-back-link__icon pkt-icon pkt-link__icon",name:"chevron-thin-left"}),L.jsx("span",{className:"pkt-breadcrumbs__text",children:m.text})]})]})}),gO=Or({tagName:"pkt-button",elementClass:Di,react:$e,displayName:"PktButton",events:{onButtonClick:"button-click"}}),Fd=$e.forwardRef(({children:n,...r},i)=>L.jsx(gO,{...r,ref:i,children:L.jsx("div",{className:"pkt-contents",children:n})}));Fd.displayName="PktButton";const vO=Or({tagName:"pkt-card",elementClass:xa,react:$e,displayName:"PktCard",events:{}}),J1=$e.forwardRef(({children:n,...r},i)=>L.jsx(vO,{...r,ref:i,children:L.jsx("div",{className:"pkt-contents",children:n})}));J1.displayName="PktCard";const y0=Or({tagName:"pkt-checkbox",elementClass:Es,react:$e,displayName:"PktCheckbox",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange"}}),yO=Or({tagName:"pkt-combobox",elementClass:Xr,react:$e,displayName:"PktCombobox",events:{onChange:"change",onInput:"input",onBlur:"blur",onFocus:"focus",onValueChange:"valueChange",onToggleHelpText:"toggleHelpText"}}),Z1=$e.forwardRef(({children:n,helptext:r,...i},l)=>L.jsxs(yO,{...i,ref:l,children:[r&&L.jsx("div",{slot:"helptext",className:"pkt-contents",children:r}),n]}));Z1.displayName="PktCombobox";const ab=Or({tagName:"pkt-consent",elementClass:xd,react:$e,displayName:"PktConsent",events:{onToggleConsent:"toggle-consent"}});ab.displayName="PktConsent";const bO=Or({tagName:"pkt-datepicker",elementClass:Jr,react:$e,displayName:"PktDatepicker",events:{onChange:"change",onBlur:"blur",onFocus:"focus",onValueChange:"value-change",onToggleHelpText:"toggleHelpText"}}),b0=$e.forwardRef(({helptext:n,...r},i)=>L.jsx(bO,{ref:i,...r,children:L.jsx("div",{className:"pkt-contents",slot:"helptext",children:n})}));b0.displayName="PktDatepicker";const kO=({columnOne:n,columnTwo:r,socialLinks:i,className:l,openLinksInNewTab:c=!1,personvernOgInfoLink:h="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:m="https://www.oslo.kommune.no/tilgjengelighet/",includeConsent:D=!1,hotjarId:C=null,googleAnalyticsId:T=null,onToggleConsent:$=N=>{console.log(N.detail)}})=>{var O,B;const N=[l,"pkt-footer"].filter(Boolean).join(" ");return L.jsx("footer",{className:N,"data-mode":"dark",children:L.jsxs("div",{className:"pkt-footer__container",children:[L.jsxs("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[L.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[L.jsx("h2",{className:"pkt-footer__title",children:n.title}),L.jsxs("ul",{className:"pkt-footer__list",children:[n.text&&L.jsx("li",{className:"pkt-footer__text",children:n.text}),(O=n.links)==null?void 0:O.map((I,K)=>L.jsx("li",{className:"pkt-footer__list-item",children:L.jsxs("a",{className:`pkt-footer__link ${I.external?"pkt-link--external":""}`,href:I.href,target:I.openInNewTab||c?"_blank":"_self",rel:I.openInNewTab||c?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer__link-icon",name:"chevron-right"}),I.text]})},`links-${K}`))]})]}),L.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[L.jsx("h2",{className:"pkt-footer__title",children:r.title}),L.jsxs("ul",{className:"pkt-footer__list",children:[r.text&&L.jsx("li",{className:"pkt-footer__text",children:r.text}),(B=r.links)==null?void 0:B.map((I,K)=>L.jsx("li",{className:"pkt-footer__list-item",children:L.jsxs("a",{className:`pkt-footer__link ${I.external?"pkt-link--external":""}`,href:I.href,target:I.openInNewTab||c?"_blank":"_self",rel:I.openInNewTab||c?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer__link-icon",name:"chevron-right"}),I.text]})},`links-${K}`))]})]}),L.jsxs("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[L.jsx("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),L.jsxs("ul",{className:"pkt-footer__list",children:[L.jsx("li",{className:"pkt-footer__list-item",children:L.jsxs("a",{className:"pkt-footer__link",href:h,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),L.jsx("li",{className:"pkt-footer__list-item",children:L.jsxs("a",{className:"pkt-footer__link",href:m,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})}),D&&L.jsx("li",{className:"pkt-footer__list-item",children:L.jsx(ab,{triggerType:"footerlink",hotjarId:C,googleAnalyticsId:T,onToggleConsent:$})})]})]})]}),i&&L.jsxs("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[L.jsx("div",{className:"pkt-footer__social-languages",children:i.filter(I=>I.language).map((I,K)=>L.jsx("div",{className:"pkt-footer__social-language",children:L.jsx("a",{href:I.href,"aria-label":`til ${I.language} versjon av nettsiden`,target:I.openInNewTab||c?"_blank":"_self",rel:I.openInNewTab||c?"noopener noreferrer":void 0,children:I.language})},`sociallinks-language-${K}`))}),L.jsx("div",{className:"pkt-footer__social-icons",children:i.filter(I=>I.iconName).map((I,K)=>L.jsx($e.Fragment,{children:L.jsx("a",{href:I.href,"aria-label":`til ${I.iconName}`,className:"pkt-footer__social-icon-link",target:I.openInNewTab||c?"_blank":"_self",rel:I.openInNewTab||c?"noopener noreferrer":void 0,children:L.jsx(br,{className:"pkt-footer__social-icon",name:I.iconName})})},`sociallinks-${K}`))})]})]})})},wO=({links:n=[],openLinksInNewTab:r=!1,personvernOgInfoLink:i="https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",tilgjengelighetLink:l="https://www.oslo.kommune.no/tilgjengelighet/",includeConsent:c=!1,hotjarId:h=null,googleAnalyticsId:m=null,className:D})=>{const C=[D,"pkt-footer-simple"].filter(Boolean).join(" ");return L.jsx("footer",{className:C,"data-mode":"dark",children:L.jsx("div",{className:"pkt-footer-simple__container",children:L.jsxs("ul",{className:"pkt-footer-simple__list",children:[n.map((T,$)=>L.jsx("li",{className:"pkt-footer-simple__list-item",children:L.jsxs("a",{className:`pkt-footer-simple__link ${T.external?" pkt-link--external":""}`,href:T.href,target:T.openInNewTab||r?"_blank":"_self",rel:T.openInNewTab||r?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),T.text]})},$)),L.jsx("li",{className:"pkt-footer-simple__list-item",children:L.jsxs("a",{className:"pkt-footer-simple__link",href:i,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),L.jsx("li",{className:"pkt-footer-simple__list-item",children:L.jsxs("a",{className:"pkt-footer-simple__link",href:l,target:r?"_blank":"_self",rel:r?"noopener noreferrer":void 0,children:[L.jsx(br,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})}),c&&L.jsx("li",{className:"pkt-footer-simple__list-item",children:L.jsx(ab,{triggerType:"footerlink",hotjarId:h,googleAnalyticsId:m})})]})})})};var e_={exports:{}};/*!
1419
1419
  Copyright (c) 2018 Jed Watson.
1420
1420
  Licensed under the MIT License (MIT), see
1421
1421
  http://jedwatson.github.io/classnames
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "12.39.3",
3
+ "version": "12.39.4",
4
4
  "description": "React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo",
5
5
  "homepage": "https://punkt.oslo.kommune.no",
6
6
  "author": "Team Designsystem, Oslo Origo",
@@ -112,5 +112,5 @@
112
112
  "url": "https://github.com/oslokommune/punkt/issues"
113
113
  },
114
114
  "license": "MIT",
115
- "gitHead": "c88ba92dc350dc69efb3ad34a03fefa85901741b"
115
+ "gitHead": "3e0844eb879d0a16e69ef985950fcbfdf6c5935f"
116
116
  }
@@ -18,7 +18,9 @@ export interface IPktBreadcrumbs extends React.AnchorHTMLAttributes<HTMLAnchorEl
18
18
  export const PktBreadcrumbs = forwardRef(
19
19
  ({ breadcrumbs, navigationType, className, ...props }: IPktBreadcrumbs, ref: ForwardedRef<HTMLAnchorElement>) => {
20
20
  // Slice the breadcrumb to maximum links
21
- const slicedBreadcrumbs = breadcrumbs.slice(0, 4)
21
+ // Update 2025-05-16: Removed limit on links
22
+ // const slicedBreadcrumbs = breadcrumbs.slice(0, 4)
23
+ const slicedBreadcrumbs = breadcrumbs
22
24
  // Define the backLink function
23
25
  const backLink = slicedBreadcrumbs[slicedBreadcrumbs.length - 2]
24
26