@oslokommune/punkt-elements 12.40.2 → 12.40.3

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,27 @@ og skriver commits ca etter [Conventional Commits](https://conventionalcommits.o
5
5
 
6
6
  ---
7
7
 
8
+ ## [12.40.3](https://github.com/oslokommune/punkt/compare/12.40.2...12.40.3) (2025-05-20)
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+ Ingen
12
+
13
+ ### Features
14
+ Ingen
15
+
16
+ ### Bug Fixes
17
+ Ingen
18
+
19
+ ### Chores
20
+ * update propnames for cards (#2574). - direction til layout
21
+ - portrait til vertical
22
+ - landscape til horizontal
23
+ - padding: standard til padding: default
24
+
25
+
26
+ ---
27
+
28
+
8
29
  ## [12.40.1](https://github.com/oslokommune/punkt/compare/12.40.0...12.40.1) (2025-05-20)
9
30
 
10
31
  ### ⚠ BREAKING CHANGES
@@ -1,7 +1,7 @@
1
- "use strict";const p=require("./class-map-DCyaICmy.cjs"),l=require("./if-defined-a3sotaUr.cjs"),t=require("./element-BSypUpzA.cjs"),g=require("./pkt-slot-controller-Da-RgXfS.cjs"),c=require("./ref-BvbyvXRH.cjs");require("./icon-BnKGwYjj.cjs");require("./tag-B9kFYxHg.cjs");const k={direction:{default:"portrait"},skin:{default:"outlined"},padding:{default:"standard"}},h={props:k};var u=Object.defineProperty,m=Object.getOwnPropertyDescriptor,e=(d,a,r,s)=>{for(var i=s>1?void 0:s?m(a,r):a,n=d.length-1,o;n>=0;n--)(o=d[n])&&(i=(s?o(a,r,i):o(i))||i);return s&&i&&u(a,r,i),i};exports.PktCard=class extends t.PktElement{constructor(){super(),this.defaultSlot=c.e(),this.ariaLabel="",this.metaLead=null,this.borderOnHover=!0,this.clickCardLink=null,this.metaTrail=null,this.direction=h.props.direction.default,this.heading="",this.headinglevel=3,this.image={src:"",alt:""},this.imageShape="square",this.openLinkInNewTab=!1,this.padding=h.props.padding.default,this.skin=h.props.skin.default,this.subheading="",this.tagPosition="top",this.tags=[],this.slotController=new g.PktSlotController(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){var i,n;const a={"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},r=((i=this.ariaLabel)==null?void 0:i.trim())||(this.heading?`${this.heading} lenkekort`:"lenkekort"),s=((n=this.ariaLabel)==null?void 0:n.trim())||(this.heading?this.heading:"kort");return t.x`
1
+ "use strict";const l=require("./class-map-DCyaICmy.cjs"),p=require("./if-defined-a3sotaUr.cjs"),t=require("./element-BSypUpzA.cjs"),g=require("./pkt-slot-controller-Da-RgXfS.cjs"),c=require("./ref-BvbyvXRH.cjs");require("./icon-BnKGwYjj.cjs");require("./tag-B9kFYxHg.cjs");const k={layout:{default:"vertical"},skin:{default:"outlined"},padding:{default:"default"}},h={props:k};var u=Object.defineProperty,m=Object.getOwnPropertyDescriptor,e=(d,a,i,s)=>{for(var r=s>1?void 0:s?m(a,i):a,n=d.length-1,o;n>=0;n--)(o=d[n])&&(r=(s?o(a,i,r):o(r))||r);return s&&r&&u(a,i,r),r};exports.PktCard=class extends t.PktElement{constructor(){super(),this.defaultSlot=c.e(),this.ariaLabel="",this.metaLead=null,this.borderOnHover=!0,this.clickCardLink=null,this.metaTrail=null,this.layout=h.props.layout.default,this.heading="",this.headinglevel=3,this.image={src:"",alt:""},this.imageShape="square",this.openLinkInNewTab=!1,this.padding=h.props.padding.default,this.skin=h.props.skin.default,this.subheading="",this.tagPosition="top",this.tags=[],this.slotController=new g.PktSlotController(this,this.defaultSlot)}connectedCallback(){super.connectedCallback()}render(){var r,n;const a={"pkt-card":!0,[`pkt-card--${this.skin}`]:this.skin,[`pkt-card--${this.layout}`]:this.layout,[`pkt-card--padding-${this.padding}`]:this.padding,"pkt-card--border-on-hover":this.borderOnHover},i=((r=this.ariaLabel)==null?void 0:r.trim())||(this.heading?`${this.heading} lenkekort`:"lenkekort"),s=((n=this.ariaLabel)==null?void 0:n.trim())||(this.heading?this.heading:"kort");return t.x`
2
2
  <article
3
- class=${p.e(a)}
4
- aria-label=${l.o(this.clickCardLink?r:s)}
3
+ class=${l.e(a)}
4
+ aria-label=${p.o(this.clickCardLink?i:s)}
5
5
  >
6
6
  ${this.renderImage()}
7
7
  <div class="pkt-card__wrapper">
@@ -14,7 +14,7 @@
14
14
  </article>
15
15
  `}renderImage(){const a={"pkt-card__image":!0,[`pkt-card__image-${this.imageShape}`]:this.imageShape};return t.x`
16
16
  ${this.image.src&&t.x`
17
- <div class=${p.e(a)}>
17
+ <div class=${l.e(a)}>
18
18
  <img src=${this.image.src} alt=${this.image.alt||""} />
19
19
  </div>
20
20
  `}
@@ -58,19 +58,19 @@
58
58
  `}renderTags(){const a={"pkt-card__tags":!0,[`pkt-card__tags-${this.tagPosition}`]:this.tagPosition};return t.x`
59
59
  ${this.tags.length>0?t.x`
60
60
  <div
61
- class=${p.e(a)}
61
+ class=${l.e(a)}
62
62
  role="list"
63
63
  aria-label=${this.tags.length>1?"merkelapper":"merkelapp"}
64
64
  >
65
- ${this.tags.map(r=>t.x`
65
+ ${this.tags.map(i=>t.x`
66
66
  <pkt-tag
67
67
  role="listitem"
68
68
  textStyle="normal-text"
69
69
  size="medium"
70
- skin=${l.o(r.skin)}
71
- iconName=${l.o(r.iconName)}
70
+ skin=${p.o(i.skin)}
71
+ iconName=${p.o(i.iconName)}
72
72
  >
73
- ${r.text}
73
+ ${i.text}
74
74
  </pkt-tag>
75
75
  `)}
76
76
  </div>
@@ -84,4 +84,4 @@
84
84
  ${this.metaTrail?t.x`<span class="pkt-card__metadata-trail">${this.metaTrail}</span>`:t.E}
85
85
  </footer>
86
86
  `:t.E}
87
- `}};e([t.n({type:String})],exports.PktCard.prototype,"ariaLabel",2);e([t.n({type:String})],exports.PktCard.prototype,"metaLead",2);e([t.n({type:Boolean})],exports.PktCard.prototype,"borderOnHover",2);e([t.n({type:String,reflect:!0})],exports.PktCard.prototype,"clickCardLink",2);e([t.n({type:String})],exports.PktCard.prototype,"metaTrail",2);e([t.n({type:String})],exports.PktCard.prototype,"direction",2);e([t.n({type:String})],exports.PktCard.prototype,"heading",2);e([t.n({type:Number})],exports.PktCard.prototype,"headinglevel",2);e([t.n({type:Object})],exports.PktCard.prototype,"image",2);e([t.n({type:String})],exports.PktCard.prototype,"imageShape",2);e([t.n({type:Boolean})],exports.PktCard.prototype,"openLinkInNewTab",2);e([t.n({type:String})],exports.PktCard.prototype,"padding",2);e([t.n({type:String})],exports.PktCard.prototype,"skin",2);e([t.n({type:String})],exports.PktCard.prototype,"subheading",2);e([t.n({type:String})],exports.PktCard.prototype,"tagPosition",2);e([t.n({type:Array})],exports.PktCard.prototype,"tags",2);exports.PktCard=e([t.t("pkt-card")],exports.PktCard);
87
+ `}};e([t.n({type:String})],exports.PktCard.prototype,"ariaLabel",2);e([t.n({type:String})],exports.PktCard.prototype,"metaLead",2);e([t.n({type:Boolean})],exports.PktCard.prototype,"borderOnHover",2);e([t.n({type:String,reflect:!0})],exports.PktCard.prototype,"clickCardLink",2);e([t.n({type:String})],exports.PktCard.prototype,"metaTrail",2);e([t.n({type:String})],exports.PktCard.prototype,"layout",2);e([t.n({type:String})],exports.PktCard.prototype,"heading",2);e([t.n({type:Number})],exports.PktCard.prototype,"headinglevel",2);e([t.n({type:Object})],exports.PktCard.prototype,"image",2);e([t.n({type:String})],exports.PktCard.prototype,"imageShape",2);e([t.n({type:Boolean})],exports.PktCard.prototype,"openLinkInNewTab",2);e([t.n({type:String})],exports.PktCard.prototype,"padding",2);e([t.n({type:String})],exports.PktCard.prototype,"skin",2);e([t.n({type:String})],exports.PktCard.prototype,"subheading",2);e([t.n({type:String})],exports.PktCard.prototype,"tagPosition",2);e([t.n({type:Array})],exports.PktCard.prototype,"tags",2);exports.PktCard=e([t.t("pkt-card")],exports.PktCard);
@@ -1,35 +1,35 @@
1
1
  import { e as g } from "./class-map-KyMqi0fa.js";
2
2
  import { o as c } from "./if-defined-BErSJCeJ.js";
3
- import { P as m, E as d, x as t, n as i, a as $ } from "./element-DjjF_tEh.js";
4
- import { P as u } from "./pkt-slot-controller-DtDaD9q_.js";
5
- import { e as _, n as y } from "./ref-iIffqQAI.js";
3
+ import { P as m, E as d, x as t, n as i, a as u } from "./element-DjjF_tEh.js";
4
+ import { P as $ } from "./pkt-slot-controller-DtDaD9q_.js";
5
+ import { e as y, n as _ } from "./ref-iIffqQAI.js";
6
6
  import "./icon-Beoxup8E.js";
7
7
  import "./tag-Cu8afZy8.js";
8
8
  const b = {
9
- direction: {
10
- default: "portrait"
9
+ layout: {
10
+ default: "vertical"
11
11
  },
12
12
  skin: {
13
13
  default: "outlined"
14
14
  },
15
15
  padding: {
16
- default: "standard"
16
+ default: "default"
17
17
  }
18
18
  }, k = {
19
19
  props: b
20
20
  };
21
21
  var f = Object.defineProperty, S = Object.getOwnPropertyDescriptor, a = (r, s, p, o) => {
22
- for (var n = o > 1 ? void 0 : o ? S(s, p) : s, h = r.length - 1, l; h >= 0; h--)
23
- (l = r[h]) && (n = (o ? l(s, p, n) : l(n)) || n);
22
+ for (var n = o > 1 ? void 0 : o ? S(s, p) : s, l = r.length - 1, h; l >= 0; l--)
23
+ (h = r[l]) && (n = (o ? h(s, p, n) : h(n)) || n);
24
24
  return o && n && f(s, p, n), n;
25
25
  };
26
26
  let e = class extends m {
27
27
  //Constructor
28
28
  constructor() {
29
- super(), this.defaultSlot = _(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.direction = k.props.direction.default, this.heading = "", this.headinglevel = 3, this.image = {
29
+ super(), this.defaultSlot = y(), this.ariaLabel = "", this.metaLead = null, this.borderOnHover = !0, this.clickCardLink = null, this.metaTrail = null, this.layout = k.props.layout.default, this.heading = "", this.headinglevel = 3, this.image = {
30
30
  src: "",
31
31
  alt: ""
32
- }, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding = k.props.padding.default, this.skin = k.props.skin.default, this.subheading = "", this.tagPosition = "top", this.tags = [], this.slotController = new u(this, this.defaultSlot);
32
+ }, this.imageShape = "square", this.openLinkInNewTab = !1, this.padding = k.props.padding.default, this.skin = k.props.skin.default, this.subheading = "", this.tagPosition = "top", this.tags = [], this.slotController = new $(this, this.defaultSlot);
33
33
  }
34
34
  connectedCallback() {
35
35
  super.connectedCallback();
@@ -42,7 +42,7 @@ let e = class extends m {
42
42
  const r = {
43
43
  "pkt-card": !0,
44
44
  [`pkt-card--${this.skin}`]: this.skin,
45
- [`pkt-card--${this.direction}`]: this.direction,
45
+ [`pkt-card--${this.layout}`]: this.layout,
46
46
  [`pkt-card--padding-${this.padding}`]: this.padding,
47
47
  "pkt-card--border-on-hover": this.borderOnHover
48
48
  }, s = ((o = this.ariaLabel) == null ? void 0 : o.trim()) || (this.heading ? `${this.heading} lenkekort` : "lenkekort"), p = ((n = this.ariaLabel) == null ? void 0 : n.trim()) || (this.heading ? this.heading : "kort");
@@ -161,7 +161,7 @@ let e = class extends m {
161
161
  }
162
162
  renderSlot() {
163
163
  return t`
164
- ${this.defaultSlot && t`<section class="pkt-card__content" ${y(this.defaultSlot)}></section>`}
164
+ ${this.defaultSlot && t`<section class="pkt-card__content" ${_(this.defaultSlot)}></section>`}
165
165
  `;
166
166
  }
167
167
  renderMetadata() {
@@ -192,7 +192,7 @@ a([
192
192
  ], e.prototype, "metaTrail", 2);
193
193
  a([
194
194
  i({ type: String })
195
- ], e.prototype, "direction", 2);
195
+ ], e.prototype, "layout", 2);
196
196
  a([
197
197
  i({ type: String })
198
198
  ], e.prototype, "heading", 2);
@@ -224,7 +224,7 @@ a([
224
224
  i({ type: Array })
225
225
  ], e.prototype, "tags", 2);
226
226
  e = a([
227
- $("pkt-card")
227
+ u("pkt-card")
228
228
  ], e);
229
229
  export {
230
230
  e as P
package/dist/index.d.ts CHANGED
@@ -122,7 +122,7 @@ declare interface IPktCard {
122
122
  ariaLabel?: IAriaAttributes['aria-label'];
123
123
  metaLead?: string | null;
124
124
  metaTrail?: string | null;
125
- direction?: TDirection;
125
+ layout?: TLayout;
126
126
  heading?: string;
127
127
  headingLevel?: IPktHeading['level'];
128
128
  image?: {
@@ -467,7 +467,7 @@ export declare class PktCard extends PktElement implements IPktCard {
467
467
  borderOnHover: boolean;
468
468
  clickCardLink: IPktCard['clickCardLink'];
469
469
  metaTrail: string | null;
470
- direction: TDirection;
470
+ layout: TLayout;
471
471
  heading: string;
472
472
  headinglevel: IPktHeading['level'];
473
473
  image: {
@@ -1179,7 +1179,7 @@ declare type TAriaSort = 'none' | 'ascending' | 'descending' | 'other';
1179
1179
 
1180
1180
  declare type TCardImageShape = 'square' | 'round';
1181
1181
 
1182
- declare type TCardPadding = 'none' | 'standard';
1182
+ declare type TCardPadding = 'none' | 'default';
1183
1183
 
1184
1184
  declare type TCardSkin = 'outlined' | 'outlined-beige' | 'gray' | 'beige' | 'green' | 'blue';
1185
1185
 
@@ -1187,7 +1187,7 @@ declare type TCardTagPosition = 'top' | 'bottom';
1187
1187
 
1188
1188
  declare type TCounterPosition = 'top' | 'bottom';
1189
1189
 
1190
- declare type TDirection = 'portrait' | 'landscape';
1190
+ declare type TLayout = 'vertical' | 'horizontal';
1191
1191
 
1192
1192
  declare type TLinkCardSkin = 'normal' | 'blue' | 'beige' | 'green' | 'gray' | 'beige-outline' | 'gray-outline';
1193
1193
 
package/dist/pkt-card.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./card-6kFXx2cg.cjs"),t=e.PktCard;Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>e.PktCard});exports.default=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./card-CibYYPmF.cjs"),t=e.PktCard;Object.defineProperty(exports,"PktCard",{enumerable:!0,get:()=>e.PktCard});exports.default=t;
package/dist/pkt-card.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as a } from "./card-BN_kkFp5.js";
1
+ import { P as a } from "./card-Vy3_XLAy.js";
2
2
  const r = a;
3
3
  export {
4
4
  a as PktCard,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-C2EPmB0W.cjs"),l=require("./accordionitem-RFwXQC_0.cjs"),d=require("./backlink-HHM21crL.cjs"),b=require("./button-C60j8BsA.cjs"),k=require("./calendar-CYY42kN4.cjs"),m=require("./card-6kFXx2cg.cjs"),g=require("./combobox-dwkB9Yv_.cjs"),h=require("./consent-1ZSUrWK9.cjs"),f=require("./checkbox-7ct89AUo.cjs"),t=require("./element-BSypUpzA.cjs"),y=require("./pkt-slot-controller-Da-RgXfS.cjs"),s=require("./ref-BvbyvXRH.cjs"),O=require("./class-map-DCyaICmy.cjs"),j=require("./datepicker-BDnncwne.cjs"),q=require("./helptext-bMgnhZ1R.cjs"),x=require("./heading-BnJhJDMD.cjs"),C=require("./icon-BnKGwYjj.cjs"),v=require("./input-wrapper-B-f_SotM.cjs"),S=require("./link-nesPZCIx.cjs"),$=require("./linkcard-s9yoOq90.cjs"),L=require("./loader-ndMy12Pb.cjs"),_=require("./messagebox-B0kgftoP.cjs"),A=require("./modal-C8GbUY8p.cjs"),B=require("./progressbar-DiRfScnB.cjs"),p=require("./radiobutton-DGWTMdAZ.cjs"),T=require("./tag-B9kFYxHg.cjs"),I=require("./textarea-yUzqcBYY.cjs"),M=require("./textinput-8mT0npMY.cjs"),R=require("./select-ChpPtH7u.cjs");var H=Object.defineProperty,w=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var n=i>1?void 0:i?w(e,r):e,u=a.length-1,c;u>=0;u--)(c=a[u])&&(n=(i?c(e,r,n):c(n))||n);return i&&n&&H(e,r,n),n};exports.PktComponent=class extends t.PktElement{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=s.e(),this.namedSlot=s.e(),this.slotController=new y.PktSlotController(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return t.x`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("./alert-C2EPmB0W.cjs"),l=require("./accordionitem-RFwXQC_0.cjs"),d=require("./backlink-HHM21crL.cjs"),b=require("./button-C60j8BsA.cjs"),k=require("./calendar-CYY42kN4.cjs"),m=require("./card-CibYYPmF.cjs"),g=require("./combobox-dwkB9Yv_.cjs"),h=require("./consent-1ZSUrWK9.cjs"),f=require("./checkbox-7ct89AUo.cjs"),t=require("./element-BSypUpzA.cjs"),y=require("./pkt-slot-controller-Da-RgXfS.cjs"),s=require("./ref-BvbyvXRH.cjs"),O=require("./class-map-DCyaICmy.cjs"),j=require("./datepicker-BDnncwne.cjs"),q=require("./helptext-bMgnhZ1R.cjs"),x=require("./heading-BnJhJDMD.cjs"),C=require("./icon-BnKGwYjj.cjs"),v=require("./input-wrapper-B-f_SotM.cjs"),S=require("./link-nesPZCIx.cjs"),$=require("./linkcard-s9yoOq90.cjs"),L=require("./loader-ndMy12Pb.cjs"),_=require("./messagebox-B0kgftoP.cjs"),A=require("./modal-C8GbUY8p.cjs"),B=require("./progressbar-DiRfScnB.cjs"),p=require("./radiobutton-DGWTMdAZ.cjs"),T=require("./tag-B9kFYxHg.cjs"),I=require("./textarea-yUzqcBYY.cjs"),M=require("./textinput-8mT0npMY.cjs"),R=require("./select-ChpPtH7u.cjs");var H=Object.defineProperty,w=Object.getOwnPropertyDescriptor,o=(a,e,r,i)=>{for(var n=i>1?void 0:i?w(e,r):e,u=a.length-1,c;u>=0;u--)(c=a[u])&&(n=(i?c(e,r,n):c(n))||n);return i&&n&&H(e,r,n),n};exports.PktComponent=class extends t.PktElement{constructor(){super(),this.string="",this.strings=[],this.darkmode=!1,this._list=[],this.defaultSlot=s.e(),this.namedSlot=s.e(),this.slotController=new y.PktSlotController(this,this.defaultSlot,this.namedSlot)}connectedCallback(){this.strings.length&&this.strings.forEach(e=>{this._list.push(e.toUpperCase())}),super.connectedCallback()}render(){const e={"pkt-component":!0,"pkt-component--has-list":this.strings.length>0,"pkt-darkmode":this.darkmode};return t.x`
2
2
  <div class="${O.e(e)}">
3
3
  <h1 class="pkt-txt-28">${this.string}</h1>
4
4
 
package/dist/pkt-index.js CHANGED
@@ -4,7 +4,7 @@ import { P as O } from "./backlink-hvyJmwrO.js";
4
4
  import { P as T } from "./button-BCCtR9ff.js";
5
5
  import { c as f } from "./calendar-KDcOWD6V.js";
6
6
  import { P as D } from "./calendar-KDcOWD6V.js";
7
- import { P as G } from "./card-BN_kkFp5.js";
7
+ import { P as G } from "./card-Vy3_XLAy.js";
8
8
  import { P as K } from "./combobox-DewmPXyJ.js";
9
9
  import { P as U } from "./consent-c6eWVBWx.js";
10
10
  import { P as q } from "./checkbox-D5fSFvhs.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oslokommune/punkt-elements",
3
- "version": "12.40.2",
3
+ "version": "12.40.3",
4
4
  "description": "Komponentbiblioteket 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": "^12.39.2",
35
- "@oslokommune/punkt-css": "^12.40.2",
35
+ "@oslokommune/punkt-css": "^12.40.3",
36
36
  "sass": "^1.78.0",
37
37
  "typescript": "^5.6.2",
38
38
  "vite": "^5.4.18",
@@ -59,5 +59,5 @@
59
59
  "url": "https://github.com/oslokommune/punkt/issues"
60
60
  },
61
61
  "license": "MIT",
62
- "gitHead": "8abfa8016c57bbaebf21fe645687d35b1ee3c8f5"
62
+ "gitHead": "ed16d8e18201f36c905e47b96d62d29278595ba8"
63
63
  }
@@ -13,8 +13,8 @@ import '@/components/tag'
13
13
  import { IAriaAttributes } from '@/types/aria'
14
14
 
15
15
  export type TCardSkin = 'outlined' | 'outlined-beige' | 'gray' | 'beige' | 'green' | 'blue'
16
- export type TDirection = 'portrait' | 'landscape'
17
- export type TCardPadding = 'none' | 'standard'
16
+ export type TLayout = 'vertical' | 'horizontal'
17
+ export type TCardPadding = 'none' | 'default'
18
18
  export type TCardImageShape = 'square' | 'round'
19
19
  export type TCardTagPosition = 'top' | 'bottom'
20
20
 
@@ -22,7 +22,7 @@ export interface IPktCard {
22
22
  ariaLabel?: IAriaAttributes['aria-label']
23
23
  metaLead?: string | null
24
24
  metaTrail?: string | null
25
- direction?: TDirection
25
+ layout?: TLayout
26
26
  heading?: string
27
27
  headingLevel?: IPktHeading['level']
28
28
  image?: { src: string; alt: string }
@@ -57,7 +57,7 @@ export class PktCard extends PktElement implements IPktCard {
57
57
  @property({ type: Boolean }) borderOnHover: boolean = true
58
58
  @property({ type: String, reflect: true }) clickCardLink: IPktCard['clickCardLink'] = null
59
59
  @property({ type: String }) metaTrail: string | null = null
60
- @property({ type: String }) direction: TDirection = specs.props.direction.default as TDirection
60
+ @property({ type: String }) layout: TLayout = specs.props.layout.default as TLayout
61
61
  @property({ type: String }) heading: string = ''
62
62
  @property({ type: Number }) headinglevel: IPktHeading['level'] = 3
63
63
  @property({ type: Object }) image: { src: string; alt: string } = {
@@ -84,7 +84,7 @@ export class PktCard extends PktElement implements IPktCard {
84
84
  const classes = {
85
85
  'pkt-card': true,
86
86
  [`pkt-card--${this.skin}`]: this.skin,
87
- [`pkt-card--${this.direction}`]: this.direction,
87
+ [`pkt-card--${this.layout}`]: this.layout,
88
88
  [`pkt-card--padding-${this.padding}`]: this.padding,
89
89
  [`pkt-card--border-on-hover`]: this.borderOnHover,
90
90
 
@@ -1,4 +1,4 @@
1
1
  import { PktCard } from './card'
2
- import type { TCardSkin, TDirection } from './card'
3
- export { PktCard, TCardSkin, TDirection }
2
+ import type { TCardSkin, TLayout, TCardPadding, TCardImageShape, TCardTagPosition } from './card'
3
+ export { PktCard, TCardSkin, TLayout, TCardPadding, TCardImageShape, TCardTagPosition }
4
4
  export default PktCard