@oslokommune/punkt-react 16.8.2 → 16.9.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,42 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [16.9.0](https://github.com/oslokommune/punkt/compare/16.8.3...16.9.0) (2026-04-21)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ * Oppsett for Playwright med samme tester mot begge pakker (#3425).
15
+
16
+
17
+ ### Bug Fixes
18
+ Ingen
19
+
20
+ ### Chores
21
+ Ingen
22
+
23
+ ---
24
+
25
+
26
+ ## [16.8.3](https://github.com/oslokommune/punkt/compare/16.8.2...16.8.3) (2026-04-21)
27
+
28
+ ### ⚠ BREAKING CHANGES
29
+ Ingen
30
+
31
+ ### Features
32
+ Ingen
33
+
34
+ ### Bug Fixes
35
+ * Backlink trenger className-støtte (#3429).
36
+
37
+
38
+ ### Chores
39
+ Ingen
40
+
41
+ ---
42
+
43
+
8
44
  ## [16.8.2](https://github.com/oslokommune/punkt/compare/16.8.1...16.8.2) (2026-04-21)
9
45
 
10
46
  ### ⚠ BREAKING CHANGES
@@ -1084,7 +1084,7 @@ var Ut = class extends ft {
1084
1084
  Ut.directiveName = "unsafeHTML", Ut.resultType = 1;
1085
1085
  var Wt = dt(Ut), Gt = class extends Ut {};
1086
1086
  Gt.directiveName = "unsafeSVG", Gt.resultType = 2;
1087
- var Kt = dt(Gt), qt = "https://punkt-cdn.oslo.kommune.no/16.8/icons/";
1087
+ var Kt = dt(Gt), qt = "https://punkt-cdn.oslo.kommune.no/16.9/icons/";
1088
1088
  typeof window < "u" && (window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch, window.pktIconPath = window.pktIconPath || qt);
1089
1089
  var Jt = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\"></svg>", Yt = {}, Xt = 2, Zt = 1500, Qt = typeof Storage < "u" && typeof sessionStorage < "u", $t = (e) => window.pktFetch(e).then((t) => {
1090
1090
  if (!t.ok) throw Error("Missing icon: " + e);
@@ -1146,7 +1146,7 @@ try {
1146
1146
  var X = (e) => e ?? V;
1147
1147
  //#endregion
1148
1148
  //#region ../elements/dist/button-BIpd1xJh.js
1149
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.8/animations/";
1149
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.9/animations/";
1150
1150
  var rn = class extends Vt {
1151
1151
  constructor(...e) {
1152
1152
  super(...e), this.iconName = "user", this.secondIconName = "user", this.mode = "light", this.size = "medium", this.fullWidth = !1, this.fullWidthOnMobile = !1, this.skin = "primary", this.variant = "label-only", this.state = "normal", this.type = "button", this.form = void 0, this.isLoading = !1, this.disabled = !1, this.loadingAnimationPath = window.pktAnimationPath;
@@ -6918,7 +6918,7 @@ try {
6918
6918
  } catch {
6919
6919
  console.warn("Forsøker å definere <pkt-header-user-menu>, men den er allerede definert");
6920
6920
  }
6921
- var Oa = "https://punkt-cdn.oslo.kommune.no/16.8/logos/", ka = class extends Vt {
6921
+ var Oa = "https://punkt-cdn.oslo.kommune.no/16.9/logos/", ka = class extends Vt {
6922
6922
  constructor(...e) {
6923
6923
  super(...e), this.searchPlaceholder = "Søk", this.searchValue = "", this.mobileBreakpoint = 768, this.tabletBreakpoint = 1280, this.openedMenu = "none", this.logOutButtonPlacement = "none", this.position = "fixed", this.scrollBehavior = "hide", this.slotMenuVariant = "icon-only", this.slotMenuText = "Meny", this.hideLogo = !1, this.compact = !1, this.showSearch = !1, this.canChangeRepresentation = !1, this.hasLogOut = !1, this.isMobile = !1, this.isTablet = !1, this.openMenu = "none", this.isHidden = !1, this.componentWidth = typeof window < "u" ? window.innerWidth : 0, this.alignSlotRight = !1, this.alignSearchRight = !1, this.headerRef = sn(), this.userContainerRef = sn(), this.slotContainerRef = sn(), this.searchContainerRef = sn(), this.slotContentRef = sn(), this.searchMenuRef = sn(), this.lastScrollPosition = 0, this.savedScrollY = 0, this.lastFocusedElement = null, this.shouldRestoreFocus = !1, this.handleScroll = () => {
6924
6924
  if (!this.shouldHideOnScroll) return;
@@ -8958,7 +8958,7 @@ try {
8958
8958
  }
8959
8959
  //#endregion
8960
8960
  //#region ../elements/dist/loader-6kFZUErT.js
8961
- window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.8/animations/";
8961
+ window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.9/animations/";
8962
8962
  var po = class extends Vt {
8963
8963
  constructor(...e) {
8964
8964
  super(...e), this.delay = 0, this.inline = !1, this.isLoading = !0, this.message = null, this.size = "medium", this.variant = "shapes", this.loadingAnimationPath = window.pktAnimationPath, this._shouldDisplayLoader = !1;
@@ -10722,29 +10722,32 @@ var $ = /* @__PURE__ */ te((/* @__PURE__ */ D(((e, t) => {
10722
10722
  Ko.displayName = "PktAlert";
10723
10723
  //#endregion
10724
10724
  //#region src/components/backlink/BackLink.tsx
10725
- var qo = s(({ href: e = "/", text: t = "Forsiden", ariaLabel: n, renderLink: r, ...i }, a) => /* @__PURE__ */ y("nav", {
10726
- className: "pkt-back-link",
10727
- "aria-label": n || " tilbake til forrige side",
10728
- ref: a,
10729
- children: (r || (({ href: e, className: t, children: n, props: r }) => /* @__PURE__ */ y("a", {
10725
+ var qo = s(({ href: e = "/", text: t = "Forsiden", ariaLabel: n, renderLink: r, className: i, ...a }, o) => {
10726
+ let s = /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Q, {
10727
+ className: "pkt-back-link__icon pkt-icon pkt-link__icon",
10728
+ name: "chevron-thin-left",
10729
+ "aria-hidden": "true"
10730
+ }), /* @__PURE__ */ y("span", {
10731
+ className: "pkt-back-link__text",
10732
+ children: t
10733
+ })] }), c = r || (({ href: e, className: t, children: n, props: r }) => /* @__PURE__ */ y("a", {
10730
10734
  href: e,
10731
10735
  className: t,
10732
10736
  ...r,
10733
10737
  children: n
10734
- })))({
10735
- href: e,
10736
- className: "pkt-link pkt-link--icon-left",
10737
- children: /* @__PURE__ */ b(v, { children: [/* @__PURE__ */ y(Q, {
10738
- className: "pkt-back-link__icon pkt-icon pkt-link__icon",
10739
- name: "chevron-thin-left",
10740
- "aria-hidden": "true"
10741
- }), /* @__PURE__ */ y("span", {
10742
- className: "pkt-back-link__text",
10743
- children: t
10744
- })] }),
10745
- props: i
10746
- })
10747
- }));
10738
+ }));
10739
+ return /* @__PURE__ */ y("nav", {
10740
+ className: ["pkt-back-link", i].filter(Boolean).join(" "),
10741
+ "aria-label": n || "Gå tilbake til forrige side",
10742
+ ref: o,
10743
+ children: c({
10744
+ href: e,
10745
+ className: "pkt-link pkt-link--icon-left",
10746
+ children: s,
10747
+ props: a
10748
+ })
10749
+ });
10750
+ });
10748
10751
  qo.displayName = "PktBackLink";
10749
10752
  //#endregion
10750
10753
  //#region src/components/breadcrumbs/Breadcrumbs.tsx
@@ -10804,7 +10807,7 @@ var Jo = s(({ breadcrumbs: e, navigationType: t, renderLink: n, className: r, ..
10804
10807
  });
10805
10808
  //#endregion
10806
10809
  //#region src/components/button/Button.tsx
10807
- Jo.displayName = "PktBreadcrumbs", window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.8/animations/";
10810
+ Jo.displayName = "PktBreadcrumbs", window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.9/animations/";
10808
10811
  var Yo = s(({ children: e, className: t, iconName: n = "user", secondIconName: r = "user", iconPath: i, secondIconPath: a, size: o = "medium", fullWidth: s = !1, fullWidthOnMobile: c = !1, skin: l = "primary", type: u = "button", variant: d = "label-only", state: f, color: p, isLoading: m = void 0, disabled: h = void 0, loadingAnimationPath: g = window.pktAnimationPath, ..._ }, v) => {
10809
10812
  let x = [
10810
10813
  t,
@@ -16447,7 +16450,7 @@ var _d = s(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
16447
16450
  children: /* @__PURE__ */ y(Q, {
16448
16451
  name: "oslologo",
16449
16452
  "aria-hidden": "true",
16450
- path: "https://punkt-cdn.oslo.kommune.no/16.8/logos/"
16453
+ path: "https://punkt-cdn.oslo.kommune.no/16.9/logos/"
16451
16454
  })
16452
16455
  }) : re ? /* @__PURE__ */ y("button", {
16453
16456
  "aria-label": "Tilbake til forside",
@@ -16456,12 +16459,12 @@ var _d = s(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
16456
16459
  children: /* @__PURE__ */ y(Q, {
16457
16460
  name: "oslologo",
16458
16461
  "aria-hidden": "true",
16459
- path: "https://punkt-cdn.oslo.kommune.no/16.8/logos/"
16462
+ path: "https://punkt-cdn.oslo.kommune.no/16.9/logos/"
16460
16463
  })
16461
16464
  }) : /* @__PURE__ */ y(Q, {
16462
16465
  name: "oslologo",
16463
16466
  "aria-hidden": "true",
16464
- path: "https://punkt-cdn.oslo.kommune.no/16.8/logos/"
16467
+ path: "https://punkt-cdn.oslo.kommune.no/16.9/logos/"
16465
16468
  })
16466
16469
  }), T && /* @__PURE__ */ y("span", {
16467
16470
  className: "pkt-header-service__service-name",