@oslokommune/punkt-react 5.0.3 → 5.0.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,25 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [5.0.4](https://github.com/oslokommune/punkt/compare/5.0.3...5.0.4) (2023-06-01)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ * Fiks størrelser på ikoner og ikon i knapper (#907).
18
+ * Fiks størrelser på ikoner og visning av ikon i knapper.
19
+
20
+
21
+ ### Chores
22
+ Ingen
23
+
24
+ ---
25
+
26
+
8
27
  ## [5.0.3](https://github.com/oslokommune/punkt/compare/5.0.2...5.0.3) (2023-06-01)
9
28
 
10
29
  ### ⚠ BREAKING CHANGES
@@ -709,7 +709,7 @@ const N = ({ name: o, path: l, className: i = "", ...c }) => {
709
709
  k && `pkt-btn--${k}`
710
710
  ].filter(Boolean).join(" ");
711
711
  return /* @__PURE__ */ d("button", { ...h, className: y, type: _, ref: w, children: [
712
- /* @__PURE__ */ a(N, { className: "pkt-btn__icon", name: i }),
712
+ k !== "label-only" && /* @__PURE__ */ a(N, { className: "pkt-btn__icon", name: i }),
713
713
  /* @__PURE__ */ a("span", { className: "pkt-btn__text", children: o }),
714
714
  k === "icons-right-and-left" && /* @__PURE__ */ a(N, { className: "pkt-btn__icon", name: c })
715
715
  ] });
@@ -1,4 +1,4 @@
1
- (function(k,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(k=typeof globalThis<"u"?globalThis:k||self,E(k["punkt-react"]={},k.React))})(this,function(k,E){"use strict";function Me(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var z={exports:{}},Y={};/**
1
+ (function(b,E){typeof exports=="object"&&typeof module<"u"?E(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],E):(b=typeof globalThis<"u"?globalThis:b||self,E(b["punkt-react"]={},b.React))})(this,function(b,E){"use strict";function Me(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var z={exports:{}},Y={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ne;function $e(){if(ne)return Y;ne=1;var o=E,l=Symbol.for("react.element"),i=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function _(b,h,T){var R,j={},S=null,D=null;T!==void 0&&(S=""+T),h.key!==void 0&&(S=""+h.key),h.ref!==void 0&&(D=h.ref);for(R in h)c.call(h,R)&&!n.hasOwnProperty(R)&&(j[R]=h[R]);if(b&&b.defaultProps)for(R in h=b.defaultProps,h)j[R]===void 0&&(j[R]=h[R]);return{$$typeof:l,type:b,key:S,ref:D,props:j,_owner:f.current}}return Y.Fragment=i,Y.jsx=_,Y.jsxs=_,Y}var M={};/**
9
+ */var ne;function $e(){if(ne)return Y;ne=1;var o=E,l=Symbol.for("react.element"),i=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function _(k,h,T){var R,j={},S=null,D=null;T!==void 0&&(S=""+T),h.key!==void 0&&(S=""+h.key),h.ref!==void 0&&(D=h.ref);for(R in h)c.call(h,R)&&!n.hasOwnProperty(R)&&(j[R]=h[R]);if(k&&k.defaultProps)for(R in h=k.defaultProps,h)j[R]===void 0&&(j[R]=h[R]);return{$$typeof:l,type:k,key:S,ref:D,props:j,_owner:f.current}}return Y.Fragment=i,Y.jsx=_,Y.jsxs=_,Y}var M={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var oe;function Le(){return oe||(oe=1,process.env.NODE_ENV!=="production"&&function(){var o=E,l=Symbol.for("react.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),b=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),me=Symbol.iterator,tt="@@iterator";function rt(e){if(e===null||typeof e!="object")return null;var t=me&&e[me]||e[tt];return typeof t=="function"?t:null}var I=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];at("error",e,r)}}function at(e,t,r){{var s=I.ReactDebugCurrentFrame,m=s.getStackAddendum();m!==""&&(t+="%s",r=r.concat([m]));var v=r.map(function(p){return String(p)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var nt=!1,ot=!1,lt=!1,it=!1,st=!1,he;he=Symbol.for("react.module.reference");function ct(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===n||st||e===f||e===T||e===R||it||e===D||nt||ot||lt||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===j||e.$$typeof===_||e.$$typeof===b||e.$$typeof===h||e.$$typeof===he||e.getModuleId!==void 0))}function ut(e,t,r){var s=e.displayName;if(s)return s;var m=t.displayName||t.name||"";return m!==""?r+"("+m+")":r}function _e(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case i:return"Portal";case n:return"Profiler";case f:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var t=e;return _e(t)+".Consumer";case _:var r=e;return _e(r._context)+".Provider";case h:return ut(e,e.render,"ForwardRef");case j:var s=e.displayName||null;return s!==null?s:C(e.type)||"Memo";case S:{var m=e,v=m._payload,p=m._init;try{return C(p(v))}catch{return null}}}return null}var F=Object.assign,$=0,ve,ke,be,ge,Ne,ye,Re;function Ee(){}Ee.__reactDisabledLog=!0;function ft(){{if($===0){ve=console.log,ke=console.info,be=console.warn,ge=console.error,Ne=console.group,ye=console.groupCollapsed,Re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function pt(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ve}),info:F({},e,{value:ke}),warn:F({},e,{value:be}),error:F({},e,{value:ge}),group:F({},e,{value:Ne}),groupCollapsed:F({},e,{value:ye}),groupEnd:F({},e,{value:Re})})}$<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=I.ReactCurrentDispatcher,Z;function B(e,t,r){{if(Z===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);Z=s&&s[1]||""}return`
17
+ */var oe;function Le(){return oe||(oe=1,process.env.NODE_ENV!=="production"&&function(){var o=E,l=Symbol.for("react.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),k=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),me=Symbol.iterator,tt="@@iterator";function rt(e){if(e===null||typeof e!="object")return null;var t=me&&e[me]||e[tt];return typeof t=="function"?t:null}var I=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];at("error",e,r)}}function at(e,t,r){{var s=I.ReactDebugCurrentFrame,m=s.getStackAddendum();m!==""&&(t+="%s",r=r.concat([m]));var v=r.map(function(p){return String(p)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var nt=!1,ot=!1,lt=!1,it=!1,st=!1,he;he=Symbol.for("react.module.reference");function ct(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===n||st||e===f||e===T||e===R||it||e===D||nt||ot||lt||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===j||e.$$typeof===_||e.$$typeof===k||e.$$typeof===h||e.$$typeof===he||e.getModuleId!==void 0))}function ut(e,t,r){var s=e.displayName;if(s)return s;var m=t.displayName||t.name||"";return m!==""?r+"("+m+")":r}function _e(e){return e.displayName||"Context"}function C(e){if(e==null)return null;if(typeof e.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case i:return"Portal";case n:return"Profiler";case f:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case k:var t=e;return _e(t)+".Consumer";case _:var r=e;return _e(r._context)+".Provider";case h:return ut(e,e.render,"ForwardRef");case j:var s=e.displayName||null;return s!==null?s:C(e.type)||"Memo";case S:{var m=e,v=m._payload,p=m._init;try{return C(p(v))}catch{return null}}}return null}var F=Object.assign,$=0,ve,ke,be,ge,Ne,ye,Re;function Ee(){}Ee.__reactDisabledLog=!0;function ft(){{if($===0){ve=console.log,ke=console.info,be=console.warn,ge=console.error,Ne=console.group,ye=console.groupCollapsed,Re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ee,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function pt(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ve}),info:F({},e,{value:ke}),warn:F({},e,{value:be}),error:F({},e,{value:ge}),group:F({},e,{value:Ne}),groupCollapsed:F({},e,{value:ye}),groupEnd:F({},e,{value:Re})})}$<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=I.ReactCurrentDispatcher,Z;function B(e,t,r){{if(Z===void 0)try{throw Error()}catch(m){var s=m.stack.trim().match(/\n( *(at )?)/);Z=s&&s[1]||""}return`
18
18
  `+Z+e}}var Q=!1,V;{var dt=typeof WeakMap=="function"?WeakMap:Map;V=new dt}function we(e,t){if(!e||Q)return"";{var r=V.get(e);if(r!==void 0)return r}var s;Q=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=X.current,X.current=null,ft();try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(O){s=O}Reflect.construct(e,[],p)}else{try{p.call()}catch(O){s=O}e.call(p.prototype)}}else{try{throw Error()}catch(O){s=O}e()}}catch(O){if(O&&s&&typeof O.stack=="string"){for(var u=O.stack.split(`
19
19
  `),P=s.stack.split(`
20
20
  `),g=u.length-1,N=P.length-1;g>=1&&N>=0&&u[g]!==P[N];)N--;for(;g>=1&&N>=0;g--,N--)if(u[g]!==P[N]){if(g!==1||N!==1)do if(g--,N--,N<0||u[g]!==P[N]){var x=`
@@ -24,8 +24,8 @@ Check the render method of \``+e+"`."}return""}}function xt(e){{if(e!==void 0){v
24
24
 
25
25
  Check your code at `+t+":"+r+"."}return""}}var De={};function jt(e){{var t=Fe();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
26
26
 
27
- Check the top-level render call using <`+r+">.")}return t}}function Ie(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=jt(t);if(De[r])return;De[r]=!0;var s="";e&&e._owner&&e._owner!==te.current&&(s=" It was passed a child from "+C(e._owner.type)+"."),A(e),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,s),A(null)}}function Ae(e,t){{if(typeof e!="object")return;if(q(e))for(var r=0;r<e.length;r++){var s=e[r];ae(s)&&Ie(s,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var m=rt(e);if(typeof m=="function"&&m!==e.entries)for(var v=m.call(e),p;!(p=v.next()).done;)ae(p.value)&&Ie(p.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===h||t.$$typeof===j))r=t.propTypes;else return;if(r){var s=C(t);_t(r,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!re){re=!0;var m=C(t);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ct(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var s=t[r];if(s!=="children"&&s!=="key"){A(e),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),A(null);break}}e.ref!==null&&(A(e),w("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function We(e,t,r,s,m,v){{var p=ct(e);if(!p){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P=xt(m);P?u+=P:u+=Fe();var g;e===null?g="null":q(e)?g="array":e!==void 0&&e.$$typeof===l?(g="<"+(C(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):g=typeof e,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",g,u)}var N=Tt(e,t,r,m,v);if(N==null)return N;if(p){var x=t.children;if(x!==void 0)if(s)if(q(x)){for(var W=0;W<x.length;W++)Ae(x[W],e);Object.freeze&&Object.freeze(x)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(x,e)}return e===c?Ct(N):St(N),N}}function Ot(e,t,r){return We(e,t,r,!0)}function Ft(e,t,r){return We(e,t,r,!1)}var Dt=Ft,It=Ot;M.Fragment=c,M.jsx=Dt,M.jsxs=It}()),M}process.env.NODE_ENV==="production"?z.exports=$e():z.exports=Le();var J=z.exports;const le=J.Fragment,a=J.jsx,d=J.jsxs,K={},ie='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Be(o,l){return K[o]?Promise.resolve(K[o]):fetch(l+o+".svg").then(i=>i.ok?i.text():(console.error("Missing icon: "+l+o+".svg"),ie)).then(i=>(i!==ie&&(K[o]=i),i))}const y=({name:o,path:l,className:i="",...c})=>{const f="https://punkt-cdn.oslo.kommune.no/5.0/icons/",[n,_]=E.useState(null);return E.useEffect(()=>{if(!o)return;Be(o,l||f).then(h=>_(h))},[o,l,f]),n?a("span",{className:`pkt-icon ${i}`,dangerouslySetInnerHTML:{__html:n},...c}):null},Ve=E.forwardRef(({children:o,className:l,skin:i="info",closeAlert:c=!1,onClose:f,title:n,date:_,ariaLive:b="polite",...h},T)=>{const R=[l,"pkt-alert",i&&`pkt-alert--${i}`].filter(Boolean).join(" "),[j,S]=E.useState(!0),D=()=>{S(!1),f&&f()};return j?d("div",{...h,className:R,"aria-live":b,ref:T,children:[a(y,{className:"pkt-alert__icon",name:i==="info"?"alert-information":`alert-${i}`}),c&&a("div",{className:"pkt-alert__close",children:a("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:D,children:a(y,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),n&&a("div",{className:"pkt-alert__title",children:n}),a("div",{className:"pkt-alert__text",children:o}),_&&d("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",_]})]}):null}),se=E.forwardRef(({children:o,className:l,iconName:i="user",secondIconName:c="user",size:f="medium",skin:n="primary",type:_="button",variant:b="label-only",...h},T)=>{const R=[l,"pkt-btn",f&&`pkt-btn--${f}`,n&&`pkt-btn--${n}`,b&&`pkt-btn--${b}`].filter(Boolean).join(" ");return d("button",{...h,className:R,type:_,ref:T,children:[a(y,{className:"pkt-btn__icon",name:i}),a("span",{className:"pkt-btn__text",children:o}),b==="icons-right-and-left"&&a(y,{className:"pkt-btn__icon",name:c})]})});se.displayName="PktButton";const Ue=({columnOne:o,columnTwo:l,socialLinks:i})=>{var c,f;return a("footer",{className:"pkt-footer","data-mode":"dark",children:d("div",{className:"pkt-footer__container",children:[d("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[d("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[a("h2",{className:"pkt-footer__title",children:o.title}),d("ul",{className:"pkt-footer__list",children:[o.text&&a("li",{className:"pkt-footer__text",children:o.text}),(c=o.links)==null?void 0:c.map((n,_)=>a("li",{className:"pkt-footer__list-item",children:d("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[a(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${_}`))]})]}),d("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[a("h2",{className:"pkt-footer__title",children:l.title}),d("ul",{className:"pkt-footer__list",children:[l.text&&a("li",{className:"pkt-footer__text",children:l.text}),(f=l.links)==null?void 0:f.map((n,_)=>a("li",{className:"pkt-footer__list-item",children:d("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[a(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${_}`))]})]}),d("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[a("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),d("ul",{className:"pkt-footer__list",children:[a("li",{className:"pkt-footer__list-item",children:d("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[a(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),a("li",{className:"pkt-footer__list-item",children:d("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[a(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),i&&d("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[a("div",{className:"pkt-footer__social-languages",children:i.filter(n=>n.language).map((n,_)=>a("div",{className:"pkt-footer__social-language",children:a("a",{href:n.href,"aria-label":`til ${n.language} versjon av nettsiden`,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:n.language})},`sociallinks-language-${_}`))}),a("div",{className:"pkt-footer__social-icons",children:i.filter(n=>n.iconName).map((n,_)=>a(E.Fragment,{children:a("a",{href:n.href,"aria-label":`til ${n.iconName}`,className:"pkt-footer__social-icon-link",target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:a(y,{className:"pkt-footer__social-icon",name:n.iconName})})},`sociallinks-${_}`))})]})]})})},He=({links:o=[]})=>a("footer",{className:"pkt-footer-simple","data-mode":"dark",children:a("div",{className:"pkt-footer-simple__container",children:d("ul",{className:"pkt-footer-simple__list",children:[o.map((l,i)=>a("li",{className:"pkt-footer-simple__list-item",children:d("a",{className:`pkt-footer-simple__link ${l.external?" pkt-link--external":""}`,href:l.href,target:l.openInNewTab?"_blank":"_self",rel:l.openInNewTab?"noopener noreferrer":void 0,children:[a(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),l.text]})},i)),a("li",{className:"pkt-footer-simple__list-item",children:d("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[a(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),a("li",{className:"pkt-footer-simple__list-item",children:d("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[a(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})}),Ge=({className:o,logoLink:l="https://www.oslo.kommune.no/",isLoggedIn:i=!1,representing:c="",canChangeRepresentation:f=!1,showLogInButton:n=!0,onLogIn:_,onLogOut:b,onChangeRepresentation:h})=>{const T=[o,"pkt-header"].filter(Boolean).join(" ");return d("header",{id:"pkt-header",className:T,"aria-label":"Topp",children:[a("div",{className:"pkt-header__logo",children:a("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:l,children:a(y,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true"})})}),d("div",{className:"pkt-header__actions",children:[i&&f&&d("button",{className:"pkt-btn pkt-btn--secondary pkt-btn--icon-right","aria-label":`Bytt bruker fra ${c}`,onClick:h,children:[a(y,{name:"user",className:"pkt-btn__icon pkt-show-tablet-up"}),a("span",{className:"pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15",children:"Endre"}),a("span",{className:"pkt-btn__text pkt-hide-tablet-up",children:"Endre"}),a("span",{className:"pkt-btn__text--representing pkt-hide pkt-show-tablet-up",children:c})]}),i&&!f&&d("div",{className:"pkt-header__action",children:[a("span",{className:"pkt-header__action-text",children:a("span",{className:"pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text",children:c})}),a(y,{className:"pkt-header__action-icon pkt-show-phablet-up",name:"user"})]}),n&&i&&d("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg ut",onClick:b,children:[a(y,{className:"pkt-btn__icon pkt-show-tablet-up",name:"exit"}),a("span",{className:"pkt-btn__text",children:"Logg ut"})]}),n&&!i&&d("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg inn",onClick:_,children:[a(y,{className:"pkt-btn__icon",name:"user"}),a("span",{className:"pkt-btn__text",children:"Logg inn"})]})]})]})},ce=E.forwardRef(({label:o,id:l,children:i,...c},f)=>d("div",{className:"pkt-form-group",children:[a("label",{htmlFor:l,className:"pkt-form-label",children:o}),a("input",{className:"pkt-form-input",id:l,...c,ref:f}),i]}));ce.displayName="PktInput";const ue=E.forwardRef(({children:o,className:l,iconName:i="user",openInNewTab:c=!1,skin:f="normal",href:n="#",external:_=!1,title:b},h)=>{const T=[l,"pkt-linkcard",f&&`pkt-linkcard--${f}`].filter(Boolean).join(" ");return d("a",{href:n,className:`pkt-linkcard pkt-link ${T}`,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,ref:h,children:[a(y,{className:"pkt-link__icon",name:i}),d("div",{className:"pkt-linkcard__content",children:[a("div",{className:`pkt-linkcard__title ${_?"pkt-link pkt-link--external":""}`,children:b}),a("div",{className:"pkt-linkcard__text",children:o})]})]})});ue.displayName="PktLinkCard";const ze=({children:o,skin:l="beige",title:i,...c})=>{const f=["pkt-messagebox",l&&`pkt-messagebox--${l}`].filter(Boolean).join(" ");return d("div",{...c,className:f,children:[a("div",{className:"pkt-messagebox__title",children:i}),a("div",{className:"pkt-messagebox__text",children:o})]})},fe=E.forwardRef(({id:o,name:l,label:i,value:c,...f},n)=>d("div",{className:"pkt-form-group",children:[a("input",{type:"radio",className:"pkt-form-check-input",id:o,name:l,value:c,ref:n,...f}),a("label",{className:"pkt-form-label",htmlFor:o,children:i})]}));fe.displayName="PktRadio";const Je=({label:o,children:l})=>d(le,{children:[a("p",{children:o}),a("div",{className:"pkt-form-group",children:l})]});var pe={exports:{}};/*!
27
+ Check the top-level render call using <`+r+">.")}return t}}function Ie(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=jt(t);if(De[r])return;De[r]=!0;var s="";e&&e._owner&&e._owner!==te.current&&(s=" It was passed a child from "+C(e._owner.type)+"."),A(e),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,s),A(null)}}function Ae(e,t){{if(typeof e!="object")return;if(q(e))for(var r=0;r<e.length;r++){var s=e[r];ae(s)&&Ie(s,t)}else if(ae(e))e._store&&(e._store.validated=!0);else if(e){var m=rt(e);if(typeof m=="function"&&m!==e.entries)for(var v=m.call(e),p;!(p=v.next()).done;)ae(p.value)&&Ie(p.value,t)}}}function St(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===h||t.$$typeof===j))r=t.propTypes;else return;if(r){var s=C(t);_t(r,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!re){re=!0;var m=C(t);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ct(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var s=t[r];if(s!=="children"&&s!=="key"){A(e),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),A(null);break}}e.ref!==null&&(A(e),w("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function We(e,t,r,s,m,v){{var p=ct(e);if(!p){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var P=xt(m);P?u+=P:u+=Fe();var g;e===null?g="null":q(e)?g="array":e!==void 0&&e.$$typeof===l?(g="<"+(C(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):g=typeof e,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",g,u)}var N=Tt(e,t,r,m,v);if(N==null)return N;if(p){var x=t.children;if(x!==void 0)if(s)if(q(x)){for(var W=0;W<x.length;W++)Ae(x[W],e);Object.freeze&&Object.freeze(x)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ae(x,e)}return e===c?Ct(N):St(N),N}}function Ot(e,t,r){return We(e,t,r,!0)}function Ft(e,t,r){return We(e,t,r,!1)}var Dt=Ft,It=Ot;M.Fragment=c,M.jsx=Dt,M.jsxs=It}()),M}process.env.NODE_ENV==="production"?z.exports=$e():z.exports=Le();var J=z.exports;const le=J.Fragment,a=J.jsx,d=J.jsxs,K={},ie='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>';function Be(o,l){return K[o]?Promise.resolve(K[o]):fetch(l+o+".svg").then(i=>i.ok?i.text():(console.error("Missing icon: "+l+o+".svg"),ie)).then(i=>(i!==ie&&(K[o]=i),i))}const y=({name:o,path:l,className:i="",...c})=>{const f="https://punkt-cdn.oslo.kommune.no/5.0/icons/",[n,_]=E.useState(null);return E.useEffect(()=>{if(!o)return;Be(o,l||f).then(h=>_(h))},[o,l,f]),n?a("span",{className:`pkt-icon ${i}`,dangerouslySetInnerHTML:{__html:n},...c}):null},Ve=E.forwardRef(({children:o,className:l,skin:i="info",closeAlert:c=!1,onClose:f,title:n,date:_,ariaLive:k="polite",...h},T)=>{const R=[l,"pkt-alert",i&&`pkt-alert--${i}`].filter(Boolean).join(" "),[j,S]=E.useState(!0),D=()=>{S(!1),f&&f()};return j?d("div",{...h,className:R,"aria-live":k,ref:T,children:[a(y,{className:"pkt-alert__icon",name:i==="info"?"alert-information":`alert-${i}`}),c&&a("div",{className:"pkt-alert__close",children:a("button",{type:"button",className:"pkt-btn pkt-btn--tertiary pkt-btn--small pkt-btn--icon-only",tabIndex:0,"aria-label":"close",onClick:D,children:a(y,{name:"close",className:"pkt-btn__icon","aria-hidden":"true"})})}),n&&a("div",{className:"pkt-alert__title",children:n}),a("div",{className:"pkt-alert__text",children:o}),_&&d("div",{className:"pkt-alert__date",children:["Sist oppdatert: ",_]})]}):null}),se=E.forwardRef(({children:o,className:l,iconName:i="user",secondIconName:c="user",size:f="medium",skin:n="primary",type:_="button",variant:k="label-only",...h},T)=>{const R=[l,"pkt-btn",f&&`pkt-btn--${f}`,n&&`pkt-btn--${n}`,k&&`pkt-btn--${k}`].filter(Boolean).join(" ");return d("button",{...h,className:R,type:_,ref:T,children:[k!=="label-only"&&a(y,{className:"pkt-btn__icon",name:i}),a("span",{className:"pkt-btn__text",children:o}),k==="icons-right-and-left"&&a(y,{className:"pkt-btn__icon",name:c})]})});se.displayName="PktButton";const Ue=({columnOne:o,columnTwo:l,socialLinks:i})=>{var c,f;return a("footer",{className:"pkt-footer","data-mode":"dark",children:d("div",{className:"pkt-footer__container",children:[d("div",{className:"pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16",children:[d("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[a("h2",{className:"pkt-footer__title",children:o.title}),d("ul",{className:"pkt-footer__list",children:[o.text&&a("li",{className:"pkt-footer__text",children:o.text}),(c=o.links)==null?void 0:c.map((n,_)=>a("li",{className:"pkt-footer__list-item",children:d("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[a(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${_}`))]})]}),d("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[a("h2",{className:"pkt-footer__title",children:l.title}),d("ul",{className:"pkt-footer__list",children:[l.text&&a("li",{className:"pkt-footer__text",children:l.text}),(f=l.links)==null?void 0:f.map((n,_)=>a("li",{className:"pkt-footer__list-item",children:d("a",{className:`pkt-footer__link ${n.external?"pkt-link--external":""}`,href:n.href,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:[a(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),n.text]})},`links-${_}`))]})]}),d("div",{className:"pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up",children:[a("h2",{className:"pkt-footer__title",children:"Om nettstedet"}),d("ul",{className:"pkt-footer__list",children:[a("li",{className:"pkt-footer__list-item",children:d("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[a(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),a("li",{className:"pkt-footer__list-item",children:d("a",{className:"pkt-footer__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[a(y,{className:"pkt-footer__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})]})]}),i&&d("div",{className:"pkt-footer__social","aria-label":"standard lenker",children:[a("div",{className:"pkt-footer__social-languages",children:i.filter(n=>n.language).map((n,_)=>a("div",{className:"pkt-footer__social-language",children:a("a",{href:n.href,"aria-label":`til ${n.language} versjon av nettsiden`,target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:n.language})},`sociallinks-language-${_}`))}),a("div",{className:"pkt-footer__social-icons",children:i.filter(n=>n.iconName).map((n,_)=>a(E.Fragment,{children:a("a",{href:n.href,"aria-label":`til ${n.iconName}`,className:"pkt-footer__social-icon-link",target:n.openInNewTab?"_blank":"_self",rel:n.openInNewTab?"noopener noreferrer":void 0,children:a(y,{className:"pkt-footer__social-icon",name:n.iconName})})},`sociallinks-${_}`))})]})]})})},He=({links:o=[]})=>a("footer",{className:"pkt-footer-simple","data-mode":"dark",children:a("div",{className:"pkt-footer-simple__container",children:d("ul",{className:"pkt-footer-simple__list",children:[o.map((l,i)=>a("li",{className:"pkt-footer-simple__list-item",children:d("a",{className:`pkt-footer-simple__link ${l.external?" pkt-link--external":""}`,href:l.href,target:l.openInNewTab?"_blank":"_self",rel:l.openInNewTab?"noopener noreferrer":void 0,children:[a(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),l.text]})},i)),a("li",{className:"pkt-footer-simple__list-item",children:d("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/personvern-og-informasjonskapsler/",children:[a(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Personvern og informasjonskapsler"]})}),a("li",{className:"pkt-footer-simple__list-item",children:d("a",{className:"pkt-footer-simple__link",href:"https://www.oslo.kommune.no/tilgjengelighet/",children:[a(y,{className:"pkt-footer-simple__link-icon",name:"chevron-right"}),"Tilgjengelighet"]})})]})})}),Ge=({className:o,logoLink:l="https://www.oslo.kommune.no/",isLoggedIn:i=!1,representing:c="",canChangeRepresentation:f=!1,showLogInButton:n=!0,onLogIn:_,onLogOut:k,onChangeRepresentation:h})=>{const T=[o,"pkt-header"].filter(Boolean).join(" ");return d("header",{id:"pkt-header",className:T,"aria-label":"Topp",children:[a("div",{className:"pkt-header__logo",children:a("a",{"aria-label":"Tilbake til forside",className:"pkt-header__logo-link",href:l,children:a(y,{name:"oslologo",className:"pkt-header__logo-svg","aria-hidden":"true"})})}),d("div",{className:"pkt-header__actions",children:[i&&f&&d("button",{className:"pkt-btn pkt-btn--secondary pkt-btn--icon-right","aria-label":`Bytt bruker fra ${c}`,onClick:h,children:[a(y,{name:"user",className:"pkt-btn__icon pkt-show-tablet-up"}),a("span",{className:"pkt-header__action-change pkt-hide pkt-show-tablet-up ml-size-15",children:"Endre"}),a("span",{className:"pkt-btn__text pkt-hide-tablet-up",children:"Endre"}),a("span",{className:"pkt-btn__text--representing pkt-hide pkt-show-tablet-up",children:c})]}),i&&!f&&d("div",{className:"pkt-header__action",children:[a("span",{className:"pkt-header__action-text",children:a("span",{className:"pkt-btn__text pkt-header__action-textrow text-row-inline pkt-truncate-text",children:c})}),a(y,{className:"pkt-header__action-icon pkt-show-phablet-up",name:"user"})]}),n&&i&&d("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg ut",onClick:k,children:[a(y,{className:"pkt-btn__icon pkt-show-tablet-up",name:"exit"}),a("span",{className:"pkt-btn__text",children:"Logg ut"})]}),n&&!i&&d("button",{className:"pkt-btn pkt-btn--tertiary pkt-btn--icon-right","aria-label":"Logg inn",onClick:_,children:[a(y,{className:"pkt-btn__icon",name:"user"}),a("span",{className:"pkt-btn__text",children:"Logg inn"})]})]})]})},ce=E.forwardRef(({label:o,id:l,children:i,...c},f)=>d("div",{className:"pkt-form-group",children:[a("label",{htmlFor:l,className:"pkt-form-label",children:o}),a("input",{className:"pkt-form-input",id:l,...c,ref:f}),i]}));ce.displayName="PktInput";const ue=E.forwardRef(({children:o,className:l,iconName:i="user",openInNewTab:c=!1,skin:f="normal",href:n="#",external:_=!1,title:k},h)=>{const T=[l,"pkt-linkcard",f&&`pkt-linkcard--${f}`].filter(Boolean).join(" ");return d("a",{href:n,className:`pkt-linkcard pkt-link ${T}`,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,ref:h,children:[a(y,{className:"pkt-link__icon",name:i}),d("div",{className:"pkt-linkcard__content",children:[a("div",{className:`pkt-linkcard__title ${_?"pkt-link pkt-link--external":""}`,children:k}),a("div",{className:"pkt-linkcard__text",children:o})]})]})});ue.displayName="PktLinkCard";const ze=({children:o,skin:l="beige",title:i,...c})=>{const f=["pkt-messagebox",l&&`pkt-messagebox--${l}`].filter(Boolean).join(" ");return d("div",{...c,className:f,children:[a("div",{className:"pkt-messagebox__title",children:i}),a("div",{className:"pkt-messagebox__text",children:o})]})},fe=E.forwardRef(({id:o,name:l,label:i,value:c,...f},n)=>d("div",{className:"pkt-form-group",children:[a("input",{type:"radio",className:"pkt-form-check-input",id:o,name:l,value:c,ref:n,...f}),a("label",{className:"pkt-form-label",htmlFor:o,children:i})]}));fe.displayName="PktRadio";const Je=({label:o,children:l})=>d(le,{children:[a("p",{children:o}),a("div",{className:"pkt-form-group",children:l})]});var pe={exports:{}};/*!
28
28
  Copyright (c) 2018 Jed Watson.
29
29
  Licensed under the MIT License (MIT), see
30
30
  http://jedwatson.github.io/classnames
31
- */(function(o){(function(){var l={}.hasOwnProperty;function i(){for(var c=[],f=0;f<arguments.length;f++){var n=arguments[f];if(n){var _=typeof n;if(_==="string"||_==="number")c.push(n);else if(Array.isArray(n)){if(n.length){var b=i.apply(null,n);b&&c.push(b)}}else if(_==="object"){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){c.push(n.toString());continue}for(var h in n)l.call(n,h)&&n[h]&&c.push(h)}}}return c.join(" ")}o.exports?(i.default=i,o.exports=i):window.classNames=i})()})(pe);var Ke=pe.exports;const Xe=Me(Ke),Ze=({isResponsive:o,children:l})=>o?a("div",{className:"pkt-table-container",children:l}):a(le,{children:l}),Qe=({isResponsive:o,modifiers:{info:l=!1,success:i=!1,strong:c=!1,shadow:f=!1}={},children:n})=>a(Ze,{isResponsive:o,children:a("table",{className:Xe("pkt-table",{"pkt-table--info":l,"pkt-table--success":i,"pkt-table--strong":c,"pkt-table--shadow":f}),children:n})}),qe=({children:o})=>a("td",{className:"pkt-table__th",children:o}),et=({children:o})=>a("th",{className:"pkt-table__th",children:o}),de=E.forwardRef(({id:o,label:l,...i},c)=>d("div",{className:"pkt-form-group",children:[a("label",{htmlFor:o,className:"pkt-form-label",children:l}),a("textarea",{className:"pkt-form-textarea",id:o,ref:c,...i})]}));de.displayName="PktTextarea",k.PktAlert=Ve,k.PktButton=se,k.PktFooter=Ue,k.PktFooterSimple=He,k.PktHeader=Ge,k.PktIcon=y,k.PktInput=ce,k.PktLinkCard=ue,k.PktMessagebox=ze,k.PktRadio=fe,k.PktRadioGroup=Je,k.PktTable=Qe,k.PktTableData=qe,k.PktTableHeader=et,k.PktTextarea=de,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})});
31
+ */(function(o){(function(){var l={}.hasOwnProperty;function i(){for(var c=[],f=0;f<arguments.length;f++){var n=arguments[f];if(n){var _=typeof n;if(_==="string"||_==="number")c.push(n);else if(Array.isArray(n)){if(n.length){var k=i.apply(null,n);k&&c.push(k)}}else if(_==="object"){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){c.push(n.toString());continue}for(var h in n)l.call(n,h)&&n[h]&&c.push(h)}}}return c.join(" ")}o.exports?(i.default=i,o.exports=i):window.classNames=i})()})(pe);var Ke=pe.exports;const Xe=Me(Ke),Ze=({isResponsive:o,children:l})=>o?a("div",{className:"pkt-table-container",children:l}):a(le,{children:l}),Qe=({isResponsive:o,modifiers:{info:l=!1,success:i=!1,strong:c=!1,shadow:f=!1}={},children:n})=>a(Ze,{isResponsive:o,children:a("table",{className:Xe("pkt-table",{"pkt-table--info":l,"pkt-table--success":i,"pkt-table--strong":c,"pkt-table--shadow":f}),children:n})}),qe=({children:o})=>a("td",{className:"pkt-table__th",children:o}),et=({children:o})=>a("th",{className:"pkt-table__th",children:o}),de=E.forwardRef(({id:o,label:l,...i},c)=>d("div",{className:"pkt-form-group",children:[a("label",{htmlFor:o,className:"pkt-form-label",children:l}),a("textarea",{className:"pkt-form-textarea",id:o,ref:c,...i})]}));de.displayName="PktTextarea",b.PktAlert=Ve,b.PktButton=se,b.PktFooter=Ue,b.PktFooterSimple=He,b.PktHeader=Ge,b.PktIcon=y,b.PktInput=ce,b.PktLinkCard=ue,b.PktMessagebox=ze,b.PktRadio=fe,b.PktRadioGroup=Je,b.PktTable=Qe,b.PktTableData=qe,b.PktTableHeader=et,b.PktTextarea=de,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "5.0.3",
3
+ "version": "5.0.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",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "devDependencies": {
34
34
  "@oslokommune/punkt-assets": "^5.0.2",
35
- "@oslokommune/punkt-css": "^5.0.2",
35
+ "@oslokommune/punkt-css": "^5.0.4",
36
36
  "@testing-library/jest-dom": "^5.16.5",
37
37
  "@testing-library/react": "^14.0.0",
38
38
  "@testing-library/user-event": "^14.4.3",
@@ -90,5 +90,5 @@
90
90
  "url": "https://github.com/oslokommune/punkt/issues"
91
91
  },
92
92
  "license": "MIT",
93
- "gitHead": "5aa37949d0dab9b15e0a089f2261739e768321cb"
93
+ "gitHead": "ceec529d5abb4946db492477a696cff656370c10"
94
94
  }
@@ -41,7 +41,7 @@ export const PktButton = forwardRef(
41
41
 
42
42
  return (
43
43
  <button {...props} className={classes} type={type} ref={ref}>
44
- <PktIcon className="pkt-btn__icon" name={iconName}></PktIcon>
44
+ {variant !== 'label-only' && <PktIcon className="pkt-btn__icon" name={iconName}></PktIcon>}
45
45
  <span className="pkt-btn__text">{children}</span>
46
46
  {variant === 'icons-right-and-left' && (
47
47
  <PktIcon className="pkt-btn__icon" name={secondIconName}></PktIcon>