@oslokommune/punkt-react 13.5.3 → 13.5.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/dist/punkt-react.es.js
CHANGED
|
@@ -27935,7 +27935,12 @@ let pu = class extends ka {
|
|
|
27935
27935
|
"pkt-contents": !0,
|
|
27936
27936
|
"pkt-hide": this.isLoading
|
|
27937
27937
|
});
|
|
27938
|
-
return ke`<div
|
|
27938
|
+
return ke`<div
|
|
27939
|
+
role="status"
|
|
27940
|
+
aria-live="polite"
|
|
27941
|
+
aria-busy=${this.isLoading ? "true" : "false"}
|
|
27942
|
+
class=${t}
|
|
27943
|
+
>
|
|
27939
27944
|
${this.isLoading && this._shouldDisplayLoader ? ke`<div class="pkt-loader__spinner">
|
|
27940
27945
|
<pkt-icon
|
|
27941
27946
|
name=${this.getVariant(this.variant)}
|
|
@@ -28032,6 +28037,7 @@ let xp = class extends ka {
|
|
|
28032
28037
|
<button
|
|
28033
28038
|
@click=${this.close}
|
|
28034
28039
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
28040
|
+
aria-label="Lukk"
|
|
28035
28041
|
>
|
|
28036
28042
|
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
28037
28043
|
</button>
|
package/dist/punkt-react.umd.js
CHANGED
|
@@ -1164,7 +1164,12 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1164
1164
|
|
|
1165
1165
|
<div class="pkt-linkcard__text" ${fn(this.defaultSlot)}></div>
|
|
1166
1166
|
</a>
|
|
1167
|
-
`}};Kp([G({type:String,reflect:!0})],Sc.prototype,"title",2),Kp([G({type:String,reflect:!0})],Sc.prototype,"href",2),Kp([G({type:String,reflect:!0})],Sc.prototype,"iconName",2),Kp([G({type:Boolean,reflect:!0})],Sc.prototype,"external",2),Kp([G({type:Boolean,reflect:!0})],Sc.prototype,"openInNewTab",2),Kp([G({type:String,reflect:!0})],Sc.prototype,"skin",2),Sc=Kp([hr("pkt-linkcard")],Sc);var $H=Object.defineProperty,BH=Object.getOwnPropertyDescriptor,kc=(e,t,a,o)=>{for(var u=o>1?void 0:o?BH(t,a):t,d=e.length-1,f;d>=0;d--)(f=e[d])&&(u=(o?f(t,a,u):f(u))||u);return o&&u&&$H(t,a,u),u};window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/13.5/animations/";let yl=class extends pa{constructor(){super(),this.defaultSlot=gn(),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,this.slotController=new qa(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this._shouldDisplayLoader=this.delay===0,this.delay>0&&this.setupLoader()}updated(t){t.has("delay")&&this.setupLoader()}render(){const t=Jt({"pkt-loader":!0,[`pkt-loader--${this.inline?"inline":"box"}`]:!0,[`pkt-loader--${this.size}`]:!0}),a=Jt({"pkt-contents":!0,"pkt-hide":this.isLoading});return Se`<div
|
|
1167
|
+
`}};Kp([G({type:String,reflect:!0})],Sc.prototype,"title",2),Kp([G({type:String,reflect:!0})],Sc.prototype,"href",2),Kp([G({type:String,reflect:!0})],Sc.prototype,"iconName",2),Kp([G({type:Boolean,reflect:!0})],Sc.prototype,"external",2),Kp([G({type:Boolean,reflect:!0})],Sc.prototype,"openInNewTab",2),Kp([G({type:String,reflect:!0})],Sc.prototype,"skin",2),Sc=Kp([hr("pkt-linkcard")],Sc);var $H=Object.defineProperty,BH=Object.getOwnPropertyDescriptor,kc=(e,t,a,o)=>{for(var u=o>1?void 0:o?BH(t,a):t,d=e.length-1,f;d>=0;d--)(f=e[d])&&(u=(o?f(t,a,u):f(u))||u);return o&&u&&$H(t,a,u),u};window.pktAnimationPath=window.pktAnimationPath||"https://punkt-cdn.oslo.kommune.no/13.5/animations/";let yl=class extends pa{constructor(){super(),this.defaultSlot=gn(),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,this.slotController=new qa(this,this.defaultSlot)}connectedCallback(){super.connectedCallback(),this._shouldDisplayLoader=this.delay===0,this.delay>0&&this.setupLoader()}updated(t){t.has("delay")&&this.setupLoader()}render(){const t=Jt({"pkt-loader":!0,[`pkt-loader--${this.inline?"inline":"box"}`]:!0,[`pkt-loader--${this.size}`]:!0}),a=Jt({"pkt-contents":!0,"pkt-hide":this.isLoading});return Se`<div
|
|
1168
|
+
role="status"
|
|
1169
|
+
aria-live="polite"
|
|
1170
|
+
aria-busy=${this.isLoading?"true":"false"}
|
|
1171
|
+
class=${t}
|
|
1172
|
+
>
|
|
1168
1173
|
${this.isLoading&&this._shouldDisplayLoader?Se`<div class="pkt-loader__spinner">
|
|
1169
1174
|
<pkt-icon
|
|
1170
1175
|
name=${this.getVariant(this.variant)}
|
|
@@ -1179,6 +1184,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
1179
1184
|
<button
|
|
1180
1185
|
@click=${this.close}
|
|
1181
1186
|
class="pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only"
|
|
1187
|
+
aria-label="Lukk"
|
|
1182
1188
|
>
|
|
1183
1189
|
<pkt-icon name="close" class="pkt-link__icon"></pkt-icon>
|
|
1184
1190
|
</button>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslokommune/punkt-react",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.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",
|
|
@@ -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": "^13.5.
|
|
41
|
+
"@oslokommune/punkt-elements": "^13.5.4",
|
|
42
42
|
"prettier": "^3.3.3",
|
|
43
43
|
"react-element-to-jsx-string": "^15.0.0",
|
|
44
44
|
"react-hook-form": "^7.53.0",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"url": "https://github.com/oslokommune/punkt/issues"
|
|
111
111
|
},
|
|
112
112
|
"license": "MIT",
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "aed226fa38fe77f28a9bc5d0380b194f0f90a64a"
|
|
114
114
|
}
|