@oslokommune/punkt-react 16.12.0 → 16.13.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/dist/punkt-react.es.js +10 -10
- package/dist/punkt-react.umd.js +5 -5
- package/package.json +5 -5
package/dist/punkt-react.es.js
CHANGED
|
@@ -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.
|
|
1087
|
+
var Kt = dt(Gt), qt = "https://punkt-cdn.oslo.kommune.no/16.13/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.
|
|
1149
|
+
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.13/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;
|
|
@@ -3816,7 +3816,7 @@ try {
|
|
|
3816
3816
|
console.warn("Forsøker å definere <pkt-heading>, men den er allerede definert");
|
|
3817
3817
|
}
|
|
3818
3818
|
//#endregion
|
|
3819
|
-
//#region ../elements/dist/card-
|
|
3819
|
+
//#region ../elements/dist/card-Bir3-pl2.js
|
|
3820
3820
|
var Ai = {
|
|
3821
3821
|
name: "pkt-card",
|
|
3822
3822
|
react: "PktCard",
|
|
@@ -3900,7 +3900,7 @@ var Ai = {
|
|
|
3900
3900
|
default: "top",
|
|
3901
3901
|
category: "ui"
|
|
3902
3902
|
},
|
|
3903
|
-
|
|
3903
|
+
clickCardLink: {
|
|
3904
3904
|
type: "string",
|
|
3905
3905
|
name: "Lenke for klikkbart card",
|
|
3906
3906
|
description: "Href sendes inn som streng for å gjøre card klikkbart. Ved bruk MÅ heading sendes inn da denne vil brukes som lenketekst i klikkbart card.",
|
|
@@ -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.
|
|
6921
|
+
var Oa = "https://punkt-cdn.oslo.kommune.no/16.13/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.
|
|
8961
|
+
window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.13/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;
|
|
@@ -10832,7 +10832,7 @@ var Jo = s(({ breadcrumbs: e, navigationType: t, renderLink: n, className: r, ..
|
|
|
10832
10832
|
});
|
|
10833
10833
|
//#endregion
|
|
10834
10834
|
//#region src/components/button/Button.tsx
|
|
10835
|
-
Jo.displayName = "PktBreadcrumbs", window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.
|
|
10835
|
+
Jo.displayName = "PktBreadcrumbs", window.pktAnimationPath = window.pktAnimationPath || "https://punkt-cdn.oslo.kommune.no/16.13/animations/";
|
|
10836
10836
|
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) => {
|
|
10837
10837
|
let x = [
|
|
10838
10838
|
t,
|
|
@@ -16475,7 +16475,7 @@ var _d = s(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
|
|
|
16475
16475
|
children: /* @__PURE__ */ y(Q, {
|
|
16476
16476
|
name: "oslologo",
|
|
16477
16477
|
"aria-hidden": "true",
|
|
16478
|
-
path: "https://punkt-cdn.oslo.kommune.no/16.
|
|
16478
|
+
path: "https://punkt-cdn.oslo.kommune.no/16.13/logos/"
|
|
16479
16479
|
})
|
|
16480
16480
|
}) : re ? /* @__PURE__ */ y("button", {
|
|
16481
16481
|
"aria-label": "Tilbake til forside",
|
|
@@ -16484,12 +16484,12 @@ var _d = s(({ mobileBreakpoint: e = 768, tabletBreakpoint: t = 1280, children: n
|
|
|
16484
16484
|
children: /* @__PURE__ */ y(Q, {
|
|
16485
16485
|
name: "oslologo",
|
|
16486
16486
|
"aria-hidden": "true",
|
|
16487
|
-
path: "https://punkt-cdn.oslo.kommune.no/16.
|
|
16487
|
+
path: "https://punkt-cdn.oslo.kommune.no/16.13/logos/"
|
|
16488
16488
|
})
|
|
16489
16489
|
}) : /* @__PURE__ */ y(Q, {
|
|
16490
16490
|
name: "oslologo",
|
|
16491
16491
|
"aria-hidden": "true",
|
|
16492
|
-
path: "https://punkt-cdn.oslo.kommune.no/16.
|
|
16492
|
+
path: "https://punkt-cdn.oslo.kommune.no/16.13/logos/"
|
|
16493
16493
|
})
|
|
16494
16494
|
}), T && /* @__PURE__ */ y("span", {
|
|
16495
16495
|
className: "pkt-header-service__service-name",
|