nve-designsystem 4.2.0 → 4.4.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.
Files changed (86) hide show
  1. package/chunks/chunk.2PCBEMQZ.js +4 -4
  2. package/chunks/chunk.36O46B5H.js +2 -2
  3. package/chunks/chunk.4TUIT776.js +1 -1
  4. package/chunks/chunk.5JY5FUCG.js +325 -344
  5. package/chunks/chunk.5P45LHIX.js +3 -3
  6. package/chunks/chunk.6CTB5ZDJ.js +16 -4
  7. package/chunks/chunk.B4BZKR24.js +2 -2
  8. package/chunks/chunk.D5YQDJ7X.js +3 -3
  9. package/chunks/chunk.EA437WHD.js +1 -1
  10. package/chunks/chunk.GI7VDIWX.js +1 -1
  11. package/chunks/chunk.GMYPQTFK.js +1 -1
  12. package/chunks/chunk.HVTXQL7M.js +3 -3
  13. package/chunks/chunk.IKV4VH3T.js +3 -3
  14. package/chunks/chunk.IVVHNXMC.js +2 -2
  15. package/chunks/chunk.JHOXTQXA.js +3 -3
  16. package/chunks/chunk.JXOKFADN.js +3 -3
  17. package/chunks/chunk.K7JGTRV7.js +1 -1
  18. package/chunks/chunk.KPLQLAWP.js +3 -3
  19. package/chunks/chunk.LD4M4QGE.js +1 -1
  20. package/chunks/chunk.MSKEYBDI.js +3 -3
  21. package/chunks/chunk.NYIIDP5N.js +1 -1
  22. package/chunks/chunk.RWUUFNUL.js +3 -3
  23. package/chunks/chunk.SAPQLUO4.js +4 -4
  24. package/chunks/chunk.SI4ACBFK.js +1 -1
  25. package/chunks/chunk.TP2GB2HO.js +4 -4
  26. package/chunks/chunk.UDWRA64J.js +3 -3
  27. package/chunks/chunk.URTPIBTY.js +3 -3
  28. package/chunks/chunk.VESXC477.js +1 -1
  29. package/chunks/chunk.XA43ZQPC.js +3 -3
  30. package/chunks/chunk.XQ2OKYYA.js +3 -3
  31. package/chunks/chunk.XZNBUGX7.js +1 -1
  32. package/chunks/chunk.YHLNUJ7P.js +2 -2
  33. package/chunks/chunk.ZH2AND3P.js +8 -8
  34. package/chunks/chunk.ZL53POKZ.js +2 -2
  35. package/chunks/class-map.js +3 -3
  36. package/chunks/decorate.js +11 -11
  37. package/chunks/directive-helpers.js +3 -3
  38. package/chunks/if-defined.js +1 -1
  39. package/chunks/lit.js +88 -86
  40. package/chunks/live.js +8 -8
  41. package/chunks/nve-alert.component.js +9 -9
  42. package/chunks/nve-carousel-item.component.js +1 -1
  43. package/chunks/nve-checkbox-group.component.js +7 -7
  44. package/chunks/nve-label.component.js +1 -1
  45. package/chunks/nve-warning-level.component.js +4 -4
  46. package/chunks/ref.js +4 -4
  47. package/chunks/shoelace.js +771 -771
  48. package/chunks/static-html.js +16 -13
  49. package/chunks/unsafe-html.js +1 -1
  50. package/components/nve-accordion/nve-accordion.component.js +1 -1
  51. package/components/nve-badge/nve-badge.component.js +1 -1
  52. package/components/nve-button/nve-button.component.js +1 -1
  53. package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +1 -1
  54. package/components/nve-combobox/nve-combobox.component.js +1 -1
  55. package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +3 -2
  56. package/components/nve-heading/nve-heading.component.d.ts +29 -0
  57. package/components/nve-heading/nve-heading.component.js +45 -0
  58. package/components/nve-heading/nve-heading.styles.d.ts +2 -0
  59. package/components/nve-heading/nve-heading.styles.js +41 -0
  60. package/components/nve-icon/nve-icon.component.js +1 -1
  61. package/components/nve-link-card/nve-link-card.component.js +6 -6
  62. package/components/nve-message-card/nve-message-card.component.js +1 -1
  63. package/components/nve-navigation-card/nve-navigation-card.component.js +8 -8
  64. package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
  65. package/components/nve-paragraph/nve-paragraph.component.js +26 -0
  66. package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
  67. package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
  68. package/components/nve-stepper/nve-step/nve-step.component.js +21 -21
  69. package/components/nve-stepper/nve-stepper-mobile.component.js +1 -1
  70. package/components/nve-stepper/nve-stepper.component.js +1 -1
  71. package/components/nve-switch/nve-switch.component.js +1 -1
  72. package/components/nve-tab/nve-tab.component.js +1 -1
  73. package/components/nve-tab-group/nve-tab-group.component.js +6 -6
  74. package/components/nve-tab-panel/nve-tab-panel.component.js +1 -1
  75. package/components/nve-tag/nve-tag.component.js +6 -6
  76. package/components/nve-textarea/nve-textarea.component.js +12 -12
  77. package/css/nve.css +54 -45
  78. package/css/nve_dark.css +16 -7
  79. package/css/rme.css +54 -45
  80. package/css/rme_dark.css +16 -7
  81. package/css/varsom.css +54 -45
  82. package/css/varsom_dark.css +16 -7
  83. package/custom-elements.json +170 -1
  84. package/nve-designsystem.d.ts +3 -1
  85. package/nve-designsystem.js +23 -21
  86. package/package.json +15 -7
@@ -1,24 +1,27 @@
1
- import { s as e } from "./lit.js";
2
- //#region node_modules/lit-html/static.js
1
+ import { a as e } from "./lit.js";
2
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/static.js
3
3
  var t = Symbol.for(""), n = (e) => {
4
4
  if (e?.r === t) return e?._$litStatic$;
5
- }, r = (e, ...n) => ({
6
- _$litStatic$: n.reduce(((t, n, r) => t + ((e) => {
5
+ }, r = (e) => ({
6
+ _$litStatic$: e,
7
+ r: t
8
+ }), i = (e, ...n) => ({
9
+ _$litStatic$: n.reduce((t, n, r) => t + ((e) => {
7
10
  if (e._$litStatic$ !== void 0) return e._$litStatic$;
8
11
  throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`);
9
- })(n) + e[r + 1]), e[0]),
12
+ })(n) + e[r + 1], e[0]),
10
13
  r: t
11
- }), i = /* @__PURE__ */ new Map(), a = ((e) => (t, ...r) => {
12
- let a = r.length, o, s, c = [], l = [], u, d = 0, f = !1;
13
- for (; d < a;) {
14
- for (u = t[d]; d < a && (s = r[d], o = n(s)) !== void 0;) u += o + t[++d], f = !0;
15
- d !== a && l.push(s), c.push(u), d++;
14
+ }), a = /* @__PURE__ */ new Map(), o = ((e) => (t, ...r) => {
15
+ let i = r.length, o, s, c = [], l = [], u, d = 0, f = !1;
16
+ for (; d < i;) {
17
+ for (u = t[d]; d < i && (s = r[d], o = n(s)) !== void 0;) u += o + t[++d], f = !0;
18
+ d !== i && l.push(s), c.push(u), d++;
16
19
  }
17
- if (d === a && c.push(t[a]), f) {
20
+ if (d === i && c.push(t[i]), f) {
18
21
  let e = c.join("$$lit$$");
19
- (t = i.get(e)) === void 0 && (c.raw = c, i.set(e, t = c)), r = l;
22
+ (t = a.get(e)) === void 0 && (c.raw = c, a.set(e, t = c)), r = l;
20
23
  }
21
24
  return e(t, ...r);
22
25
  })(e);
23
26
  //#endregion
24
- export { a as n, r as t };
27
+ export { r as n, o as r, i as t };
@@ -1,6 +1,6 @@
1
1
  import { n as e, r as t } from "./lit.js";
2
2
  import { i as n, n as r, r as i } from "./class-map.js";
3
- //#region node_modules/lit-html/directives/unsafe-html.js
3
+ //#region .pnpm/lit-html@3.3.3/node_modules/lit-html/directives/unsafe-html.js
4
4
  var a = class extends i {
5
5
  constructor(t) {
6
6
  if (super(t), this.it = e, t.type !== n.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  //#region src/components/nve-accordion/nve-accordion.component.ts
4
4
  var a = class extends t {
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import { t as a } from "../../chunks/class-map.js";
4
4
  import o from "./nve-badge.styles.js";
@@ -2,7 +2,7 @@ import { n as e, t } from "../../chunks/lit.js";
2
2
  import { a as n, o as r, r as i, s as a, t as o } from "../../chunks/decorate.js";
3
3
  import { t as s } from "../../chunks/class-map.js";
4
4
  import { t as c } from "../../chunks/if-defined.js";
5
- import { n as l, t as u } from "../../chunks/static-html.js";
5
+ import { r as l, t as u } from "../../chunks/static-html.js";
6
6
  import d from "./nve-button.styles.js";
7
7
  //#region src/components/nve-button/nve-button.component.ts
8
8
  var f = class extends t {
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import a from "./nve-carousel-thumbnail.styles.js";
4
4
  //#region src/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.ts
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { a as n, o as r, s as i, t as a } from "../../chunks/decorate.js";
3
3
  import { t as o } from "../../chunks/unsafe-html.js";
4
4
  import { n as s, t as c } from "../../chunks/ref.js";
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  //#region src/components/nve-darkmode-switch/nve-darkmode-switch.component.ts
4
4
  var a = class extends t {
@@ -6,7 +6,8 @@ var a = class extends t {
6
6
  super(), this.testId = "", this.darkmode = !1, this.darkmodeclass = "darkmode", this.localStorageVariable = "preferdarkmode";
7
7
  }
8
8
  toggleDarkmode(e) {
9
- this.darkmode = !!e.target.checked, localStorage.setItem(this.localStorageVariable, this.darkmode.toString()), this.darkmode ? document.documentElement.classList.add(this.darkmodeclass) : document.documentElement.classList.remove(this.darkmodeclass);
9
+ let t = e.target;
10
+ this.darkmode = !!t?.checked, localStorage.setItem(this.localStorageVariable, this.darkmode.toString()), this.darkmode ? document.documentElement.classList.add(this.darkmodeclass) : document.documentElement.classList.remove(this.darkmodeclass);
10
11
  }
11
12
  connectedCallback() {
12
13
  super.connectedCallback();
@@ -0,0 +1,29 @@
1
+ import { LitElement } from 'lit';
2
+ import { INveComponent } from '../../interfaces/NveComponent.interface';
3
+ /**
4
+ * nve-heading gir semantisk og tilgjengelig overskrift med riktig typografi fra designsystemet.
5
+ * Brukes for å sikre korrekt heading-hierarki (h1–h6) og typografi, og kan overstyres med variant for heading eller subheading.
6
+ *
7
+ * @slot - tekst - Selve overskriften (innholdet).
8
+ *
9
+ * @csspart nve-heading Hele heading-elementet
10
+ *
11
+ * Se designsystemet for alle varianter og tokens.
12
+ */
13
+ export default class NveHeading extends LitElement implements INveComponent {
14
+ testId: string | undefined;
15
+ /** Heading level - Hvilket nivå overskriften skal ha (h1-h6) */
16
+ level: 1 | 2 | 3 | 4 | 5 | 6;
17
+ /** Typografitype - Kan overstyre det som er standard typografi basert på nivå */
18
+ size?: 'headingXlarge' | 'headingLarge' | 'headingMedium' | 'headingSmall' | 'headingXsmall' | 'subheadingLarge' | 'subheadingMedium' | 'subheadingSmall';
19
+ static styles: import('lit').CSSResult[];
20
+ constructor();
21
+ protected getTagName(): string;
22
+ protected getDefaultTypographyType(): "headingXlarge" | "headingLarge" | "headingMedium" | "headingSmall" | "headingXsmall";
23
+ render(): import('lit-html').TemplateResult;
24
+ }
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ 'nve-heading': NveHeading;
28
+ }
29
+ }
@@ -0,0 +1,45 @@
1
+ import { t as e } from "../../chunks/lit.js";
2
+ import { o as t, s as n, t as r } from "../../chunks/decorate.js";
3
+ import { n as i, r as a } from "../../chunks/static-html.js";
4
+ import o from "./nve-heading.styles.js";
5
+ //#region src/components/nve-heading/nve-heading.component.ts
6
+ var s = class extends e {
7
+ static {
8
+ this.styles = [o];
9
+ }
10
+ constructor() {
11
+ super(), this.testId = void 0, this.level = 1;
12
+ }
13
+ getTagName() {
14
+ return !this.level || this.level < 1 || this.level > 6 || isNaN(this.level) ? "h1" : `h${this.level}`;
15
+ }
16
+ getDefaultTypographyType() {
17
+ switch (this.level) {
18
+ case 1: return "headingXlarge";
19
+ case 2: return "headingLarge";
20
+ case 3: return "headingMedium";
21
+ case 4: return "headingSmall";
22
+ case 5: return "headingXsmall";
23
+ case 6: return "headingXsmall";
24
+ default: return "headingMedium";
25
+ }
26
+ }
27
+ render() {
28
+ let e = this.getTagName();
29
+ return a`
30
+ <${i(e)} part="nve-heading" data-testid=${this.testId} class="heading ${this.size ? this.size : this.getDefaultTypographyType()}">
31
+ <slot></slot>
32
+ </${i(e)}>
33
+ `;
34
+ }
35
+ };
36
+ r([t({ type: String })], s.prototype, "testId", void 0), r([t({
37
+ type: Number,
38
+ reflect: !0
39
+ })], s.prototype, "level", void 0), r([t({
40
+ type: String,
41
+ reflect: !0
42
+ })], s.prototype, "size", void 0), s = r([n("nve-heading")], s);
43
+ var c = s;
44
+ //#endregion
45
+ export { c as default };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,41 @@
1
+ import { u as e } from "../../chunks/lit.js";
2
+ //#region src/components/nve-heading/nve-heading.styles.ts
3
+ var t = e`
4
+ .heading {
5
+ margin: 0;
6
+ }
7
+
8
+ .headingXlarge {
9
+ font: var(--typography-heading-x-large);
10
+ }
11
+
12
+ .headingLarge {
13
+ font: var(--typography-heading-large);
14
+ }
15
+
16
+ .headingMedium {
17
+ font: var(--typography-heading-medium);
18
+ }
19
+
20
+ .headingSmall {
21
+ font: var(--typography-heading-small);
22
+ }
23
+
24
+ .headingXsmall {
25
+ font: var(--typography-heading-x-small);
26
+ }
27
+
28
+ .subheadingLarge {
29
+ font: var(--typography-subheading-large);
30
+ }
31
+
32
+ .subheadingMedium {
33
+ font: var(--typography-subheading-medium);
34
+ }
35
+
36
+ .subheadingSmall {
37
+ font: var(--typography-subheading-small);
38
+ }
39
+ `;
40
+ //#endregion
41
+ export { t as default };
@@ -1,5 +1,5 @@
1
1
  import { r as e, t } from "../../chunks/chunk.js";
2
- import { s as n, t as r } from "../../chunks/lit.js";
2
+ import { a as n, t as r } from "../../chunks/lit.js";
3
3
  import { a as i, o as a, s as o, t as s } from "../../chunks/decorate.js";
4
4
  import { t as c } from "../../chunks/class-map.js";
5
5
  import { t as l } from "../../chunks/if-defined.js";
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "../../chunks/lit.js";
1
+ import { a as e, n as t, t as n } from "../../chunks/lit.js";
2
2
  import { o as r, s as i, t as a } from "../../chunks/decorate.js";
3
3
  import { t as o } from "../../chunks/class-map.js";
4
4
  import { t as s } from "../../chunks/if-defined.js";
@@ -22,17 +22,17 @@ var l = class extends n {
22
22
  }
23
23
  }
24
24
  renderContent() {
25
- return t`
25
+ return e`
26
26
  <slot name="icon"></slot>
27
27
  <div class="link-card__content">
28
28
  <div part="label" class="link-card__label">${this.label}</div>
29
- ${this.additionalText ? t`<div part="additional-text" class="link-card__additional-text">${this.additionalText}</div>` : e}
29
+ ${this.additionalText ? e`<div part="additional-text" class="link-card__additional-text">${this.additionalText}</div>` : t}
30
30
  </div>
31
31
  <nve-icon aria-hidden="true" slot="suffix" name="${this.getIconName()}"></nve-icon>
32
32
  `;
33
33
  }
34
34
  render() {
35
- return this.parentElement?.tagName.toLowerCase() === "a" || this.parentElement?.getAttribute("role") === "link" ? t` <div
35
+ return this.parentElement?.tagName.toLowerCase() === "a" || this.parentElement?.getAttribute("role") === "link" ? e` <div
36
36
  part="link-card"
37
37
  testId="${s(this.testId)}"
38
38
  class=${o({
@@ -42,14 +42,14 @@ var l = class extends n {
42
42
  })}
43
43
  >
44
44
  ${this.renderContent()}
45
- </div>` : t`
45
+ </div>` : e`
46
46
  <a
47
47
  testId="${s(this.testId)}"
48
48
  ?download=${this.clickAction === "download"}
49
49
  part="link-card"
50
50
  class="link-card link-card--${this.size} link-card--${this.variant}"
51
51
  href=${s(this.clickAction === "mail" ? `mailto:${this.href}` : this.href)}
52
- target=${this.clickAction === "external" ? "_blank" : e}
52
+ target=${this.clickAction === "external" ? "_blank" : t}
53
53
  >${this.renderContent()}
54
54
  </a>
55
55
  `;
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import { t as a } from "../../chunks/class-map.js";
4
4
  import "../nve-icon/nve-icon.component.js";
@@ -1,4 +1,4 @@
1
- import { n as e, s as t, t as n } from "../../chunks/lit.js";
1
+ import { a as e, n as t, t as n } from "../../chunks/lit.js";
2
2
  import { o as r, s as i, t as a } from "../../chunks/decorate.js";
3
3
  import { t as o } from "../../chunks/if-defined.js";
4
4
  import "../nve-icon/nve-icon.component.js";
@@ -20,34 +20,34 @@ var c = class extends n {
20
20
  }
21
21
  }
22
22
  renderContent() {
23
- return t`
23
+ return e`
24
24
  <div part="content" class="navigation-card__content">
25
- ${this.iconPath ? t`<img
25
+ ${this.iconPath ? e`<img
26
26
  part="leading-icon"
27
27
  src="${this.iconPath}"
28
28
  alt=""
29
29
  aria-hidden="true"
30
30
  class="navigation-card__icon"
31
- />` : e}
31
+ />` : t}
32
32
  <h2 part="label" class="navigation-card__label">${this.label}</h2>
33
- ${!this.iconPath && this.additionalText ? t`<p part="additional-text" class="navigation-card__additional-text">${this.additionalText}</p>` : e}
33
+ ${!this.iconPath && this.additionalText ? e`<p part="additional-text" class="navigation-card__additional-text">${this.additionalText}</p>` : t}
34
34
  </div>
35
35
  <nve-icon aria-hidden="true" name="${this.getIconName()}" class="navigation-card__arrow" />
36
36
  `;
37
37
  }
38
38
  render() {
39
- return this.parentElement?.tagName.toLowerCase() === "a" || this.parentElement?.getAttribute("role") === "link" ? t`
39
+ return this.parentElement?.tagName.toLowerCase() === "a" || this.parentElement?.getAttribute("role") === "link" ? e`
40
40
  <div part="navigation-card" class="navigation-card" testid=${o(this.testId)}>
41
41
  ${this.renderContent()}
42
42
  </div>
43
- ` : t`
43
+ ` : e`
44
44
  <a
45
45
  testid=${o(this.testId)}
46
46
  ?download=${this.clickAction === "download"}
47
47
  part="navigation-card"
48
48
  class="navigation-card"
49
49
  href="${o(this.href)}"
50
- target=${this.clickAction === "external" ? "_blank" : e}
50
+ target=${this.clickAction === "external" ? "_blank" : t}
51
51
  >
52
52
  ${this.renderContent()}
53
53
  </a>
@@ -0,0 +1,26 @@
1
+ import { LitElement } from 'lit';
2
+ import { INveComponent } from '../../interfaces/NveComponent.interface';
3
+ /**
4
+ * nve-paragraph gir fleksibel og tilgjengelig typografi for avsnitt i designsystemet.
5
+ * Brukes til brødtekst, mengdetekst og ingress (lead), og gir riktig styling basert på designsystemets tokens.
6
+ *
7
+ * Du styrer typografivariant med size-prop, og kan velge mellom ulike varianter for brødtekst (body), ingress (lead) og kompakt tekst (body-compact).
8
+ *
9
+ * @slot - tekst - Selve avsnittet (innholdet).
10
+ *
11
+ * @csspart paragraph Hele paragraph-elementet
12
+ *
13
+ * Se designsystemet for alle varianter og tokens.
14
+ */
15
+ export default class NveParagraph extends LitElement implements INveComponent {
16
+ testId: string | undefined;
17
+ /** Typografivariant for paragrafen */
18
+ size?: 'leadLargeRegular' | 'leadLargeSemibold' | 'leadMediumRegular' | 'leadMediumSemibold' | 'leadSmallRegular' | 'leadSmallSemibold' | 'bodyLarge' | 'bodyLargeUnderline' | 'bodyMedium' | 'bodyMediumUnderline' | 'bodySmall' | 'bodySmallUnderline' | 'bodyXSmall' | 'bodyXSmallUnderline' | 'bodyLargeCompact' | 'bodyLargeUnderlineCompact' | 'bodyMediumCompact' | 'bodyMediumUnderlineCompact' | 'bodySmallCompact' | 'bodySmallUnderlineCompact' | 'bodyXSmallCompact' | 'bodyXSmallUnderlineCompact';
19
+ static styles: import('lit').CSSResult[];
20
+ render(): import('lit-html').TemplateResult<1>;
21
+ }
22
+ declare global {
23
+ interface HTMLElementTagNameMap {
24
+ 'nve-paragraph': NveParagraph;
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ import { a as e, t } from "../../chunks/lit.js";
2
+ import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
+ import a from "./nve-paragraph.styles.js";
4
+ //#region src/components/nve-paragraph/nve-paragraph.component.ts
5
+ var o = class extends t {
6
+ constructor(...e) {
7
+ super(...e), this.testId = void 0;
8
+ }
9
+ static {
10
+ this.styles = [a];
11
+ }
12
+ render() {
13
+ return e`
14
+ <p class="paragraph ${this.size ? `${this.size}` : ""}" part="paragraph" data-testid="${this.testId}">
15
+ <slot></slot>
16
+ </p>
17
+ `;
18
+ }
19
+ };
20
+ i([n({ type: String })], o.prototype, "testId", void 0), i([n({
21
+ type: String,
22
+ reflect: !0
23
+ })], o.prototype, "size", void 0), o = i([r("nve-paragraph")], o);
24
+ var s = o;
25
+ //#endregion
26
+ export { s as default };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('lit').CSSResult;
2
+ export default _default;
@@ -0,0 +1,105 @@
1
+ import { u as e } from "../../chunks/lit.js";
2
+ //#region src/components/nve-paragraph/nve-paragraph.styles.ts
3
+ var t = e`
4
+ .paragraph {
5
+ margin: 0;
6
+ }
7
+
8
+ .leadLargeRegular {
9
+ font: var(--typography-lead-large-regular);
10
+ }
11
+
12
+ .leadLargeSemibold {
13
+ font: var(--typography-lead-large-semibold);
14
+ }
15
+
16
+ .leadMediumRegular {
17
+ font: var(--typography-lead-medium-regular);
18
+ }
19
+
20
+ .leadMediumSemibold {
21
+ font: var(--typography-lead-medium-semibold);
22
+ }
23
+
24
+ .leadSmallRegular {
25
+ font: var(--typography-lead-small-regular);
26
+ }
27
+
28
+ .leadSmallSemibold {
29
+ font: var(--typography-lead-small-semibold);
30
+ }
31
+
32
+ .bodyLarge {
33
+ font: var(--typography-body-large);
34
+ }
35
+
36
+ .bodyLargeUnderline {
37
+ font: var(--typography-body-large-underline);
38
+ text-decoration: underline;
39
+ }
40
+
41
+ .bodyMedium {
42
+ font: var(--typography-body-medium);
43
+ }
44
+
45
+ .bodyMediumUnderline {
46
+ font: var(--typography-body-medium-underline);
47
+ text-decoration: underline;
48
+ }
49
+
50
+ .bodySmall {
51
+ font: var(--typography-body-small);
52
+ }
53
+
54
+ .bodySmallUnderline {
55
+ font: var(--typography-body-small-underline);
56
+ text-decoration: underline;
57
+ }
58
+
59
+ .bodyXSmall {
60
+ font: var(--typography-body-x-small);
61
+ }
62
+
63
+ .bodyXSmallUnderline {
64
+ font: var(--typography-body-x-small-underline);
65
+ text-decoration: underline;
66
+ }
67
+
68
+ .bodyLargeCompact {
69
+ font: var(--typography-body-compact-large-compact);
70
+ }
71
+
72
+ .bodyLargeUnderlineCompact {
73
+ font: var(--typography-body-compact-large-underline-compact);
74
+ text-decoration: underline;
75
+ }
76
+
77
+ .bodyMediumCompact {
78
+ font: var(--typography-body-compact-medium-compact);
79
+ }
80
+
81
+ .bodyMediumUnderlineCompact {
82
+ font: var(--typography-body-compact-medium-underline-compact);
83
+ text-decoration: underline;
84
+ }
85
+
86
+ .bodySmallCompact {
87
+ font: var(--typography-body-compact-small-compact);
88
+ }
89
+
90
+ .bodySmallUnderlineCompact {
91
+ font: var(--typography-body-compact-small-underline-compact);
92
+ text-decoration: underline;
93
+ }
94
+
95
+ .bodyXSmallCompact {
96
+ font: var(--typography-body-compact-x-small-compact);
97
+ }
98
+
99
+ .bodyXSmallUnderlineCompact {
100
+ font: var(--typography-body-compact-x-small-underline-compact);
101
+ text-decoration: underline;
102
+ }
103
+ `;
104
+ //#endregion
105
+ export { t as default };
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../../chunks/lit.js";
1
+ import { a as e, t } from "../../../chunks/lit.js";
2
2
  import { o as n, r, s as i, t as a } from "../../../chunks/decorate.js";
3
3
  import o from "./nve-step.styles.js";
4
4
  //#region src/components/nve-stepper/nve-step/nve-step.component.ts
@@ -6,7 +6,7 @@ var s = /* @__PURE__ */ function(e) {
6
6
  return e[e.NotStarted = 0] = "NotStarted", e[e.Started = 1] = "Started", e[e.Active = 2] = "Active", e[e.Done = 3] = "Done", e[e.Error = 4] = "Error", e;
7
7
  }({}), c = class extends t {
8
8
  constructor(...e) {
9
- super(...e), this.label = "", this.index = 0, this.state = s.NotStarted, this.selectedStepIndex = 0, this.isSelected = !1, this.isLast = !1, this.entranceAllowed = !1, this.orientation = "horizontal", this.hideStateText = !1, this.hideDescriptions = !1;
9
+ super(...e), this.label = "", this.index = 0, this.state = 0, this.selectedStepIndex = 0, this.isSelected = !1, this.isLast = !1, this.entranceAllowed = !1, this.orientation = "horizontal", this.hideStateText = !1, this.hideDescriptions = !1;
10
10
  }
11
11
  firstUpdated() {
12
12
  this.style.setProperty("--flex-grow", this.isLast ? "0" : "1");
@@ -23,19 +23,19 @@ var s = /* @__PURE__ */ function(e) {
23
23
  iconForState(e) {
24
24
  let t = "";
25
25
  switch (e) {
26
- case s.NotStarted:
26
+ case 0:
27
27
  t = "circle";
28
28
  break;
29
- case s.Active:
29
+ case 2:
30
30
  t = "radio_button_checked";
31
31
  break;
32
- case s.Started:
32
+ case 1:
33
33
  t = "trip_origin";
34
34
  break;
35
- case s.Done:
35
+ case 3:
36
36
  t = "check_circle";
37
37
  break;
38
- case s.Error:
38
+ case 4:
39
39
  t = "error";
40
40
  break;
41
41
  default:
@@ -46,35 +46,35 @@ var s = /* @__PURE__ */ function(e) {
46
46
  }
47
47
  getStateText(e) {
48
48
  switch (e) {
49
- case s.NotStarted: return "Ikke påbegynt";
50
- case s.Active: return "Aktiv";
51
- case s.Started: return "Påbegynt";
52
- case s.Done: return "Fullført";
53
- case s.Error: return "Feil";
49
+ case 0: return "Ikke påbegynt";
50
+ case 2: return "Aktiv";
51
+ case 1: return "Påbegynt";
52
+ case 3: return "Fullført";
53
+ case 4: return "Feil";
54
54
  default: return "Ikke påbegynt";
55
55
  }
56
56
  }
57
57
  getStateColorClass(e) {
58
58
  switch (e) {
59
- case s.NotStarted: return "state-not-started-color";
60
- case s.Active: return "state-started-color";
61
- case s.Done: return "state-done-color";
62
- case s.Error: return "state-error-color";
59
+ case 0: return "state-not-started-color";
60
+ case 2: return "state-started-color";
61
+ case 3: return "state-done-color";
62
+ case 4: return "state-error-color";
63
63
  default: return "state-not-started-color";
64
64
  }
65
65
  }
66
66
  getLabelClass(e) {
67
67
  switch (e) {
68
- case s.NotStarted: return "state-not-started-color";
69
- case s.Error: return "state-error-color";
68
+ case 0: return "state-not-started-color";
69
+ case 4: return "state-error-color";
70
70
  default: return "";
71
71
  }
72
72
  }
73
73
  getIconClass(e) {
74
74
  switch (e) {
75
- case s.Started: return "";
76
- case s.NotStarted: return "state-not-started-icon-color filled-icon";
77
- case s.Error: return "state-error-color filled-icon";
75
+ case 1: return "";
76
+ case 0: return "state-not-started-icon-color filled-icon";
77
+ case 4: return "state-error-color filled-icon";
78
78
  default: return "filled-icon";
79
79
  }
80
80
  }
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import a from "./nve-stepper-mobile.styles.js";
4
4
  //#region src/components/nve-stepper/nve-stepper-mobile.component.ts
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import { StepState as a } from "./nve-step/nve-step.component.js";
4
4
  import o from "./nve-stepper.styles.js";
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { a as n, o as r, r as i, s as a, t as o } from "../../chunks/decorate.js";
3
3
  import { t as s } from "../../chunks/class-map.js";
4
4
  import { t as c } from "../../chunks/if-defined.js";
@@ -1,4 +1,4 @@
1
- import { s as e, t } from "../../chunks/lit.js";
1
+ import { a as e, t } from "../../chunks/lit.js";
2
2
  import { o as n, s as r, t as i } from "../../chunks/decorate.js";
3
3
  import { t as a } from "../../chunks/class-map.js";
4
4
  import o from "./nve-tab.styles.js";