@oslokommune/punkt-react 12.35.0 → 12.36.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 +17 -0
- package/dist/punkt-react.es.js +5 -5
- package/dist/punkt-react.umd.js +4 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [12.36.0](https://github.com/oslokommune/punkt/compare/12.35.0...12.36.0) (2025-04-28)
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
Ingen
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
Ingen
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
Ingen
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
Ingen
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
|
|
8
25
|
## [12.35.0](https://github.com/oslokommune/punkt/compare/12.34.4...12.35.0) (2025-04-25)
|
|
9
26
|
|
|
10
27
|
### ⚠ BREAKING CHANGES
|
package/dist/punkt-react.es.js
CHANGED
|
@@ -22753,7 +22753,7 @@ var ML = Object.defineProperty, IL = Object.getOwnPropertyDescriptor, xy = (r, n
|
|
|
22753
22753
|
return l && d && ML(n, i, d), d;
|
|
22754
22754
|
};
|
|
22755
22755
|
window.pktFetch = window.pktFetch === void 0 ? fetch : window.pktFetch;
|
|
22756
|
-
window.pktIconPath = window.pktIconPath || "https://punkt-cdn.oslo.kommune.no/12.
|
|
22756
|
+
window.pktIconPath = window.pktIconPath || "https://punkt-cdn.oslo.kommune.no/12.36/icons/";
|
|
22757
22757
|
const jL = (r) => new Promise((n) => setTimeout(n, r)), n0 = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>', UD = {}, zL = async (r, n) => {
|
|
22758
22758
|
let i = 0;
|
|
22759
22759
|
for (; UD[n + r + ".svg"] === "fetching" && (i++, !(i > 50)); )
|
|
@@ -23086,7 +23086,7 @@ let fo = class extends na {
|
|
|
23086
23086
|
${this.isLoading ? Ee`<pkt-icon
|
|
23087
23087
|
class="pkt-btn__icon pkt-btn__spinner"
|
|
23088
23088
|
name="spinner-blue"
|
|
23089
|
-
path="https://punkt-cdn.oslo.kommune.no/12.
|
|
23089
|
+
path="https://punkt-cdn.oslo.kommune.no/12.36/animations/"
|
|
23090
23090
|
></pkt-icon>` : et}
|
|
23091
23091
|
${this.variant !== "label-only" ? Ee`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>` : et}
|
|
23092
23092
|
<span class="pkt-btn__text" ${Gt(this.defaultSlot)}></span>
|
|
@@ -27377,7 +27377,7 @@ let Zu = class extends na {
|
|
|
27377
27377
|
${this.isLoading && this._shouldDisplayLoader ? Ee`<div class="pkt-loader__spinner">
|
|
27378
27378
|
<pkt-icon
|
|
27379
27379
|
name=${this.getVariant(this.variant)}
|
|
27380
|
-
path="https://punkt-cdn.oslo.kommune.no/12.
|
|
27380
|
+
path="https://punkt-cdn.oslo.kommune.no/12.36/animations/"
|
|
27381
27381
|
class="pkt-loader__svg pkt-loader__${this.variant}"
|
|
27382
27382
|
></pkt-icon>
|
|
27383
27383
|
${this.message && Ee`<p>${this.message}</p>`}
|
|
@@ -28705,7 +28705,7 @@ const nu = /* @__PURE__ */ w0($I), IH = Ir(
|
|
|
28705
28705
|
name: "oslologo",
|
|
28706
28706
|
className: "pkt-header__logo-svg",
|
|
28707
28707
|
"aria-hidden": "true",
|
|
28708
|
-
path: "https://punkt-cdn.oslo.kommune.no/12.
|
|
28708
|
+
path: "https://punkt-cdn.oslo.kommune.no/12.36/logos/"
|
|
28709
28709
|
}
|
|
28710
28710
|
) }) : /* @__PURE__ */ B.jsx(
|
|
28711
28711
|
"button",
|
|
@@ -28719,7 +28719,7 @@ const nu = /* @__PURE__ */ w0($I), IH = Ir(
|
|
|
28719
28719
|
name: "oslologo",
|
|
28720
28720
|
className: "pkt-header__logo-svg",
|
|
28721
28721
|
"aria-hidden": "true",
|
|
28722
|
-
path: "https://punkt-cdn.oslo.kommune.no/12.
|
|
28722
|
+
path: "https://punkt-cdn.oslo.kommune.no/12.36/logos/"
|
|
28723
28723
|
}
|
|
28724
28724
|
)
|
|
28725
28725
|
}
|
package/dist/punkt-react.umd.js
CHANGED
|
@@ -335,7 +335,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
335
335
|
* @license
|
|
336
336
|
* Copyright 2017 Google LLC
|
|
337
337
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
338
|
-
*/let Z0=class extends Uy{};Z0.directiveName="unsafeSVG",Z0.resultType=2;const f1=$f(Z0);var uP=Object.defineProperty,cP=Object.getOwnPropertyDescriptor,Sg=(r,n,i,l)=>{for(var d=l>1?void 0:l?cP(n,i):n,h=r.length-1,m;h>=0;h--)(m=r[h])&&(d=(l?m(n,i,d):m(d))||d);return l&&d&&uP(n,i,d),d};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.
|
|
338
|
+
*/let Z0=class extends Uy{};Z0.directiveName="unsafeSVG",Z0.resultType=2;const f1=$f(Z0);var uP=Object.defineProperty,cP=Object.getOwnPropertyDescriptor,Sg=(r,n,i,l)=>{for(var d=l>1?void 0:l?cP(n,i):n,h=r.length-1,m;h>=0;h--)(m=r[h])&&(d=(l?m(n,i,d):m(d))||d);return l&&d&&uP(n,i,d),d};window.pktFetch=window.pktFetch===void 0?fetch:window.pktFetch,window.pktIconPath=window.pktIconPath||"https://punkt-cdn.oslo.kommune.no/12.36/icons/";const dP=r=>new Promise(n=>setTimeout(n,r)),Vy='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>',ew={},fP=async(r,n)=>{let i=0;for(;ew[n+r+".svg"]==="fetching"&&(i++,!(i>50));)await dP(50);return localStorage.getItem(n+r+".svg")?Promise.resolve(localStorage.getItem(n+r+".svg")):typeof window.pktFetch=="function"?(ew[n+r+".svg"]="fetching",Promise.resolve(window.pktFetch(n+r+".svg").then(l=>l.ok?l.text():(console.error("Missing icon: "+n+r+".svg"),Vy)).then(l=>(l!==Vy&&localStorage.setItem(n+r+".svg",l),ew[n+r+".svg"]="fetched",l)))):Promise.resolve(Vy)};let Nf=class extends Gr{constructor(){super(...arguments),this.path=window.pktIconPath,this.name="",this.icon=f1(Vy),this._updatedProps=[]}connectedCallback(){super.connectedCallback(),this.classList.add("pkt-icon")}async attributeChangedCallback(n,i,l){super.attributeChangedCallback(n,i,l),(n==="name"||n==="path")&&this.getIcon(this.name)}async updated(n){super.updated(n),(n.has("name")||n.has("path"))&&this.getIcon(this.name)}async getIcon(n=""){this._updatedProps.length>0?(this.path||(this.path,window.pktIconPath),this.icon=f1(await fP(this.name||"",this.path).then(i=>i)),this._updatedProps=[]):this._updatedProps.includes(n)||this._updatedProps.push(n)}render(){return _e`${this.name&&this.icon}`}};Sg([H({type:String,reflect:!1})],Nf.prototype,"path",2),Sg([H({type:String,reflect:!0})],Nf.prototype,"name",2),Sg([H({type:SVGElement})],Nf.prototype,"icon",2),Sg([H({type:Array,noAccessor:!0})],Nf.prototype,"_updatedProps",2),Nf=Sg([fr("pkt-icon")],Nf);const pP={skin:{default:"info"},ariaLive:{default:"polite"},compact:{default:!1},closeAlert:{default:!1}},qy={props:pP};var hP=Object.defineProperty,mP=Object.getOwnPropertyDescriptor,uc=(r,n,i,l)=>{for(var d=l>1?void 0:l?mP(n,i):n,h=r.length-1,m;h>=0;h--)(m=r[h])&&(d=(l?m(n,i,d):m(d))||d);return l&&d&&hP(n,i,d),d};let sl=class extends Gr{constructor(){super(),this.defaultSlot=dn(),this.compact=qy.props.compact.default,this.title="",this.skin=qy.props.skin.default,this.ariaLive=qy.props.ariaLive.default,this["aria-live"]=null,this.closeAlert=qy.props.closeAlert.default,this.date=null,this._isClosed=!1,this.close=n=>{this._isClosed=!0,this.dispatchEvent(new CustomEvent("close",{detail:{origin:n},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("on-close",{detail:{origin:n},bubbles:!0,composed:!0}))},this.slotController=new Ca(this,this.defaultSlot),this._isClosed=!1}connectedCallback(){super.connectedCallback(),this["aria-live"]=this.getAttribute("aria-live")||this.ariaLive}attributeChangedCallback(n,i,l){n==="ariaLive"&&(this["aria-live"]=l),super.attributeChangedCallback(n,i,l)}updated(n){super.updated(n),n.has("ariaLive")&&(this["aria-live"]=this.ariaLive),n.has("_isClosed")&&d1(this,"pkt-hide",this._isClosed)}render(){const n={"pkt-alert":!0,"pkt-alert--compact":this.compact,[`pkt-alert--${this.skin}`]:this.skin,"pkt-hide":this._isClosed},i={"pkt-alert__grid":!0,"pkt-alert__noTitle":!this.title,"pkt-alert__noDate":!this.date};return _e`
|
|
339
339
|
<div class=${zt(n)}>
|
|
340
340
|
<div class=${zt(i)}>
|
|
341
341
|
<pkt-icon
|
|
@@ -419,7 +419,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
419
419
|
${this.isLoading?_e`<pkt-icon
|
|
420
420
|
class="pkt-btn__icon pkt-btn__spinner"
|
|
421
421
|
name="spinner-blue"
|
|
422
|
-
path="https://punkt-cdn.oslo.kommune.no/12.
|
|
422
|
+
path="https://punkt-cdn.oslo.kommune.no/12.36/animations/"
|
|
423
423
|
></pkt-icon>`:tt}
|
|
424
424
|
${this.variant!=="label-only"?_e`<pkt-icon class="pkt-btn__icon pkt-icon" name=${this.iconName}></pkt-icon>`:tt}
|
|
425
425
|
<span class="pkt-btn__text" ${qt(this.defaultSlot)}></span>
|
|
@@ -1062,7 +1062,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1062
1062
|
${this.isLoading&&this._shouldDisplayLoader?_e`<div class="pkt-loader__spinner">
|
|
1063
1063
|
<pkt-icon
|
|
1064
1064
|
name=${this.getVariant(this.variant)}
|
|
1065
|
-
path="https://punkt-cdn.oslo.kommune.no/12.
|
|
1065
|
+
path="https://punkt-cdn.oslo.kommune.no/12.36/animations/"
|
|
1066
1066
|
class="pkt-loader__svg pkt-loader__${this.variant}"
|
|
1067
1067
|
></pkt-icon>
|
|
1068
1068
|
${this.message&&_e`<p>${this.message}</p>`}
|
|
@@ -1346,7 +1346,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1346
1346
|
Copyright (c) 2018 Jed Watson.
|
|
1347
1347
|
Licensed under the MIT License (MIT), see
|
|
1348
1348
|
http://jedwatson.github.io/classnames
|
|
1349
|
-
*/(function(r){(function(){var n={}.hasOwnProperty;function i(){for(var h="",m=0;m<arguments.length;m++){var D=arguments[m];D&&(h=d(h,l(D)))}return h}function l(h){if(typeof h=="string"||typeof h=="number")return h;if(typeof h!="object")return"";if(Array.isArray(h))return i.apply(null,h);if(h.toString!==Object.prototype.toString&&!h.toString.toString().includes("[native code]"))return h.toString();var m="";for(var D in h)n.call(h,D)&&h[D]&&(m=d(m,D));return m}function d(h,m){return m?h?h+" "+m:h+m:h}r.exports?(i.default=i,r.exports=i):window.classNames=i})()})(V1);var Z3=V1.exports;const ul=Py(Z3),eO=$e.forwardRef(({className:r,logoLink:n="https://www.oslo.kommune.no/",serviceName:i,fixed:l=!0,scrollToHide:d=!0,user:h,userMenu:m,representing:D,userOptions:C,userMenuFooter:T,canChangeRepresentation:F=!0,showMenuButton:N=!1,showLogOutButton:O=!1,openMenu:R,logOut:j,changeRepresentation:Q,children:Y,...Se},J)=>{const G=$e.useMemo(()=>typeof(h==null?void 0:h.lastLoggedIn)=="string"?h.lastLoggedIn:h!=null&&h.lastLoggedIn?new Date(h.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[h]),[re,V]=$e.useState(!1),[ae,ce]=$e.useState(0),[Te,be]=$e.useState(!1),Ye=$e.useRef(null);$e.useEffect(()=>(document&&(document.addEventListener("mouseup",Ge),window.addEventListener("scroll",nt)),()=>{document&&(document.removeEventListener("mouseup",Ge),window.removeEventListener("scroll",nt))}));const qe=()=>{be(!Te)},Ge=He=>{Ye.current&&!Ye.current.contains(He.target)&&be(!1)},nt=()=>{if(d){const He=window.pageYOffset||document.documentElement.scrollTop;if(He<0||Math.abs(He-ae)<60)return;V(He>ae),ce(He)}};return B.jsxs("header",{...Se,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:ul(r,"pkt-header",{"pkt-header--fixed":l,"pkt-header--scroll-to-hide":d,"pkt-header--hidden":re}),ref:J,children:[B.jsxs("div",{className:"pkt-header__logo",children:[typeof n=="string"?B.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:n,children:B.jsx(yr,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.
|
|
1349
|
+
*/(function(r){(function(){var n={}.hasOwnProperty;function i(){for(var h="",m=0;m<arguments.length;m++){var D=arguments[m];D&&(h=d(h,l(D)))}return h}function l(h){if(typeof h=="string"||typeof h=="number")return h;if(typeof h!="object")return"";if(Array.isArray(h))return i.apply(null,h);if(h.toString!==Object.prototype.toString&&!h.toString.toString().includes("[native code]"))return h.toString();var m="";for(var D in h)n.call(h,D)&&h[D]&&(m=d(m,D));return m}function d(h,m){return m?h?h+" "+m:h+m:h}r.exports?(i.default=i,r.exports=i):window.classNames=i})()})(V1);var Z3=V1.exports;const ul=Py(Z3),eO=$e.forwardRef(({className:r,logoLink:n="https://www.oslo.kommune.no/",serviceName:i,fixed:l=!0,scrollToHide:d=!0,user:h,userMenu:m,representing:D,userOptions:C,userMenuFooter:T,canChangeRepresentation:F=!0,showMenuButton:N=!1,showLogOutButton:O=!1,openMenu:R,logOut:j,changeRepresentation:Q,children:Y,...Se},J)=>{const G=$e.useMemo(()=>typeof(h==null?void 0:h.lastLoggedIn)=="string"?h.lastLoggedIn:h!=null&&h.lastLoggedIn?new Date(h.lastLoggedIn).toLocaleString("nb-NO",{year:"numeric",month:"long",day:"numeric"}):"",[h]),[re,V]=$e.useState(!1),[ae,ce]=$e.useState(0),[Te,be]=$e.useState(!1),Ye=$e.useRef(null);$e.useEffect(()=>(document&&(document.addEventListener("mouseup",Ge),window.addEventListener("scroll",nt)),()=>{document&&(document.removeEventListener("mouseup",Ge),window.removeEventListener("scroll",nt))}));const qe=()=>{be(!Te)},Ge=He=>{Ye.current&&!Ye.current.contains(He.target)&&be(!1)},nt=()=>{if(d){const He=window.pageYOffset||document.documentElement.scrollTop;if(He<0||Math.abs(He-ae)<60)return;V(He>ae),ce(He)}};return B.jsxs("header",{...Se,id:"pkt-header","data-testid":"pkt-header","aria-label":"Topp",className:ul(r,"pkt-header",{"pkt-header--fixed":l,"pkt-header--scroll-to-hide":d,"pkt-header--hidden":re}),ref:J,children:[B.jsxs("div",{className:"pkt-header__logo",children:[typeof n=="string"?B.jsx("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:n,children:B.jsx(yr,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.36/logos/"})}):B.jsx("button",{"aria-label":"Tilbake til forside",className:"pkt-link-button pkt-link pkt-header__logo-link",onClick:n,children:B.jsx(yr,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true",path:"https://punkt-cdn.oslo.kommune.no/12.36/logos/"})}),B.jsx("span",{className:"pkt-header__logo-service",translate:"no",children:i})]}),B.jsx("nav",{className:"pkt-header__actions",children:B.jsxs("ul",{className:"pkt-header__actions-row",children:[N&&B.jsx("li",{children:B.jsx(Ed,{className:"pkt-header__menu-btn",skin:"secondary",variant:"icon-right",iconName:"menu",onClick:R,children:"Meny"})}),(h||D)&&B.jsxs("li",{"data-testid":"usermenu",className:`pkt-header--has-dropdown ${Te&&!re?"pkt-header--open-dropdown":""}`,ref:Ye,children:[B.jsxs("button",{className:"pkt-header__user-btn pkt-btn pkt-btn--secondary pkt-btn--icons-right-and-left",type:"button",role:"button","aria-controls":"pktUserDropdown","aria-expanded":Te,onClick:qe,children:[B.jsx(yr,{name:"user",className:"pkt-btn__icon"}),B.jsx("span",{className:"pkt-header__user-fullname",translate:"no",children:(D==null?void 0:D.name)||(h==null?void 0:h.name)}),B.jsx("span",{className:"pkt-header__user-shortname",translate:"no",children:(D==null?void 0:D.shortname)||(h==null?void 0:h.shortname)}),B.jsx(yr,{name:"chevron-thin-down",className:"pkt-btn--closed"}),B.jsx(yr,{name:"chevron-thin-up",className:"pkt-btn--open"})]}),B.jsxs("ul",{id:"pktUserDropdown",className:"pkt-header__dropdown pkt-user-menu",children:[h&&B.jsxs("li",{children:[B.jsx("div",{className:"pkt-user-menu__label",children:"Pålogget som"}),B.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:h.name}),h.lastLoggedIn&&B.jsxs("div",{className:"pkt-user-menu__last-logged-in",children:["Sist pålogget: ",B.jsx("time",{children:G})]})]}),m&&B.jsx("li",{children:B.jsx("ul",{className:"pkt-list",children:m.map((He,dt)=>B.jsx("li",{children:typeof He.target=="string"?B.jsxs("a",{href:He.target,className:"pkt-link",children:[He.iconName&&B.jsx(yr,{name:He.iconName,className:"pkt-link__icon"}),He.title]}):B.jsxs("button",{className:"pkt-link-button pkt-link",onClick:He.target,children:[He.iconName&&B.jsx(yr,{name:He.iconName,className:"pkt-link__icon"}),He.title]})},`userMenu-${dt}`))})}),(D||F)&&B.jsxs("li",{children:[D&&B.jsxs(B.Fragment,{children:[B.jsx("div",{className:"pkt-user-menu__label",children:"Representerer"}),B.jsx("div",{className:"pkt-user-menu__name",translate:"no",children:D.name}),D.orgNumber&&B.jsxs("div",{className:"pkt-user-menu__org-number",children:["Org.nr. ",D.orgNumber]})]}),B.jsx("ul",{className:"pkt-list mt-size-16",children:F&&B.jsx("li",{children:B.jsxs("button",{className:"pkt-link-button pkt-link",onClick:Q,children:[B.jsx(yr,{name:"cogwheel",className:"pkt-link__icon"}),"Endre organisasjon"]})})})]}),B.jsx("li",{children:B.jsx("ul",{className:"pkt-list",children:(C||!O)&&B.jsxs(B.Fragment,{children:[C==null?void 0:C.map((He,dt)=>B.jsx("li",{children:typeof He.target=="string"?B.jsxs("a",{href:He.target,className:"pkt-link",children:[He.iconName&&B.jsx(yr,{name:He.iconName,className:"pkt-link__icon"}),He.title]}):B.jsxs("button",{className:"pkt-link-button pkt-link",onClick:He.target,children:[He.iconName&&B.jsx(yr,{name:He.iconName,className:"pkt-link__icon"}),He.title]})},`userOptions-${dt}`)),!O&&B.jsx("li",{children:B.jsxs("button",{className:"pkt-link-button pkt-link",onClick:j,children:[B.jsx(yr,{name:"exit",className:"pkt-link__icon"}),"Logg ut"]})})]})})}),T&&B.jsx("li",{className:"footer",children:B.jsx("ul",{className:"pkt-list-horizontal bordered",children:T.map((He,dt)=>B.jsx("li",{children:typeof He.target=="string"?B.jsx("a",{href:He.target,className:"pkt-link",children:He.title}):B.jsx("button",{className:"pkt-link-button pkt-link",onClick:He.target,children:He.title})},`userMenuFooter-${dt}`))})})]})]}),Y&&B.jsx("li",{children:Y}),O&&B.jsx("li",{children:B.jsx(Ed,{className:"pkt-header__user-btn pkt-header__user-btn-logout",iconName:"exit",role:"button",onClick:j,skin:"secondary",variant:"icon-right",children:"Logg ut"})})]})})]})}),tO=zr({tagName:"pkt-helptext",elementClass:wd,react:$e,displayName:"PktHelptext",events:{onToggleHelpText:"toggleHelpText"}}),q1=$e.forwardRef(({children:r,...n},i)=>B.jsx(tO,{...n,ref:i,children:B.jsx("div",{className:"pkt-contents",children:r})}));q1.displayName="PktHelptext";const W1=$e.forwardRef(({label:r,id:n,children:i,...l},d)=>B.jsxs("div",{className:"pkt-form-group",children:[B.jsx("label",{htmlFor:n,className:"pkt-form-label",children:r}),B.jsx("input",{className:"pkt-form-input",id:n,...l,ref:d}),i]}));W1.displayName="PktInput";const nO=zr({tagName:"pkt-input-wrapper",elementClass:vr,react:$e,displayName:"PktInputWrapper",events:{onToggleHelpText:"toggleHelpText"}}),Y1=$e.forwardRef(({children:r,helptext:n,...i},l)=>B.jsxs(nO,{ref:l,...i,children:[B.jsx("div",{className:"pkt-contents",slot:"helptext",children:n}),B.jsx("div",{className:"pkt-contents",children:r})]})),rO=zr({tagName:"pkt-link",elementClass:Dd,react:$e,displayName:"PktLink",events:{onClick:"click"}}),G1=$e.forwardRef(({children:r,...n},i)=>B.jsx(rO,{...n,ref:i,children:B.jsx("span",{className:"pkt-contents",children:r})}));G1.displayName="PktLink";const aO=zr({tagName:"pkt-linkcard",elementClass:dc,react:$e,displayName:"PktLinkCard",events:{}}),K1=$e.forwardRef(({children:r,...n},i)=>B.jsx(aO,{ref:i,...n,children:B.jsx("div",{className:"pkt-contents",children:r})}));K1.displayName="PktLinkCard";const iO=zr({tagName:"pkt-loader",elementClass:ou,react:$e,displayName:"PktLoader",events:{}}),Q1=$e.forwardRef(({children:r,...n},i)=>B.jsx(iO,{...n,ref:i,children:B.jsx("div",{className:"pkt-contents",children:r})}));Q1.displayName="PktLoader";const oO=zr({tagName:"pkt-messagebox",elementClass:Cd,react:$e,displayName:"PktMessagebox",events:{onClose:"close"}}),X1=$e.forwardRef(({children:r,...n},i)=>B.jsx(oO,{...n,ref:i,children:B.jsx("div",{className:"pkt-contents",children:r})}));X1.displayName="PktMessagebox";const sO=zr({tagName:"pkt-modal",elementClass:su,react:$e,displayName:"PktModal",events:{}}),J1=$e.forwardRef(({children:r,...n},i)=>B.jsx(sO,{...n,ref:i,children:B.jsx("div",{className:"pkt-contents",children:r})}));J1.displayName="PktModal";/*!
|
|
1350
1350
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
1351
1351
|
*
|
|
1352
1352
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-react",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.36.0",
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@lit-labs/ssr-dom-shim": "^1.2.1",
|
|
40
40
|
"@lit/react": "^1.0.7",
|
|
41
|
-
"@oslokommune/punkt-elements": "^12.
|
|
41
|
+
"@oslokommune/punkt-elements": "^12.36.0",
|
|
42
42
|
"angular-html-parser": "^6.0.2",
|
|
43
43
|
"html-format": "^1.1.7",
|
|
44
44
|
"prettier": "^3.3.3",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
|
51
51
|
"@oslokommune/punkt-assets": "^12.34.4",
|
|
52
|
-
"@oslokommune/punkt-css": "^12.
|
|
52
|
+
"@oslokommune/punkt-css": "^12.36.0",
|
|
53
53
|
"@testing-library/jest-dom": "^6.5.0",
|
|
54
54
|
"@testing-library/react": "^16.0.1",
|
|
55
55
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
113
113
|
},
|
|
114
114
|
"license": "MIT",
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "95b6f4f37936246f6bbfcd9726d95398ab0822a0"
|
|
116
116
|
}
|