nve-designsystem 3.15.0 → 3.15.1

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.
@@ -27,13 +27,13 @@ export default class NveTag extends LitElement {
27
27
  /** Størrelse på komponenten */
28
28
  size: 'small' | 'medium';
29
29
  /** Ekstra tekst */
30
- 'extra-text': string;
30
+ extraText: string;
31
31
  /** Viser dot-ikon i prefix */
32
32
  dot: boolean;
33
33
  /** Viser lukke-knapp */
34
- 'closeable': boolean;
34
+ closeable: boolean;
35
35
  /** aria-label på lukke-knapp */
36
- 'close-aria-label': string;
36
+ closeAriaLabel: string;
37
37
  private closeButtonClick;
38
38
  render(): import('lit-html').TemplateResult<1>;
39
39
  }
@@ -5,7 +5,7 @@ import s from "./nve-tag.styles.js";
5
5
  //#region src/components/nve-tag/nve-tag.component.ts
6
6
  var c = class extends n {
7
7
  constructor(...e) {
8
- super(...e), this.variant = "neutral", this.saturation = "default", this.size = "medium", this["extra-text"] = "", this.dot = !1, this.closeable = !1, this["close-aria-label"] = "Lukk";
8
+ super(...e), this.variant = "neutral", this.saturation = "default", this.size = "medium", this.extraText = "", this.dot = !1, this.closeable = !1, this.closeAriaLabel = "Lukk";
9
9
  }
10
10
  static {
11
11
  this.styles = [s];
@@ -43,11 +43,11 @@ var c = class extends n {
43
43
  </svg> ` : e}</slot
44
44
  >
45
45
  <slot part="text"></slot>
46
- <slot name="extra" part="extra">${this["extra-text"]}</slot>
46
+ <slot name="extra" part="extra">${this.extraText}</slot>
47
47
  ${this.closeable ? t`<button
48
48
  part="close"
49
49
  class="tag-close"
50
- aria-label="${this["close-aria-label"]}"
50
+ aria-label="${this.closeAriaLabel}"
51
51
  @click=${this.closeButtonClick}
52
52
  >
53
53
  <nve-icon name="close"></nve-icon>
@@ -68,17 +68,19 @@ a([r({
68
68
  })], c.prototype, "size", void 0), a([r({
69
69
  type: String,
70
70
  reflect: !1,
71
- attribute: !0
72
- })], c.prototype, null, void 0), a([r({
71
+ attribute: "extra-text"
72
+ })], c.prototype, "extraText", void 0), a([r({
73
73
  type: Boolean,
74
74
  reflect: !1
75
75
  })], c.prototype, "dot", void 0), a([r({
76
76
  type: Boolean,
77
- reflect: !1
78
- })], c.prototype, null, void 0), a([r({
77
+ reflect: !1,
78
+ attribute: "closeable"
79
+ })], c.prototype, "closeable", void 0), a([r({
79
80
  type: String,
80
- reflect: !1
81
- })], c.prototype, null, void 0), c = a([i("nve-tag")], c);
81
+ reflect: !1,
82
+ attribute: "close-aria-label"
83
+ })], c.prototype, "closeAriaLabel", void 0), c = a([i("nve-tag")], c);
82
84
  var l = c;
83
85
  //#endregion
84
86
  export { l as default };
@@ -13558,7 +13558,7 @@
13558
13558
  },
13559
13559
  {
13560
13560
  "kind": "field",
13561
- "name": "'extra-text'",
13561
+ "name": "extraText",
13562
13562
  "type": {
13563
13563
  "text": "string"
13564
13564
  },
@@ -13576,7 +13576,7 @@
13576
13576
  },
13577
13577
  {
13578
13578
  "kind": "field",
13579
- "name": "'closeable'",
13579
+ "name": "closeable",
13580
13580
  "type": {
13581
13581
  "text": "boolean"
13582
13582
  },
@@ -13585,7 +13585,7 @@
13585
13585
  },
13586
13586
  {
13587
13587
  "kind": "field",
13588
- "name": "'close-aria-label'",
13588
+ "name": "closeAriaLabel",
13589
13589
  "type": {
13590
13590
  "text": "string"
13591
13591
  },
@@ -13628,7 +13628,7 @@
13628
13628
  "description": "Størrelse på komponenten"
13629
13629
  },
13630
13630
  {
13631
- "name": "'extra-text'",
13631
+ "name": "extraText",
13632
13632
  "type": {
13633
13633
  "text": "any"
13634
13634
  },
@@ -13642,14 +13642,14 @@
13642
13642
  "description": "Viser dot-ikon i prefix"
13643
13643
  },
13644
13644
  {
13645
- "name": "'closeable'",
13645
+ "name": "closeable",
13646
13646
  "type": {
13647
13647
  "text": "boolean"
13648
13648
  },
13649
13649
  "description": "Viser lukke-knapp"
13650
13650
  },
13651
13651
  {
13652
- "name": "'close-aria-label'",
13652
+ "name": "closeAriaLabel",
13653
13653
  "type": {
13654
13654
  "text": "string"
13655
13655
  },
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "license": "MIT",
13
13
  "homepage": "https://github.com/NVE/Designsystem/",
14
- "version": "3.15.0",
14
+ "version": "3.15.1",
15
15
  "customElements": "dist/custom-elements.json",
16
16
  "exports": {
17
17
  ".": {
@@ -2062,19 +2062,19 @@
2062
2062
  "description": "Størrelse på komponenten",
2063
2063
  "values": [{ "name": "small" }, { "name": "medium" }]
2064
2064
  },
2065
- { "name": "'extra-text'", "description": "Ekstra tekst", "values": [] },
2065
+ { "name": "extraText", "description": "Ekstra tekst", "values": [] },
2066
2066
  {
2067
2067
  "name": "dot",
2068
2068
  "description": "Viser dot-ikon i prefix",
2069
2069
  "values": []
2070
2070
  },
2071
2071
  {
2072
- "name": "'closeable'",
2072
+ "name": "closeable",
2073
2073
  "description": "Viser lukke-knapp",
2074
2074
  "values": []
2075
2075
  },
2076
2076
  {
2077
- "name": "'close-aria-label'",
2077
+ "name": "closeAriaLabel",
2078
2078
  "description": "aria-label på lukke-knapp",
2079
2079
  "values": []
2080
2080
  }