@oslokommune/punkt-react 12.40.1 → 12.40.2

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.
@@ -25191,12 +25191,12 @@ al = ic([
25191
25191
  cr("pkt-tag")
25192
25192
  ], al);
25193
25193
  const AI = {
25194
- skin: {
25195
- default: "outlined"
25196
- },
25197
25194
  direction: {
25198
25195
  default: "portrait"
25199
25196
  },
25197
+ skin: {
25198
+ default: "outlined"
25199
+ },
25200
25200
  padding: {
25201
25201
  default: "standard"
25202
25202
  }
@@ -549,7 +549,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
549
549
  ${this.iconName&&be`<pkt-icon class="pkt-tag__icon" name=${this.iconName}></pkt-icon>`}
550
550
  <span ${qt(this.defaultSlot)}></span>
551
551
  </span>
552
- `}};cu([z({type:Boolean,reflect:!0})],_s.prototype,"closeTag",2),cu([z({type:String,reflect:!0})],_s.prototype,"size",2),cu([z({type:String,reflect:!0})],_s.prototype,"skin",2),cu([z({type:String,reflect:!0})],_s.prototype,"textStyle",2),cu([z({type:String,reflect:!0})],_s.prototype,"iconName",2),cu([z({type:String})],_s.prototype,"type",2),cu([z({type:String})],_s.prototype,"ariaLabel",2),cu([$n()],_s.prototype,"_isClosed",2),cu([$n()],_s.prototype,"_ariaDescription",2),_s=cu([dr("pkt-tag")],_s);const f3={skin:{default:"outlined"},direction:{default:"portrait"},padding:{default:"standard"}},p0={props:f3};var p3=Object.defineProperty,h3=Object.getOwnPropertyDescriptor,ri=(n,r,i,l)=>{for(var c=l>1?void 0:l?h3(r,i):r,h=n.length-1,m;h>=0;h--)(m=n[h])&&(c=(l?m(r,i,c):m(c))||c);return l&&c&&p3(r,i,c),c};let _a=class extends Hr{constructor(){super(),this.defaultSlot=dn(),this.ariaLabel="",this.metaLead=null,this.borderOnHover=!0,this.clickCardLink=null,this.metaTrail=null,this.direction=p0.props.direction.default,this.heading="",this.headinglevel=3,this.image={src:"",alt:""},this.imageShape="square",this.openLinkInNewTab=!1,this.padding=p0.props.padding.default,this.skin=p0.props.skin.default,this.subheading="",this.tagPosition="top",this.tags=[],this.slotController=new xa(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){var r,i;const l={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction,[`pkt-card--padding-${this.padding}`]:this.padding,"pkt-card--border-on-hover":this.borderOnHover},c=((r=this.ariaLabel)==null?void 0:r.trim())||(this.heading?`${this.heading} lenkekort`:"lenkekort"),h=((i=this.ariaLabel)==null?void 0:i.trim())||(this.heading?this.heading:"kort");return be`
552
+ `}};cu([z({type:Boolean,reflect:!0})],_s.prototype,"closeTag",2),cu([z({type:String,reflect:!0})],_s.prototype,"size",2),cu([z({type:String,reflect:!0})],_s.prototype,"skin",2),cu([z({type:String,reflect:!0})],_s.prototype,"textStyle",2),cu([z({type:String,reflect:!0})],_s.prototype,"iconName",2),cu([z({type:String})],_s.prototype,"type",2),cu([z({type:String})],_s.prototype,"ariaLabel",2),cu([$n()],_s.prototype,"_isClosed",2),cu([$n()],_s.prototype,"_ariaDescription",2),_s=cu([dr("pkt-tag")],_s);const f3={direction:{default:"portrait"},skin:{default:"outlined"},padding:{default:"standard"}},p0={props:f3};var p3=Object.defineProperty,h3=Object.getOwnPropertyDescriptor,ri=(n,r,i,l)=>{for(var c=l>1?void 0:l?h3(r,i):r,h=n.length-1,m;h>=0;h--)(m=n[h])&&(c=(l?m(r,i,c):m(c))||c);return l&&c&&p3(r,i,c),c};let _a=class extends Hr{constructor(){super(),this.defaultSlot=dn(),this.ariaLabel="",this.metaLead=null,this.borderOnHover=!0,this.clickCardLink=null,this.metaTrail=null,this.direction=p0.props.direction.default,this.heading="",this.headinglevel=3,this.image={src:"",alt:""},this.imageShape="square",this.openLinkInNewTab=!1,this.padding=p0.props.padding.default,this.skin=p0.props.skin.default,this.subheading="",this.tagPosition="top",this.tags=[],this.slotController=new xa(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){var r,i;const l={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.direction}`]:this.direction,[`pkt-card--padding-${this.padding}`]:this.padding,"pkt-card--border-on-hover":this.borderOnHover},c=((r=this.ariaLabel)==null?void 0:r.trim())||(this.heading?`${this.heading} lenkekort`:"lenkekort"),h=((i=this.ariaLabel)==null?void 0:i.trim())||(this.heading?this.heading:"kort");return be`
553
553
  <article
554
554
  class=${It(l)}
555
555
  aria-label=${Cn(this.clickCardLink?c:h)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-react",
3
- "version": "12.40.1",
3
+ "version": "12.40.2",
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.40.1",
41
+ "@oslokommune/punkt-elements": "^12.40.2",
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.39.2",
52
- "@oslokommune/punkt-css": "^12.40.0",
52
+ "@oslokommune/punkt-css": "^12.40.2",
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": "6bd6f3b4b95dc4beadf43392788dfd17d1f37efc"
115
+ "gitHead": "8abfa8016c57bbaebf21fe645687d35b1ee3c8f5"
116
116
  }