nve-designsystem 4.1.0 → 4.3.0
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/chunks/chunk.5P45LHIX.js +1 -1
- package/chunks/chunk.RWUUFNUL.js +1 -1
- package/chunks/decorate.js +1 -1
- package/chunks/shoelace.js +1 -1
- package/chunks/static-html.js +12 -9
- package/components/nve-button/nve-button.component.js +1 -1
- package/components/nve-heading/nve-heading.component.d.ts +29 -0
- package/components/nve-heading/nve-heading.component.js +45 -0
- package/components/nve-heading/nve-heading.styles.d.ts +2 -0
- package/components/nve-heading/nve-heading.styles.js +41 -0
- package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
- package/components/nve-paragraph/nve-paragraph.component.js +26 -0
- package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
- package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
- package/css/nve.css +20 -5
- package/css/nve_dark.css +10 -2
- package/css/rme.css +20 -5
- package/css/rme_dark.css +10 -2
- package/css/varsom.css +20 -5
- package/css/varsom_dark.css +10 -2
- package/custom-elements.json +169 -0
- package/nve-designsystem.d.ts +2 -0
- package/nve-designsystem.js +23 -21
- package/package.json +8 -3
package/chunks/chunk.5P45LHIX.js
CHANGED
|
@@ -5,7 +5,7 @@ import { t as s } from "./chunk.NYIIDP5N.js";
|
|
|
5
5
|
import { t as c } from "./chunk.GMYPQTFK.js";
|
|
6
6
|
import { t as l } from "./class-map.js";
|
|
7
7
|
import { t as u } from "./if-defined.js";
|
|
8
|
-
import {
|
|
8
|
+
import { r as d } from "./static-html.js";
|
|
9
9
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MAQXLKQ7.js
|
|
10
10
|
var f = e`
|
|
11
11
|
:host {
|
package/chunks/chunk.RWUUFNUL.js
CHANGED
|
@@ -4,7 +4,7 @@ import { n as i, r as a, t as o } from "./chunk.4TUIT776.js";
|
|
|
4
4
|
import { t as s } from "./chunk.YHLNUJ7P.js";
|
|
5
5
|
import { t as c } from "./class-map.js";
|
|
6
6
|
import { t as l } from "./if-defined.js";
|
|
7
|
-
import {
|
|
7
|
+
import { r as u, t as d } from "./static-html.js";
|
|
8
8
|
//#region node_modules/@shoelace-style/shoelace/dist/chunks/chunk.6I2T3DLI.js
|
|
9
9
|
var f = e`
|
|
10
10
|
:host {
|
package/chunks/decorate.js
CHANGED
|
@@ -94,7 +94,7 @@ function u(e) {
|
|
|
94
94
|
} });
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
|
-
//#region \0@oxc-project+runtime@0.
|
|
97
|
+
//#region \0@oxc-project+runtime@0.128.0/helpers/decorate.js
|
|
98
98
|
function d(e, t, n, r) {
|
|
99
99
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
100
100
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
|
package/chunks/shoelace.js
CHANGED
|
@@ -20,7 +20,7 @@ import "./chunk.5JY5FUCG.js";
|
|
|
20
20
|
import { n as O } from "./chunk.ZH2AND3P.js";
|
|
21
21
|
import { n as ce } from "./chunk.TP2GB2HO.js";
|
|
22
22
|
import { i as le, n as ue } from "./chunk.RWUUFNUL.js";
|
|
23
|
-
import {
|
|
23
|
+
import { r as de, t as fe } from "./static-html.js";
|
|
24
24
|
import "./chunk.XQ2OKYYA.js";
|
|
25
25
|
import { t as pe } from "./unsafe-html.js";
|
|
26
26
|
import "./chunk.EA437WHD.js";
|
package/chunks/static-html.js
CHANGED
|
@@ -2,23 +2,26 @@ import { s as e } from "./lit.js";
|
|
|
2
2
|
//#region 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
|
|
5
|
+
}, r = (e) => ({
|
|
6
|
+
_$litStatic$: e,
|
|
7
|
+
r: t
|
|
8
|
+
}), i = (e, ...n) => ({
|
|
6
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
12
|
})(n) + e[r + 1]), e[0]),
|
|
10
13
|
r: t
|
|
11
|
-
}),
|
|
12
|
-
let
|
|
13
|
-
for (; d <
|
|
14
|
-
for (u = t[d]; d <
|
|
15
|
-
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 ===
|
|
20
|
+
if (d === i && c.push(t[i]), f) {
|
|
18
21
|
let e = c.join("$$lit$$");
|
|
19
|
-
(t =
|
|
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 {
|
|
27
|
+
export { r as n, o as r, i as t };
|
|
@@ -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 {
|
|
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 {
|
|
@@ -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,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 };
|
|
@@ -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 { s 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,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 };
|
package/css/nve.css
CHANGED
|
@@ -299,8 +299,10 @@
|
|
|
299
299
|
--color-interactive-background-secondary-hover: var(--color-shades-grey-200);
|
|
300
300
|
--color-interactive-background-secondary-pressed: var(--color-shades-grey-300);
|
|
301
301
|
--color-interactive-background-secondary-disabled: var(--color-shades-grey-100);
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
302
|
+
--color-interactive-background-tertiary-enabled: var(--color-shades-grey-100);
|
|
303
|
+
--color-interactive-background-tertiary-hover: var(--color-shades-grey-150);
|
|
304
|
+
--color-interactive-background-tertiary-pressed: var(--color-shades-grey-200);
|
|
305
|
+
--color-interactive-background-tertiary-disabled: var(--color-shades-grey-100);
|
|
304
306
|
--color-interactive-background-danger-enabled: var(--color-shades-functional-red-700);
|
|
305
307
|
--color-interactive-background-danger-hover: var(--color-shades-functional-red-800);
|
|
306
308
|
--color-interactive-background-danger-pressed: var(--color-shades-functional-red-850);
|
|
@@ -311,6 +313,9 @@
|
|
|
311
313
|
--color-interactive-foreground-secondary-enabled: var(--color-shades-grey-950);
|
|
312
314
|
--color-interactive-foreground-secondary-hover: var(--color-shades-grey-950);
|
|
313
315
|
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-300);
|
|
316
|
+
--color-interactive-foreground-tertiary-enabled: var(--color-shades-grey-600);
|
|
317
|
+
--color-interactive-foreground-tertiary-hover: var(--color-shades-grey-950);
|
|
318
|
+
--color-interactive-foreground-tertiary-disabled: var(--color-shades-grey-300);
|
|
314
319
|
--color-interactive-foreground-danger-enabled: var(--color-shades-grey-000);
|
|
315
320
|
--color-interactive-foreground-danger-disabled: var(--color-shades-functional-red-000);
|
|
316
321
|
--color-interactive-foreground-link-enabled: var(--color-shades-functional-blue-700);
|
|
@@ -322,6 +327,9 @@
|
|
|
322
327
|
--color-interactive-border-secondary-enabled: var(--color-shades-grey-500);
|
|
323
328
|
--color-interactive-border-secondary-hover: var(--color-shades-grey-950);
|
|
324
329
|
--color-interactive-border-secondary-disabled: var(--color-shades-grey-150);
|
|
330
|
+
--color-interactive-border-tertiary-enabled: var(--color-shades-grey-300);
|
|
331
|
+
--color-interactive-border-tertiary-hover: var(--color-shades-grey-600);
|
|
332
|
+
--color-interactive-border-tertiary-disabled: var(--color-shades-grey-150);
|
|
325
333
|
--color-interactive-border-accessibility-focus: var(--color-shades-functional-blue-500);
|
|
326
334
|
--color-feedback-background-default-neutral: var(--color-shades-functional-neutralgrey-150); /** For neutral messages */
|
|
327
335
|
--color-feedback-background-default-info: var(--color-shades-functional-blue-100);
|
|
@@ -545,6 +553,7 @@
|
|
|
545
553
|
--dimension-1x: 0.25rem; /** 4px */
|
|
546
554
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
547
555
|
--dimension-2x: 0.5rem; /** 8px */
|
|
556
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
548
557
|
--dimension-3x: 0.75rem; /** 12px */
|
|
549
558
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
550
559
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -606,11 +615,13 @@
|
|
|
606
615
|
--spacing-content-margin-top: var(--spacing-40x);
|
|
607
616
|
--spacing-content-margin-bottom: var(--spacing-88x);
|
|
608
617
|
--spacing-content-margin-left-right: var(--spacing-48x);
|
|
618
|
+
--spacing-fixed-spacing-3x-small: var(--dimension-05x);
|
|
609
619
|
--spacing-fixed-spacing-2x-small: var(--dimension-1-5x);
|
|
610
620
|
--spacing-fixed-spacing-x-small: var(--dimension-2x);
|
|
611
|
-
--spacing-fixed-spacing-small: var(--dimension-
|
|
612
|
-
--spacing-fixed-spacing-medium: var(--dimension-
|
|
613
|
-
--spacing-fixed-spacing-large: var(--dimension-
|
|
621
|
+
--spacing-fixed-spacing-small: var(--dimension-2-5x);
|
|
622
|
+
--spacing-fixed-spacing-medium: var(--dimension-4x);
|
|
623
|
+
--spacing-fixed-spacing-large: var(--dimension-6x);
|
|
624
|
+
--spacing-fixed-spacing-x-large: var(--dimension-10x);
|
|
614
625
|
--sizing-4x-small: var(--dimension-2x);
|
|
615
626
|
--sizing-3x-small: var(--dimension-4x);
|
|
616
627
|
--sizing-2x-small: var(--dimension-6x);
|
|
@@ -789,6 +800,7 @@
|
|
|
789
800
|
--dimension-1x: 0.25rem; /** 4px */
|
|
790
801
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
791
802
|
--dimension-2x: 0.5rem; /** 8px */
|
|
803
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
792
804
|
--dimension-3x: 0.75rem; /** 12px */
|
|
793
805
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
794
806
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -982,6 +994,7 @@
|
|
|
982
994
|
--dimension-1x: 0.25rem; /** 4px */
|
|
983
995
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
984
996
|
--dimension-2x: 0.5rem; /** 8px */
|
|
997
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
985
998
|
--dimension-3x: 0.75rem; /** 12px */
|
|
986
999
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
987
1000
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -1175,6 +1188,7 @@
|
|
|
1175
1188
|
--dimension-1x: 0.25rem; /** 4px */
|
|
1176
1189
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
1177
1190
|
--dimension-2x: 0.5rem; /** 8px */
|
|
1191
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
1178
1192
|
--dimension-3x: 0.75rem; /** 12px */
|
|
1179
1193
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
1180
1194
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -1368,6 +1382,7 @@
|
|
|
1368
1382
|
--dimension-1x: 0.25rem; /** 4px */
|
|
1369
1383
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
1370
1384
|
--dimension-2x: 0.5rem; /** 8px */
|
|
1385
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
1371
1386
|
--dimension-3x: 0.75rem; /** 12px */
|
|
1372
1387
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
1373
1388
|
--dimension-4x: 1rem; /** 16px */
|
package/css/nve_dark.css
CHANGED
|
@@ -299,8 +299,10 @@
|
|
|
299
299
|
--color-interactive-background-secondary-hover: var(--color-shades-grey-600);
|
|
300
300
|
--color-interactive-background-secondary-pressed: var(--color-shades-grey-500);
|
|
301
301
|
--color-interactive-background-secondary-disabled: var(--color-shades-grey-800);
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
302
|
+
--color-interactive-background-tertiary-enabled: var(--color-shades-grey-700);
|
|
303
|
+
--color-interactive-background-tertiary-hover: var(--color-shades-grey-600);
|
|
304
|
+
--color-interactive-background-tertiary-pressed: var(--color-shades-grey-500);
|
|
305
|
+
--color-interactive-background-tertiary-disabled: var(--color-shades-grey-800);
|
|
304
306
|
--color-interactive-background-danger-enabled: var(--color-shades-functional-red-500);
|
|
305
307
|
--color-interactive-background-danger-hover: var(--color-shades-functional-red-400);
|
|
306
308
|
--color-interactive-background-danger-pressed: var(--color-shades-functional-red-300);
|
|
@@ -311,6 +313,9 @@
|
|
|
311
313
|
--color-interactive-foreground-secondary-enabled: var(--color-shades-grey-000);
|
|
312
314
|
--color-interactive-foreground-secondary-hover: var(--color-shades-grey-000);
|
|
313
315
|
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-700);
|
|
316
|
+
--color-interactive-foreground-tertiary-enabled: var(--color-shades-grey-200);
|
|
317
|
+
--color-interactive-foreground-tertiary-hover: var(--color-shades-grey-050);
|
|
318
|
+
--color-interactive-foreground-tertiary-disabled: var(--color-shades-grey-700);
|
|
314
319
|
--color-interactive-foreground-danger-enabled: var(--color-shades-grey-000);
|
|
315
320
|
--color-interactive-foreground-danger-disabled: var(--color-shades-functional-red-800);
|
|
316
321
|
--color-interactive-foreground-link-enabled: var(--color-shades-functional-blue-400);
|
|
@@ -322,6 +327,9 @@
|
|
|
322
327
|
--color-interactive-border-secondary-enabled: var(--color-shades-grey-500);
|
|
323
328
|
--color-interactive-border-secondary-hover: var(--color-shades-grey-000);
|
|
324
329
|
--color-interactive-border-secondary-disabled: var(--color-shades-grey-700);
|
|
330
|
+
--color-interactive-border-tertiary-enabled: var(--color-shades-grey-600);
|
|
331
|
+
--color-interactive-border-tertiary-hover: var(--color-shades-grey-400);
|
|
332
|
+
--color-interactive-border-tertiary-disabled: var(--color-shades-grey-700);
|
|
325
333
|
--color-interactive-border-accessibility-focus: var(--color-shades-functional-blue-500);
|
|
326
334
|
--color-feedback-background-default-neutral: var(--color-shades-functional-neutralgrey-800);
|
|
327
335
|
--color-feedback-background-default-info: var(--color-shades-functional-blue-850);
|
package/css/rme.css
CHANGED
|
@@ -299,8 +299,10 @@
|
|
|
299
299
|
--color-interactive-background-secondary-hover: var(--color-shades-grey-200);
|
|
300
300
|
--color-interactive-background-secondary-pressed: var(--color-shades-grey-300);
|
|
301
301
|
--color-interactive-background-secondary-disabled: var(--color-shades-grey-100);
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
302
|
+
--color-interactive-background-tertiary-enabled: var(--color-shades-grey-100);
|
|
303
|
+
--color-interactive-background-tertiary-hover: var(--color-shades-grey-150);
|
|
304
|
+
--color-interactive-background-tertiary-pressed: var(--color-shades-grey-200);
|
|
305
|
+
--color-interactive-background-tertiary-disabled: var(--color-shades-grey-100);
|
|
304
306
|
--color-interactive-background-danger-enabled: var(--color-shades-functional-red-700);
|
|
305
307
|
--color-interactive-background-danger-hover: var(--color-shades-functional-red-800);
|
|
306
308
|
--color-interactive-background-danger-pressed: var(--color-shades-functional-red-850);
|
|
@@ -311,6 +313,9 @@
|
|
|
311
313
|
--color-interactive-foreground-secondary-enabled: var(--color-shades-grey-950);
|
|
312
314
|
--color-interactive-foreground-secondary-hover: var(--color-shades-grey-950);
|
|
313
315
|
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-300);
|
|
316
|
+
--color-interactive-foreground-tertiary-enabled: var(--color-shades-grey-600);
|
|
317
|
+
--color-interactive-foreground-tertiary-hover: var(--color-shades-grey-950);
|
|
318
|
+
--color-interactive-foreground-tertiary-disabled: var(--color-shades-grey-300);
|
|
314
319
|
--color-interactive-foreground-danger-enabled: var(--color-shades-grey-000);
|
|
315
320
|
--color-interactive-foreground-danger-disabled: var(--color-shades-functional-red-000);
|
|
316
321
|
--color-interactive-foreground-link-enabled: var(--color-shades-functional-blue-700);
|
|
@@ -322,6 +327,9 @@
|
|
|
322
327
|
--color-interactive-border-secondary-enabled: var(--color-shades-grey-500);
|
|
323
328
|
--color-interactive-border-secondary-hover: var(--color-shades-grey-950);
|
|
324
329
|
--color-interactive-border-secondary-disabled: var(--color-shades-grey-150);
|
|
330
|
+
--color-interactive-border-tertiary-enabled: var(--color-shades-grey-300);
|
|
331
|
+
--color-interactive-border-tertiary-hover: var(--color-shades-grey-600);
|
|
332
|
+
--color-interactive-border-tertiary-disabled: var(--color-shades-grey-150);
|
|
325
333
|
--color-interactive-border-accessibility-focus: var(--color-shades-functional-blue-500);
|
|
326
334
|
--color-feedback-background-default-neutral: var(--color-shades-functional-neutralgrey-150); /** For neutral messages */
|
|
327
335
|
--color-feedback-background-default-info: var(--color-shades-functional-blue-100);
|
|
@@ -545,6 +553,7 @@
|
|
|
545
553
|
--dimension-1x: 0.25rem; /** 4px */
|
|
546
554
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
547
555
|
--dimension-2x: 0.5rem; /** 8px */
|
|
556
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
548
557
|
--dimension-3x: 0.75rem; /** 12px */
|
|
549
558
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
550
559
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -606,11 +615,13 @@
|
|
|
606
615
|
--spacing-content-margin-top: var(--spacing-40x);
|
|
607
616
|
--spacing-content-margin-bottom: var(--spacing-88x);
|
|
608
617
|
--spacing-content-margin-left-right: var(--spacing-48x);
|
|
618
|
+
--spacing-fixed-spacing-3x-small: var(--dimension-05x);
|
|
609
619
|
--spacing-fixed-spacing-2x-small: var(--dimension-1-5x);
|
|
610
620
|
--spacing-fixed-spacing-x-small: var(--dimension-2x);
|
|
611
|
-
--spacing-fixed-spacing-small: var(--dimension-
|
|
612
|
-
--spacing-fixed-spacing-medium: var(--dimension-
|
|
613
|
-
--spacing-fixed-spacing-large: var(--dimension-
|
|
621
|
+
--spacing-fixed-spacing-small: var(--dimension-2-5x);
|
|
622
|
+
--spacing-fixed-spacing-medium: var(--dimension-4x);
|
|
623
|
+
--spacing-fixed-spacing-large: var(--dimension-6x);
|
|
624
|
+
--spacing-fixed-spacing-x-large: var(--dimension-10x);
|
|
614
625
|
--sizing-4x-small: var(--dimension-2x);
|
|
615
626
|
--sizing-3x-small: var(--dimension-4x);
|
|
616
627
|
--sizing-2x-small: var(--dimension-6x);
|
|
@@ -789,6 +800,7 @@
|
|
|
789
800
|
--dimension-1x: 0.25rem; /** 4px */
|
|
790
801
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
791
802
|
--dimension-2x: 0.5rem; /** 8px */
|
|
803
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
792
804
|
--dimension-3x: 0.75rem; /** 12px */
|
|
793
805
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
794
806
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -982,6 +994,7 @@
|
|
|
982
994
|
--dimension-1x: 0.25rem; /** 4px */
|
|
983
995
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
984
996
|
--dimension-2x: 0.5rem; /** 8px */
|
|
997
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
985
998
|
--dimension-3x: 0.75rem; /** 12px */
|
|
986
999
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
987
1000
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -1175,6 +1188,7 @@
|
|
|
1175
1188
|
--dimension-1x: 0.25rem; /** 4px */
|
|
1176
1189
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
1177
1190
|
--dimension-2x: 0.5rem; /** 8px */
|
|
1191
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
1178
1192
|
--dimension-3x: 0.75rem; /** 12px */
|
|
1179
1193
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
1180
1194
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -1368,6 +1382,7 @@
|
|
|
1368
1382
|
--dimension-1x: 0.25rem; /** 4px */
|
|
1369
1383
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
1370
1384
|
--dimension-2x: 0.5rem; /** 8px */
|
|
1385
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
1371
1386
|
--dimension-3x: 0.75rem; /** 12px */
|
|
1372
1387
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
1373
1388
|
--dimension-4x: 1rem; /** 16px */
|
package/css/rme_dark.css
CHANGED
|
@@ -299,8 +299,10 @@
|
|
|
299
299
|
--color-interactive-background-secondary-hover: var(--color-shades-grey-600);
|
|
300
300
|
--color-interactive-background-secondary-pressed: var(--color-shades-grey-500);
|
|
301
301
|
--color-interactive-background-secondary-disabled: var(--color-shades-grey-800);
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
302
|
+
--color-interactive-background-tertiary-enabled: var(--color-shades-grey-700);
|
|
303
|
+
--color-interactive-background-tertiary-hover: var(--color-shades-grey-600);
|
|
304
|
+
--color-interactive-background-tertiary-pressed: var(--color-shades-grey-500);
|
|
305
|
+
--color-interactive-background-tertiary-disabled: var(--color-shades-grey-800);
|
|
304
306
|
--color-interactive-background-danger-enabled: var(--color-shades-functional-red-500);
|
|
305
307
|
--color-interactive-background-danger-hover: var(--color-shades-functional-red-400);
|
|
306
308
|
--color-interactive-background-danger-pressed: var(--color-shades-functional-red-300);
|
|
@@ -311,6 +313,9 @@
|
|
|
311
313
|
--color-interactive-foreground-secondary-enabled: var(--color-shades-grey-000);
|
|
312
314
|
--color-interactive-foreground-secondary-hover: var(--color-shades-grey-000);
|
|
313
315
|
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-700);
|
|
316
|
+
--color-interactive-foreground-tertiary-enabled: var(--color-shades-grey-200);
|
|
317
|
+
--color-interactive-foreground-tertiary-hover: var(--color-shades-grey-050);
|
|
318
|
+
--color-interactive-foreground-tertiary-disabled: var(--color-shades-grey-700);
|
|
314
319
|
--color-interactive-foreground-danger-enabled: var(--color-shades-grey-000);
|
|
315
320
|
--color-interactive-foreground-danger-disabled: var(--color-shades-functional-red-800);
|
|
316
321
|
--color-interactive-foreground-link-enabled: var(--color-shades-functional-blue-400);
|
|
@@ -322,6 +327,9 @@
|
|
|
322
327
|
--color-interactive-border-secondary-enabled: var(--color-shades-grey-500);
|
|
323
328
|
--color-interactive-border-secondary-hover: var(--color-shades-grey-000);
|
|
324
329
|
--color-interactive-border-secondary-disabled: var(--color-shades-grey-700);
|
|
330
|
+
--color-interactive-border-tertiary-enabled: var(--color-shades-grey-600);
|
|
331
|
+
--color-interactive-border-tertiary-hover: var(--color-shades-grey-400);
|
|
332
|
+
--color-interactive-border-tertiary-disabled: var(--color-shades-grey-700);
|
|
325
333
|
--color-interactive-border-accessibility-focus: var(--color-shades-functional-blue-500);
|
|
326
334
|
--color-feedback-background-default-neutral: var(--color-shades-functional-neutralgrey-800);
|
|
327
335
|
--color-feedback-background-default-info: var(--color-shades-functional-blue-850);
|
package/css/varsom.css
CHANGED
|
@@ -299,8 +299,10 @@
|
|
|
299
299
|
--color-interactive-background-secondary-hover: var(--color-shades-grey-200);
|
|
300
300
|
--color-interactive-background-secondary-pressed: var(--color-shades-grey-300);
|
|
301
301
|
--color-interactive-background-secondary-disabled: var(--color-shades-grey-100);
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
302
|
+
--color-interactive-background-tertiary-enabled: var(--color-shades-grey-100);
|
|
303
|
+
--color-interactive-background-tertiary-hover: var(--color-shades-grey-150);
|
|
304
|
+
--color-interactive-background-tertiary-pressed: var(--color-shades-grey-200);
|
|
305
|
+
--color-interactive-background-tertiary-disabled: var(--color-shades-grey-100);
|
|
304
306
|
--color-interactive-background-danger-enabled: var(--color-shades-functional-red-700);
|
|
305
307
|
--color-interactive-background-danger-hover: var(--color-shades-functional-red-800);
|
|
306
308
|
--color-interactive-background-danger-pressed: var(--color-shades-functional-red-850);
|
|
@@ -311,6 +313,9 @@
|
|
|
311
313
|
--color-interactive-foreground-secondary-enabled: var(--color-shades-grey-950);
|
|
312
314
|
--color-interactive-foreground-secondary-hover: var(--color-shades-grey-950);
|
|
313
315
|
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-300);
|
|
316
|
+
--color-interactive-foreground-tertiary-enabled: var(--color-shades-grey-600);
|
|
317
|
+
--color-interactive-foreground-tertiary-hover: var(--color-shades-grey-950);
|
|
318
|
+
--color-interactive-foreground-tertiary-disabled: var(--color-shades-grey-300);
|
|
314
319
|
--color-interactive-foreground-danger-enabled: var(--color-shades-grey-000);
|
|
315
320
|
--color-interactive-foreground-danger-disabled: var(--color-shades-functional-red-000);
|
|
316
321
|
--color-interactive-foreground-link-enabled: var(--color-shades-functional-blue-700);
|
|
@@ -322,6 +327,9 @@
|
|
|
322
327
|
--color-interactive-border-secondary-enabled: var(--color-shades-grey-500);
|
|
323
328
|
--color-interactive-border-secondary-hover: var(--color-shades-grey-950);
|
|
324
329
|
--color-interactive-border-secondary-disabled: var(--color-shades-grey-150);
|
|
330
|
+
--color-interactive-border-tertiary-enabled: var(--color-shades-grey-300);
|
|
331
|
+
--color-interactive-border-tertiary-hover: var(--color-shades-grey-600);
|
|
332
|
+
--color-interactive-border-tertiary-disabled: var(--color-shades-grey-150);
|
|
325
333
|
--color-interactive-border-accessibility-focus: var(--color-shades-functional-blue-500);
|
|
326
334
|
--color-feedback-background-default-neutral: var(--color-shades-functional-neutralgrey-150); /** For neutral messages */
|
|
327
335
|
--color-feedback-background-default-info: var(--color-shades-functional-blue-100);
|
|
@@ -545,6 +553,7 @@
|
|
|
545
553
|
--dimension-1x: 0.25rem; /** 4px */
|
|
546
554
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
547
555
|
--dimension-2x: 0.5rem; /** 8px */
|
|
556
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
548
557
|
--dimension-3x: 0.75rem; /** 12px */
|
|
549
558
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
550
559
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -606,11 +615,13 @@
|
|
|
606
615
|
--spacing-content-margin-top: var(--spacing-40x);
|
|
607
616
|
--spacing-content-margin-bottom: var(--spacing-88x);
|
|
608
617
|
--spacing-content-margin-left-right: var(--spacing-48x);
|
|
618
|
+
--spacing-fixed-spacing-3x-small: var(--dimension-05x);
|
|
609
619
|
--spacing-fixed-spacing-2x-small: var(--dimension-1-5x);
|
|
610
620
|
--spacing-fixed-spacing-x-small: var(--dimension-2x);
|
|
611
|
-
--spacing-fixed-spacing-small: var(--dimension-
|
|
612
|
-
--spacing-fixed-spacing-medium: var(--dimension-
|
|
613
|
-
--spacing-fixed-spacing-large: var(--dimension-
|
|
621
|
+
--spacing-fixed-spacing-small: var(--dimension-2-5x);
|
|
622
|
+
--spacing-fixed-spacing-medium: var(--dimension-4x);
|
|
623
|
+
--spacing-fixed-spacing-large: var(--dimension-6x);
|
|
624
|
+
--spacing-fixed-spacing-x-large: var(--dimension-10x);
|
|
614
625
|
--sizing-4x-small: var(--dimension-2x);
|
|
615
626
|
--sizing-3x-small: var(--dimension-4x);
|
|
616
627
|
--sizing-2x-small: var(--dimension-6x);
|
|
@@ -789,6 +800,7 @@
|
|
|
789
800
|
--dimension-1x: 0.25rem; /** 4px */
|
|
790
801
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
791
802
|
--dimension-2x: 0.5rem; /** 8px */
|
|
803
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
792
804
|
--dimension-3x: 0.75rem; /** 12px */
|
|
793
805
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
794
806
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -982,6 +994,7 @@
|
|
|
982
994
|
--dimension-1x: 0.25rem; /** 4px */
|
|
983
995
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
984
996
|
--dimension-2x: 0.5rem; /** 8px */
|
|
997
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
985
998
|
--dimension-3x: 0.75rem; /** 12px */
|
|
986
999
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
987
1000
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -1175,6 +1188,7 @@
|
|
|
1175
1188
|
--dimension-1x: 0.25rem; /** 4px */
|
|
1176
1189
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
1177
1190
|
--dimension-2x: 0.5rem; /** 8px */
|
|
1191
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
1178
1192
|
--dimension-3x: 0.75rem; /** 12px */
|
|
1179
1193
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
1180
1194
|
--dimension-4x: 1rem; /** 16px */
|
|
@@ -1368,6 +1382,7 @@
|
|
|
1368
1382
|
--dimension-1x: 0.25rem; /** 4px */
|
|
1369
1383
|
--dimension-1-5x: 0.375rem; /** 6px */
|
|
1370
1384
|
--dimension-2x: 0.5rem; /** 8px */
|
|
1385
|
+
--dimension-2-5x: 0.625rem; /** 10px */
|
|
1371
1386
|
--dimension-3x: 0.75rem; /** 12px */
|
|
1372
1387
|
--dimension-3-5x: 0.875rem; /** 14px */
|
|
1373
1388
|
--dimension-4x: 1rem; /** 16px */
|
package/css/varsom_dark.css
CHANGED
|
@@ -299,8 +299,10 @@
|
|
|
299
299
|
--color-interactive-background-secondary-hover: var(--color-shades-grey-600);
|
|
300
300
|
--color-interactive-background-secondary-pressed: var(--color-shades-grey-500);
|
|
301
301
|
--color-interactive-background-secondary-disabled: var(--color-shades-grey-800);
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
302
|
+
--color-interactive-background-tertiary-enabled: var(--color-shades-grey-700);
|
|
303
|
+
--color-interactive-background-tertiary-hover: var(--color-shades-grey-600);
|
|
304
|
+
--color-interactive-background-tertiary-pressed: var(--color-shades-grey-500);
|
|
305
|
+
--color-interactive-background-tertiary-disabled: var(--color-shades-grey-800);
|
|
304
306
|
--color-interactive-background-danger-enabled: var(--color-shades-functional-red-500);
|
|
305
307
|
--color-interactive-background-danger-hover: var(--color-shades-functional-red-400);
|
|
306
308
|
--color-interactive-background-danger-pressed: var(--color-shades-functional-red-300);
|
|
@@ -311,6 +313,9 @@
|
|
|
311
313
|
--color-interactive-foreground-secondary-enabled: var(--color-shades-grey-000);
|
|
312
314
|
--color-interactive-foreground-secondary-hover: var(--color-shades-grey-000);
|
|
313
315
|
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-700);
|
|
316
|
+
--color-interactive-foreground-tertiary-enabled: var(--color-shades-grey-200);
|
|
317
|
+
--color-interactive-foreground-tertiary-hover: var(--color-shades-grey-050);
|
|
318
|
+
--color-interactive-foreground-tertiary-disabled: var(--color-shades-grey-700);
|
|
314
319
|
--color-interactive-foreground-danger-enabled: var(--color-shades-grey-000);
|
|
315
320
|
--color-interactive-foreground-danger-disabled: var(--color-shades-functional-red-800);
|
|
316
321
|
--color-interactive-foreground-link-enabled: var(--color-shades-functional-blue-400);
|
|
@@ -322,6 +327,9 @@
|
|
|
322
327
|
--color-interactive-border-secondary-enabled: var(--color-shades-grey-500);
|
|
323
328
|
--color-interactive-border-secondary-hover: var(--color-shades-grey-000);
|
|
324
329
|
--color-interactive-border-secondary-disabled: var(--color-shades-grey-700);
|
|
330
|
+
--color-interactive-border-tertiary-enabled: var(--color-shades-grey-600);
|
|
331
|
+
--color-interactive-border-tertiary-hover: var(--color-shades-grey-400);
|
|
332
|
+
--color-interactive-border-tertiary-disabled: var(--color-shades-grey-700);
|
|
325
333
|
--color-interactive-border-accessibility-focus: var(--color-shades-functional-blue-500);
|
|
326
334
|
--color-feedback-background-default-neutral: var(--color-shades-functional-neutralgrey-800);
|
|
327
335
|
--color-feedback-background-default-info: var(--color-shades-functional-blue-850);
|
package/custom-elements.json
CHANGED
|
@@ -2133,6 +2133,99 @@
|
|
|
2133
2133
|
}
|
|
2134
2134
|
]
|
|
2135
2135
|
},
|
|
2136
|
+
{
|
|
2137
|
+
"kind": "javascript-module",
|
|
2138
|
+
"path": "components/nve-heading/nve-heading.js",
|
|
2139
|
+
"declarations": [
|
|
2140
|
+
{
|
|
2141
|
+
"kind": "class",
|
|
2142
|
+
"description": "nve-heading gir semantisk og tilgjengelig overskrift med riktig typografi fra designsystemet. Brukes for å sikre korrekt heading-hierarki (h1–h6) og typografi, og kan overstyres med variant for heading eller subheading.",
|
|
2143
|
+
"name": "NveHeading",
|
|
2144
|
+
"slots": [
|
|
2145
|
+
{
|
|
2146
|
+
"description": "tekst - Selve overskriften (innholdet).",
|
|
2147
|
+
"name": "-"
|
|
2148
|
+
}
|
|
2149
|
+
],
|
|
2150
|
+
"cssParts": [
|
|
2151
|
+
{
|
|
2152
|
+
"name": "nve-heading",
|
|
2153
|
+
"description": "Hele heading-elementet Se designsystemet for alle varianter og tokens."
|
|
2154
|
+
}
|
|
2155
|
+
],
|
|
2156
|
+
"members": [
|
|
2157
|
+
{
|
|
2158
|
+
"kind": "field",
|
|
2159
|
+
"name": "testId",
|
|
2160
|
+
"type": {
|
|
2161
|
+
"text": "string | undefined"
|
|
2162
|
+
},
|
|
2163
|
+
"default": "undefined"
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
"kind": "field",
|
|
2167
|
+
"name": "level",
|
|
2168
|
+
"type": {
|
|
2169
|
+
"text": "1 | 2 | 3 | 4 | 5 | 6"
|
|
2170
|
+
},
|
|
2171
|
+
"default": "1",
|
|
2172
|
+
"description": "Heading level - Hvilket nivå overskriften skal ha (h1-h6)"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"kind": "field",
|
|
2176
|
+
"name": "size",
|
|
2177
|
+
"type": {
|
|
2178
|
+
"text": "| 'headingXlarge'\n | 'headingLarge'\n | 'headingMedium'\n | 'headingSmall'\n | 'headingXsmall'\n | 'subheadingLarge'\n | 'subheadingMedium'\n | 'subheadingSmall'"
|
|
2179
|
+
},
|
|
2180
|
+
"description": "Typografitype - Kan overstyre det som er standard typografi basert på nivå"
|
|
2181
|
+
}
|
|
2182
|
+
],
|
|
2183
|
+
"attributes": [
|
|
2184
|
+
{
|
|
2185
|
+
"name": "testId",
|
|
2186
|
+
"type": {
|
|
2187
|
+
"text": "string | undefined"
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "level",
|
|
2192
|
+
"type": {
|
|
2193
|
+
"text": "1 | 2 | 3 | 4 | 5 | 6"
|
|
2194
|
+
},
|
|
2195
|
+
"description": "Heading level - Hvilket nivå overskriften skal ha (h1-h6)",
|
|
2196
|
+
"reflects": true
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
"name": "size",
|
|
2200
|
+
"type": {
|
|
2201
|
+
"text": "| 'headingXlarge'\n | 'headingLarge'\n | 'headingMedium'\n | 'headingSmall'\n | 'headingXsmall'\n | 'subheadingLarge'\n | 'subheadingMedium'\n | 'subheadingSmall'"
|
|
2202
|
+
},
|
|
2203
|
+
"description": "Typografitype - Kan overstyre det som er standard typografi basert på nivå",
|
|
2204
|
+
"reflects": true
|
|
2205
|
+
}
|
|
2206
|
+
],
|
|
2207
|
+
"superclass": {
|
|
2208
|
+
"name": "LitElement",
|
|
2209
|
+
"package": "lit"
|
|
2210
|
+
},
|
|
2211
|
+
"tagNameWithoutPrefix": "heading",
|
|
2212
|
+
"tagName": "nve-heading",
|
|
2213
|
+
"customElement": true,
|
|
2214
|
+
"jsDoc": "/**\n * nve-heading gir semantisk og tilgjengelig overskrift med riktig typografi fra designsystemet.\n * Brukes for å sikre korrekt heading-hierarki (h1–h6) og typografi, og kan overstyres med variant for heading eller subheading.\n *\n * @slot - tekst - Selve overskriften (innholdet).\n *\n * @csspart nve-heading Hele heading-elementet\n *\n * Se designsystemet for alle varianter og tokens.\n */",
|
|
2215
|
+
"modulePath": "src/components/nve-heading/nve-heading.component.ts"
|
|
2216
|
+
}
|
|
2217
|
+
],
|
|
2218
|
+
"exports": [
|
|
2219
|
+
{
|
|
2220
|
+
"kind": "js",
|
|
2221
|
+
"name": "default",
|
|
2222
|
+
"declaration": {
|
|
2223
|
+
"name": "NveHeading",
|
|
2224
|
+
"module": "components/nve-heading/nve-heading.js"
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
]
|
|
2228
|
+
},
|
|
2136
2229
|
{
|
|
2137
2230
|
"kind": "javascript-module",
|
|
2138
2231
|
"path": "components/nve-icon/nve-icon.js",
|
|
@@ -3151,6 +3244,82 @@
|
|
|
3151
3244
|
}
|
|
3152
3245
|
]
|
|
3153
3246
|
},
|
|
3247
|
+
{
|
|
3248
|
+
"kind": "javascript-module",
|
|
3249
|
+
"path": "components/nve-paragraph/nve-paragraph.js",
|
|
3250
|
+
"declarations": [
|
|
3251
|
+
{
|
|
3252
|
+
"kind": "class",
|
|
3253
|
+
"description": "nve-paragraph gir fleksibel og tilgjengelig typografi for avsnitt i designsystemet. Brukes til brødtekst, mengdetekst og ingress (lead), og gir riktig styling basert på designsystemets tokens. Du styrer typografivariant med size-prop, og kan velge mellom ulike varianter for brødtekst (body), ingress (lead) og kompakt tekst (body-compact).",
|
|
3254
|
+
"name": "NveParagraph",
|
|
3255
|
+
"slots": [
|
|
3256
|
+
{
|
|
3257
|
+
"description": "tekst - Selve avsnittet (innholdet).",
|
|
3258
|
+
"name": "-"
|
|
3259
|
+
}
|
|
3260
|
+
],
|
|
3261
|
+
"cssParts": [
|
|
3262
|
+
{
|
|
3263
|
+
"name": "paragraph",
|
|
3264
|
+
"description": "Hele paragraph-elementet Se designsystemet for alle varianter og tokens."
|
|
3265
|
+
}
|
|
3266
|
+
],
|
|
3267
|
+
"members": [
|
|
3268
|
+
{
|
|
3269
|
+
"kind": "field",
|
|
3270
|
+
"name": "testId",
|
|
3271
|
+
"type": {
|
|
3272
|
+
"text": "string | undefined"
|
|
3273
|
+
},
|
|
3274
|
+
"default": "undefined"
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"kind": "field",
|
|
3278
|
+
"name": "size",
|
|
3279
|
+
"type": {
|
|
3280
|
+
"text": "| 'leadLargeRegular'\n | 'leadLargeSemibold'\n | 'leadMediumRegular'\n | 'leadMediumSemibold'\n | 'leadSmallRegular'\n | 'leadSmallSemibold'\n | 'bodyLarge'\n | 'bodyLargeUnderline'\n | 'bodyMedium'\n | 'bodyMediumUnderline'\n | 'bodySmall'\n | 'bodySmallUnderline'\n | 'bodyXSmall'\n | 'bodyXSmallUnderline'\n | 'bodyLargeCompact'\n | 'bodyLargeUnderlineCompact'\n | 'bodyMediumCompact'\n | 'bodyMediumUnderlineCompact'\n | 'bodySmallCompact'\n | 'bodySmallUnderlineCompact'\n | 'bodyXSmallCompact'\n | 'bodyXSmallUnderlineCompact'"
|
|
3281
|
+
},
|
|
3282
|
+
"description": "Typografivariant for paragrafen"
|
|
3283
|
+
}
|
|
3284
|
+
],
|
|
3285
|
+
"attributes": [
|
|
3286
|
+
{
|
|
3287
|
+
"name": "testId",
|
|
3288
|
+
"type": {
|
|
3289
|
+
"text": "string | undefined"
|
|
3290
|
+
}
|
|
3291
|
+
},
|
|
3292
|
+
{
|
|
3293
|
+
"name": "size",
|
|
3294
|
+
"type": {
|
|
3295
|
+
"text": "| 'leadLargeRegular'\n | 'leadLargeSemibold'\n | 'leadMediumRegular'\n | 'leadMediumSemibold'\n | 'leadSmallRegular'\n | 'leadSmallSemibold'\n | 'bodyLarge'\n | 'bodyLargeUnderline'\n | 'bodyMedium'\n | 'bodyMediumUnderline'\n | 'bodySmall'\n | 'bodySmallUnderline'\n | 'bodyXSmall'\n | 'bodyXSmallUnderline'\n | 'bodyLargeCompact'\n | 'bodyLargeUnderlineCompact'\n | 'bodyMediumCompact'\n | 'bodyMediumUnderlineCompact'\n | 'bodySmallCompact'\n | 'bodySmallUnderlineCompact'\n | 'bodyXSmallCompact'\n | 'bodyXSmallUnderlineCompact'"
|
|
3296
|
+
},
|
|
3297
|
+
"description": "Typografivariant for paragrafen",
|
|
3298
|
+
"reflects": true
|
|
3299
|
+
}
|
|
3300
|
+
],
|
|
3301
|
+
"superclass": {
|
|
3302
|
+
"name": "LitElement",
|
|
3303
|
+
"package": "lit"
|
|
3304
|
+
},
|
|
3305
|
+
"tagNameWithoutPrefix": "paragraph",
|
|
3306
|
+
"tagName": "nve-paragraph",
|
|
3307
|
+
"customElement": true,
|
|
3308
|
+
"jsDoc": "/**\n * nve-paragraph gir fleksibel og tilgjengelig typografi for avsnitt i designsystemet.\n * Brukes til brødtekst, mengdetekst og ingress (lead), og gir riktig styling basert på designsystemets tokens.\n *\n * Du styrer typografivariant med size-prop, og kan velge mellom ulike varianter for brødtekst (body), ingress (lead) og kompakt tekst (body-compact).\n *\n * @slot - tekst - Selve avsnittet (innholdet).\n *\n * @csspart paragraph Hele paragraph-elementet\n *\n * Se designsystemet for alle varianter og tokens.\n */",
|
|
3309
|
+
"modulePath": "src/components/nve-paragraph/nve-paragraph.component.ts"
|
|
3310
|
+
}
|
|
3311
|
+
],
|
|
3312
|
+
"exports": [
|
|
3313
|
+
{
|
|
3314
|
+
"kind": "js",
|
|
3315
|
+
"name": "default",
|
|
3316
|
+
"declaration": {
|
|
3317
|
+
"name": "NveParagraph",
|
|
3318
|
+
"module": "components/nve-paragraph/nve-paragraph.js"
|
|
3319
|
+
}
|
|
3320
|
+
}
|
|
3321
|
+
]
|
|
3322
|
+
},
|
|
3154
3323
|
{
|
|
3155
3324
|
"kind": "javascript-module",
|
|
3156
3325
|
"path": "components/nve-popup/nve-popup.js",
|
package/nve-designsystem.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { default as NveDialog } from './components/nve-dialog/nve-dialog.compone
|
|
|
16
16
|
export { default as NveDivider } from './components/nve-divider/nve-divider.component';
|
|
17
17
|
export { default as NveDrawer } from './components/nve-drawer/nve-drawer.component';
|
|
18
18
|
export { default as NveDropdown } from './components/nve-dropdown/nve-dropdown.component';
|
|
19
|
+
export { default as NveHeading } from './components/nve-heading/nve-heading.component';
|
|
19
20
|
export { default as NveIcon } from './components/nve-icon/nve-icon.component';
|
|
20
21
|
export { default as NveInput } from './components/nve-input/nve-input.component';
|
|
21
22
|
export { default as NveLabel } from './components/nve-label/nve-label.component';
|
|
@@ -25,6 +26,7 @@ export { default as NveMenuItem } from './components/nve-menu-item/nve-menu-item
|
|
|
25
26
|
export { default as NveMessageCard } from './components/nve-message-card/nve-message-card.component';
|
|
26
27
|
export { default as NveNavigationCard } from './components/nve-navigation-card/nve-navigation-card.component';
|
|
27
28
|
export { default as NveOption } from './components/nve-option/nve-option.component';
|
|
29
|
+
export { default as NveParagraph } from './components/nve-paragraph/nve-paragraph.component';
|
|
28
30
|
export { default as NvePopup } from './components/nve-popup/nve-popup.component';
|
|
29
31
|
export { default as NveRadio } from './components/nve-radio/nve-radio.component';
|
|
30
32
|
export { default as NveRadioButton } from './components/nve-radio-button/nve-radio-button.component';
|
package/nve-designsystem.js
CHANGED
|
@@ -21,24 +21,26 @@ import { t as y } from "./chunks/nve-dialog.component.js";
|
|
|
21
21
|
import { t as b } from "./chunks/nve-divider.component.js";
|
|
22
22
|
import { t as x } from "./chunks/nve-drawer.component.js";
|
|
23
23
|
import { t as S } from "./chunks/nve-dropdown.component.js";
|
|
24
|
-
import C from "./components/nve-
|
|
25
|
-
import
|
|
26
|
-
import T from "./
|
|
27
|
-
import E from "./components/nve-
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import { t as k } from "./chunks/nve-radio
|
|
31
|
-
import A from "./
|
|
32
|
-
import { t as j } from "./chunks/nve-
|
|
33
|
-
import
|
|
34
|
-
import { t as N } from "./chunks/nve-
|
|
35
|
-
import P from "./
|
|
36
|
-
import F from "./
|
|
37
|
-
import I from "./components/nve-
|
|
38
|
-
import L from "./components/nve-
|
|
39
|
-
import R from "./components/nve-
|
|
40
|
-
import z from "./components/nve-tab
|
|
41
|
-
import B from "./components/nve-
|
|
42
|
-
import V from "./components/nve-
|
|
43
|
-
import
|
|
44
|
-
|
|
24
|
+
import C from "./components/nve-heading/nve-heading.component.js";
|
|
25
|
+
import w from "./components/nve-link-card/nve-link-card.component.js";
|
|
26
|
+
import { t as T } from "./chunks/nve-menu-item.component.js";
|
|
27
|
+
import E from "./components/nve-message-card/nve-message-card.component.js";
|
|
28
|
+
import D from "./components/nve-navigation-card/nve-navigation-card.component.js";
|
|
29
|
+
import O from "./components/nve-paragraph/nve-paragraph.component.js";
|
|
30
|
+
import { t as k } from "./chunks/nve-radio.component.js";
|
|
31
|
+
import { t as A } from "./chunks/nve-radio-button.component.js";
|
|
32
|
+
import { t as j } from "./chunks/nve-radio-group.component.js";
|
|
33
|
+
import M from "./components/nve-relative-time/nve-relative-time.component.js";
|
|
34
|
+
import { t as N } from "./chunks/nve-select.component.js";
|
|
35
|
+
import { t as P } from "./chunks/nve-skeleton.component.js";
|
|
36
|
+
import { t as F } from "./chunks/nve-spinner.component.js";
|
|
37
|
+
import I from "./components/nve-stepper/nve-step/nve-step.component.js";
|
|
38
|
+
import L from "./components/nve-stepper/nve-stepper.component.js";
|
|
39
|
+
import R from "./components/nve-switch/nve-switch.component.js";
|
|
40
|
+
import z from "./components/nve-tab/nve-tab.component.js";
|
|
41
|
+
import B from "./components/nve-tab-group/nve-tab-group.component.js";
|
|
42
|
+
import V from "./components/nve-tab-panel/nve-tab-panel.component.js";
|
|
43
|
+
import H from "./components/nve-tag/nve-tag.component.js";
|
|
44
|
+
import U from "./components/nve-textarea/nve-textarea.component.js";
|
|
45
|
+
import { t as W } from "./chunks/nve-warning-level.component.js";
|
|
46
|
+
export { e as NveAccordion, t as NveAccordionItem, n as NveAlert, i as NveBadge, a as NveButton, o as NveCarousel, s as NveCarouselItem, c as NveCarouselThumbnail, l as NveCheckbox, f as NveCheckboxGroup, _ as NveCombobox, v as NveDarkmodeSwitch, y as NveDialog, b as NveDivider, x as NveDrawer, S as NveDropdown, C as NveHeading, r as NveIcon, m as NveInput, u as NveLabel, w as NveLinkCard, h as NveMenu, T as NveMenuItem, E as NveMessageCard, D as NveNavigationCard, g as NveOption, O as NveParagraph, p as NvePopup, k as NveRadio, A as NveRadioButton, j as NveRadioGroup, M as NveRelativeTime, N as NveSelect, P as NveSkeleton, F as NveSpinner, I as NveStep, L as NveStepper, R as NveSwitch, z as NveTab, B as NveTabGroup, V as NveTabPanel, H as NveTag, U as NveTextarea, d as NveTooltip, W as NveWarningLevel };
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"homepage": "https://github.com/NVE/Designsystem/",
|
|
14
|
-
"version": "4.
|
|
14
|
+
"version": "4.3.0",
|
|
15
15
|
"customElements": "dist/custom-elements.json",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -46,7 +46,12 @@
|
|
|
46
46
|
"overrides": {
|
|
47
47
|
"minimatch": ">=10.2.1",
|
|
48
48
|
"minimist": ">=1.2.6",
|
|
49
|
-
"lodash": ">=4.
|
|
50
|
-
"tmp": ">=0.2.4"
|
|
49
|
+
"lodash": ">=4.18.0",
|
|
50
|
+
"tmp": ">=0.2.4",
|
|
51
|
+
"@vue/eslint-config-typescript": {
|
|
52
|
+
"@typescript-eslint/utils": "8.59.3",
|
|
53
|
+
"typescript-eslint": "8.59.3"
|
|
54
|
+
},
|
|
55
|
+
"koa": "2.16.4"
|
|
51
56
|
}
|
|
52
57
|
}
|