nve-designsystem 4.0.3 → 4.2.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.5JY5FUCG.js +5 -1
- package/chunks/chunk.HVTXQL7M.js +2 -2
- package/chunks/chunk.TP2GB2HO.js +4 -3
- package/chunks/chunk.ZH2AND3P.js +4 -3
- package/chunks/chunk.js +1 -1
- package/chunks/decorate.js +1 -1
- package/chunks/shoelace.js +4 -4
- package/components/nve-button/nve-button.styles.js +8 -1
- package/components/nve-tab-group/nve-tab-group.component.js +3 -1
- package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
- package/components/nve-textarea/nve-textarea.component.js +9 -7
- package/components/nve-textarea/nve-textarea.styles.js +5 -0
- package/css/nve.css +28 -13
- package/css/nve_dark.css +18 -10
- package/css/rme.css +28 -13
- package/css/rme_dark.css +18 -10
- package/css/varsom.css +28 -13
- package/css/varsom_dark.css +18 -10
- package/custom-elements.json +2607 -26579
- package/package.json +2 -2
- package/vscode.css-custom-data.json +0 -1848
- package/vscode.html-custom-data.json +0 -5165
package/chunks/chunk.5JY5FUCG.js
CHANGED
|
@@ -925,7 +925,11 @@ var $ = class extends c {
|
|
|
925
925
|
super.updated(e), e.has("active") && (this.active ? this.start() : this.stop()), e.has("anchor") && this.handleAnchorChange(), this.active && (await this.updateComplete, this.reposition());
|
|
926
926
|
}
|
|
927
927
|
async handleAnchorChange() {
|
|
928
|
-
await this.stop(), this.anchor && typeof this.anchor == "string"
|
|
928
|
+
if (await this.stop(), this.anchor && typeof this.anchor == "string") {
|
|
929
|
+
let e = this.getRootNode();
|
|
930
|
+
this.anchorEl = e.getElementById(this.anchor);
|
|
931
|
+
} else this.anchor instanceof Element || Ze(this.anchor) ? this.anchorEl = this.anchor : this.anchorEl = this.querySelector("[slot=\"anchor\"]");
|
|
932
|
+
this.anchorEl instanceof HTMLSlotElement && (this.anchorEl = this.anchorEl.assignedElements({ flatten: !0 })[0]), this.anchorEl && this.active && this.start();
|
|
929
933
|
}
|
|
930
934
|
start() {
|
|
931
935
|
!this.anchorEl || !this.active || (this.cleanup = Ve(this.anchorEl, this.popup, () => {
|
package/chunks/chunk.HVTXQL7M.js
CHANGED
|
@@ -241,8 +241,7 @@ var _ = t`
|
|
|
241
241
|
}
|
|
242
242
|
updateSkidding() {
|
|
243
243
|
if (!this.host.parentElement?.computedStyleMap) return;
|
|
244
|
-
let e = this.host.parentElement.computedStyleMap()
|
|
245
|
-
this.skidding = [
|
|
244
|
+
let e = this.host.parentElement.computedStyleMap(), t = [
|
|
246
245
|
"padding-top",
|
|
247
246
|
"border-top-width",
|
|
248
247
|
"margin-top"
|
|
@@ -250,6 +249,7 @@ var _ = t`
|
|
|
250
249
|
let r = e.get(n) ?? new CSSUnitValue(0, "px");
|
|
251
250
|
return t - (r instanceof CSSUnitValue ? r : new CSSUnitValue(0, "px")).to("px").value;
|
|
252
251
|
}, 0);
|
|
252
|
+
this.skidding = t;
|
|
253
253
|
}
|
|
254
254
|
isExpanded() {
|
|
255
255
|
return this.popupRef.value ? this.popupRef.value.active : !1;
|
package/chunks/chunk.TP2GB2HO.js
CHANGED
|
@@ -667,14 +667,15 @@ var E = t`
|
|
|
667
667
|
t === !0 || t === !1 ? e.selected = t : e.selected = !e.selected, this.selectionChanged();
|
|
668
668
|
}
|
|
669
669
|
selectionChanged() {
|
|
670
|
-
|
|
671
|
-
|
|
670
|
+
let e = this.getAllOptions();
|
|
671
|
+
this.selectedOptions = e.filter((e) => e.selected);
|
|
672
|
+
let t = this.valueHasChanged;
|
|
672
673
|
if (this.multiple) this.value = this.selectedOptions.map((e) => e.value), this.placeholder && this.value.length === 0 ? this.displayLabel = "" : this.displayLabel = this.localize.term("numOptionsSelected", this.selectedOptions.length);
|
|
673
674
|
else {
|
|
674
675
|
let e = this.selectedOptions[0];
|
|
675
676
|
this.value = e?.value ?? "", this.displayLabel = (e?.getTextLabel)?.call(e) ?? "";
|
|
676
677
|
}
|
|
677
|
-
this.valueHasChanged =
|
|
678
|
+
this.valueHasChanged = t, this.updateComplete.then(() => {
|
|
678
679
|
this.formControlController.updateValidity();
|
|
679
680
|
});
|
|
680
681
|
}
|
package/chunks/chunk.ZH2AND3P.js
CHANGED
|
@@ -369,9 +369,10 @@ var b = class extends c {
|
|
|
369
369
|
goToSlide(e, t = "smooth") {
|
|
370
370
|
let { slidesPerPage: n, loop: r } = this, i = this.getSlides(), a = this.getSlides({ excludeClones: !1 });
|
|
371
371
|
if (!i.length) return;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
this.
|
|
372
|
+
let o = r ? (e + i.length) % i.length : h(e, 0, i.length - n);
|
|
373
|
+
this.activeSlide = o;
|
|
374
|
+
let s = this.localize.dir() === "rtl", c = a[h(e + (r ? n : 0) + (s ? n - 1 : 0), 0, a.length - 1)];
|
|
375
|
+
this.scrollToSlide(c, p() ? "auto" : t);
|
|
375
376
|
}
|
|
376
377
|
scrollToSlide(e, t = "smooth") {
|
|
377
378
|
this.pendingSlideChange = !0, window.requestAnimationFrame(() => {
|
package/chunks/chunk.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, n) => {
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
|
|
3
3
|
let r = {};
|
|
4
4
|
for (var i in e) t(r, i, {
|
|
5
5
|
get: e[i],
|
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
|
@@ -2998,8 +2998,8 @@ var Je = r`
|
|
|
2998
2998
|
}
|
|
2999
2999
|
updated(e) {
|
|
3000
3000
|
if (super.updated(e), e.has("value")) {
|
|
3001
|
-
let e = parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")), t = 2 * Math.PI * e;
|
|
3002
|
-
this.indicatorOffset = `${
|
|
3001
|
+
let e = parseFloat(getComputedStyle(this.indicator).getPropertyValue("r")), t = 2 * Math.PI * e, n = t - this.value / 100 * t;
|
|
3002
|
+
this.indicatorOffset = `${n}px`;
|
|
3003
3003
|
}
|
|
3004
3004
|
}
|
|
3005
3005
|
render() {
|
|
@@ -6877,8 +6877,8 @@ var Vt = class e {
|
|
|
6877
6877
|
"rgb",
|
|
6878
6878
|
"hsl",
|
|
6879
6879
|
"hsv"
|
|
6880
|
-
];
|
|
6881
|
-
this.format = e[
|
|
6880
|
+
], t = (e.indexOf(this.format) + 1) % e.length;
|
|
6881
|
+
this.format = e[t], this.setColor(this.value), this.emit("sl-change"), this.emit("sl-input");
|
|
6882
6882
|
}
|
|
6883
6883
|
handleAlphaDrag(e) {
|
|
6884
6884
|
let t = this.shadowRoot.querySelector(".color-picker__slider.color-picker__alpha"), n = t.querySelector(".color-picker__slider-handle"), { width: r } = t.getBoundingClientRect(), i = this.value, a = this.value;
|
|
@@ -216,23 +216,30 @@ var t = e`
|
|
|
216
216
|
/* Deaktivert */
|
|
217
217
|
.button--disabled {
|
|
218
218
|
cursor: not-allowed;
|
|
219
|
-
opacity: 0.38;
|
|
220
219
|
}
|
|
221
220
|
|
|
222
221
|
.button--primary.button--disabled {
|
|
223
222
|
--_button-background: var(--color-interactive-background-primary-disabled);
|
|
223
|
+
--_button-color: var(--color-interactive-foreground-primary-disabled);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
226
|
.button--secondary.button--disabled {
|
|
227
227
|
--_button-background: var(--color-interactive-background-secondary-disabled);
|
|
228
|
+
--_button-color: var(--color-interactive-foreground-secondary-disabled);
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
.button--tertiary.button--disabled {
|
|
231
232
|
--_button-border-color: var(--color-interactive-border-secondary-disabled);
|
|
233
|
+
--_button-color: var(--color-interactive-foreground-secondary-disabled);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.button--ghost.button--disabled {
|
|
237
|
+
--_button-color: var(--color-interactive-foreground-secondary-disabled);
|
|
232
238
|
}
|
|
233
239
|
|
|
234
240
|
.button--danger.button--disabled {
|
|
235
241
|
--_button-background: var(--color-interactive-background-danger-disabled);
|
|
242
|
+
--_button-color: var(--color-interactive-foreground-danger-disabled);
|
|
236
243
|
}
|
|
237
244
|
|
|
238
245
|
/* Lastende */
|
|
@@ -120,7 +120,9 @@ var d = class extends n {
|
|
|
120
120
|
}
|
|
121
121
|
checkOverflow() {
|
|
122
122
|
let e = this.shadowRoot?.querySelector(".tab-group__nav");
|
|
123
|
-
|
|
123
|
+
if (!e) return;
|
|
124
|
+
let t = e.scrollWidth > e.clientWidth;
|
|
125
|
+
this.isOverflow = t, this.updateScrollState();
|
|
124
126
|
}
|
|
125
127
|
updateScrollState() {
|
|
126
128
|
let e = this.shadowRoot?.querySelector(".tab-group__nav");
|
|
@@ -40,6 +40,8 @@ export default class NveTextarea extends LitElement implements INveComponent {
|
|
|
40
40
|
label: string;
|
|
41
41
|
/** Hjelpetekst under textarea */
|
|
42
42
|
helpText: string;
|
|
43
|
+
/** Hint - tekst under inndatafelt */
|
|
44
|
+
hint: string;
|
|
43
45
|
/** Om textarea er deaktivert */
|
|
44
46
|
disabled: boolean;
|
|
45
47
|
/** Om textarea er skrivebeskyttet */
|
|
@@ -57,7 +59,7 @@ export default class NveTextarea extends LitElement implements INveComponent {
|
|
|
57
59
|
/** Kontrollerer om og hvordan tekstinnput automatisk blir gjort stor som det blir skrevet inn av brukeren. */
|
|
58
60
|
autocapitalize: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters';
|
|
59
61
|
/** Indikerer om nettleserens autokorrekturfunksjon er på eller av. */
|
|
60
|
-
autocorrect:
|
|
62
|
+
autocorrect: 'on' | 'off';
|
|
61
63
|
/** Indikerer om nettleserens autokorrekturfunksjon er på eller av. */
|
|
62
64
|
tooltip?: string;
|
|
63
65
|
/**
|
|
@@ -12,7 +12,7 @@ var f = class extends n {
|
|
|
12
12
|
this.styles = [d];
|
|
13
13
|
}
|
|
14
14
|
constructor() {
|
|
15
|
-
super(), this.name = "", this.value = "", this.title = "", this.filled = !1, this.label = "", this.helpText = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.required = !1, this.requiredLabel = "*Obligatorisk", this.autocapitalize = "off", this.autocorrect = "off", this.testId = "", this.showErrorMessage = !1, this.touched = !1, this.resizeObserver = null;
|
|
15
|
+
super(), this.name = "", this.value = "", this.title = "", this.filled = !1, this.label = "", this.helpText = "", this.hint = "", this.disabled = !1, this.readonly = !1, this.placeholder = "", this.required = !1, this.requiredLabel = "*Obligatorisk", this.autocapitalize = "off", this.autocorrect = "off", this.testId = "", this.showErrorMessage = !1, this.touched = !1, this.resizeObserver = null;
|
|
16
16
|
}
|
|
17
17
|
firstUpdated() {
|
|
18
18
|
if (this.requiredLabel && this.style.setProperty("--textarea-required-content", `"${this.requiredLabel}"`), this.required) {
|
|
@@ -73,6 +73,10 @@ var f = class extends n {
|
|
|
73
73
|
size="small"
|
|
74
74
|
tooltip=${l(this.tooltip)}
|
|
75
75
|
></nve-label>` : e}
|
|
76
|
+
${this.helpText ? t` <div part="help-text-container" class="textarea__help-text__container">
|
|
77
|
+
<span class="textarea__help-text" aria-hidden=${this.helpText ? "false" : "true"}>${this.helpText}</span>
|
|
78
|
+
</div>` : e}
|
|
79
|
+
|
|
76
80
|
<div part="base" class="textarea__base">
|
|
77
81
|
<textarea
|
|
78
82
|
part="textarea"
|
|
@@ -106,11 +110,9 @@ var f = class extends n {
|
|
|
106
110
|
${this.showErrorMessage ? t`<nve-icon class="textarea__icon--error" name="error"></nve-icon>` : null}
|
|
107
111
|
</div>` : e}
|
|
108
112
|
</div>
|
|
109
|
-
<div part="
|
|
110
|
-
<!-- Ikke vis
|
|
111
|
-
${!this.showErrorMessage && this.
|
|
112
|
-
>${this.helpText}</span
|
|
113
|
-
>` : e}
|
|
113
|
+
<div part="hint-text-container" class="textarea__hint-text__container">
|
|
114
|
+
<!-- Ikke vis hint dersom feil -->
|
|
115
|
+
${!this.showErrorMessage && this.hint ? t`<span class="textarea__hint" aria-hidden=${this.hint ? "false" : "true"}>${this.hint}</span>` : e}
|
|
114
116
|
${this.showErrorMessage ? t`<span class="textarea__help-text textarea__help-text--error">${this.errorMessage}</span>` : e}
|
|
115
117
|
</div>
|
|
116
118
|
</div>
|
|
@@ -120,7 +122,7 @@ var f = class extends n {
|
|
|
120
122
|
s([i()], f.prototype, "name", void 0), s([i()], f.prototype, "value", void 0), s([i()], f.prototype, "errorMessage", void 0), s([i()], f.prototype, "title", void 0), s([i({
|
|
121
123
|
type: Boolean,
|
|
122
124
|
reflect: !0
|
|
123
|
-
})], f.prototype, "filled", void 0), s([i()], f.prototype, "label", void 0), s([i()], f.prototype, "helpText", void 0), s([i({
|
|
125
|
+
})], f.prototype, "filled", void 0), s([i()], f.prototype, "label", void 0), s([i()], f.prototype, "helpText", void 0), s([i()], f.prototype, "hint", void 0), s([i({
|
|
124
126
|
type: Boolean,
|
|
125
127
|
reflect: !0
|
|
126
128
|
})], f.prototype, "disabled", void 0), s([i({
|
|
@@ -94,6 +94,11 @@ var t = e`
|
|
|
94
94
|
color: var(--color-feedback-background-emphasized-error);
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
.textarea__hint {
|
|
98
|
+
font: var(--typography-label-x-small-light);
|
|
99
|
+
color: var(--color-neutrals-foreground-primary);
|
|
100
|
+
}
|
|
101
|
+
|
|
97
102
|
.textarea__icon__container {
|
|
98
103
|
position: relative; /** trengs for å posisjonere ikonen */
|
|
99
104
|
}
|
package/css/nve.css
CHANGED
|
@@ -294,34 +294,42 @@
|
|
|
294
294
|
--color-interactive-background-primary-enabled: var(--color-shades-grey-950);
|
|
295
295
|
--color-interactive-background-primary-hover: var(--color-shades-grey-600);
|
|
296
296
|
--color-interactive-background-primary-pressed: var(--color-shades-grey-500);
|
|
297
|
-
--color-interactive-background-primary-disabled: var(--color-shades-grey-
|
|
297
|
+
--color-interactive-background-primary-disabled: var(--color-shades-grey-300);
|
|
298
298
|
--color-interactive-background-secondary-enabled: var(--color-shades-grey-150);
|
|
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
|
-
--color-interactive-background-secondary-disabled: var(--color-shades-grey-
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
301
|
+
--color-interactive-background-secondary-disabled: var(--color-shades-grey-100);
|
|
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);
|
|
307
|
-
--color-interactive-background-danger-disabled: var(--color-shades-functional-red-
|
|
309
|
+
--color-interactive-background-danger-disabled: var(--color-shades-functional-red-150);
|
|
308
310
|
--color-interactive-foreground-primary-enabled: var(--color-shades-grey-000);
|
|
309
311
|
--color-interactive-foreground-primary-hover: var(--color-shades-grey-000);
|
|
310
|
-
--color-interactive-foreground-primary-disabled: var(--color-shades-grey-
|
|
312
|
+
--color-interactive-foreground-primary-disabled: var(--color-shades-grey-100);
|
|
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
|
-
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-
|
|
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
|
-
--color-interactive-foreground-danger-disabled: var(--color-shades-
|
|
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);
|
|
317
322
|
--color-interactive-foreground-link-hover: var(--color-shades-functional-blue-950);
|
|
318
323
|
--color-interactive-foreground-link-visited: var(--color-shades-grey-600);
|
|
319
324
|
--color-interactive-border-primary-enabled: var(--color-shades-grey-999);
|
|
320
325
|
--color-interactive-border-primary-hover: var(--color-shades-functional-neutralgrey-600-050);
|
|
321
|
-
--color-interactive-border-primary-disabled: var(--color-shades-grey-
|
|
326
|
+
--color-interactive-border-primary-disabled: var(--color-shades-grey-300);
|
|
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
|
-
--color-interactive-border-secondary-disabled: var(--color-shades-grey-
|
|
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
|
@@ -294,34 +294,42 @@
|
|
|
294
294
|
--color-interactive-background-primary-enabled: var(--color-shades-grey-000);
|
|
295
295
|
--color-interactive-background-primary-hover: var(--color-shades-grey-150);
|
|
296
296
|
--color-interactive-background-primary-pressed: var(--color-shades-grey-200);
|
|
297
|
-
--color-interactive-background-primary-disabled: var(--color-shades-grey-
|
|
297
|
+
--color-interactive-background-primary-disabled: var(--color-shades-grey-700);
|
|
298
298
|
--color-interactive-background-secondary-enabled: var(--color-shades-grey-700);
|
|
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
|
-
--color-interactive-background-secondary-disabled: var(--color-shades-grey-
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
301
|
+
--color-interactive-background-secondary-disabled: var(--color-shades-grey-800);
|
|
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);
|
|
307
|
-
--color-interactive-background-danger-disabled: var(--color-shades-functional-red-
|
|
309
|
+
--color-interactive-background-danger-disabled: var(--color-shades-functional-red-900);
|
|
308
310
|
--color-interactive-foreground-primary-enabled: var(--color-shades-grey-950);
|
|
309
311
|
--color-interactive-foreground-primary-hover: var(--color-shades-grey-950);
|
|
310
|
-
--color-interactive-foreground-primary-disabled: var(--color-shades-grey-
|
|
312
|
+
--color-interactive-foreground-primary-disabled: var(--color-shades-grey-600);
|
|
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
|
-
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-
|
|
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
|
-
--color-interactive-foreground-danger-disabled: var(--color-shades-
|
|
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);
|
|
317
322
|
--color-interactive-foreground-link-hover: var(--color-shades-functional-blue-200);
|
|
318
323
|
--color-interactive-foreground-link-visited: var(--color-shades-grey-200);
|
|
319
324
|
--color-interactive-border-primary-enabled: var(--color-shades-grey-000);
|
|
320
325
|
--color-interactive-border-primary-hover: var(--color-shades-functional-neutralgrey-100-050);
|
|
321
|
-
--color-interactive-border-primary-disabled: var(--color-shades-grey-
|
|
326
|
+
--color-interactive-border-primary-disabled: var(--color-shades-grey-700);
|
|
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
|
-
--color-interactive-border-secondary-disabled: var(--color-shades-grey-
|
|
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
|
@@ -294,34 +294,42 @@
|
|
|
294
294
|
--color-interactive-background-primary-enabled: var(--color-shades-grey-950);
|
|
295
295
|
--color-interactive-background-primary-hover: var(--color-shades-grey-600);
|
|
296
296
|
--color-interactive-background-primary-pressed: var(--color-shades-grey-500);
|
|
297
|
-
--color-interactive-background-primary-disabled: var(--color-shades-grey-
|
|
297
|
+
--color-interactive-background-primary-disabled: var(--color-shades-grey-300);
|
|
298
298
|
--color-interactive-background-secondary-enabled: var(--color-shades-grey-150);
|
|
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
|
-
--color-interactive-background-secondary-disabled: var(--color-shades-grey-
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
301
|
+
--color-interactive-background-secondary-disabled: var(--color-shades-grey-100);
|
|
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);
|
|
307
|
-
--color-interactive-background-danger-disabled: var(--color-shades-functional-red-
|
|
309
|
+
--color-interactive-background-danger-disabled: var(--color-shades-functional-red-150);
|
|
308
310
|
--color-interactive-foreground-primary-enabled: var(--color-shades-grey-000);
|
|
309
311
|
--color-interactive-foreground-primary-hover: var(--color-shades-grey-000);
|
|
310
|
-
--color-interactive-foreground-primary-disabled: var(--color-shades-grey-
|
|
312
|
+
--color-interactive-foreground-primary-disabled: var(--color-shades-grey-100);
|
|
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
|
-
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-
|
|
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
|
-
--color-interactive-foreground-danger-disabled: var(--color-shades-
|
|
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);
|
|
317
322
|
--color-interactive-foreground-link-hover: var(--color-shades-functional-blue-950);
|
|
318
323
|
--color-interactive-foreground-link-visited: var(--color-shades-grey-600);
|
|
319
324
|
--color-interactive-border-primary-enabled: var(--color-shades-grey-999);
|
|
320
325
|
--color-interactive-border-primary-hover: var(--color-shades-functional-neutralgrey-600-050);
|
|
321
|
-
--color-interactive-border-primary-disabled: var(--color-shades-grey-
|
|
326
|
+
--color-interactive-border-primary-disabled: var(--color-shades-grey-300);
|
|
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
|
-
--color-interactive-border-secondary-disabled: var(--color-shades-grey-
|
|
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
|
@@ -294,34 +294,42 @@
|
|
|
294
294
|
--color-interactive-background-primary-enabled: var(--color-shades-grey-000);
|
|
295
295
|
--color-interactive-background-primary-hover: var(--color-shades-grey-150);
|
|
296
296
|
--color-interactive-background-primary-pressed: var(--color-shades-grey-200);
|
|
297
|
-
--color-interactive-background-primary-disabled: var(--color-shades-grey-
|
|
297
|
+
--color-interactive-background-primary-disabled: var(--color-shades-grey-700);
|
|
298
298
|
--color-interactive-background-secondary-enabled: var(--color-shades-grey-700);
|
|
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
|
-
--color-interactive-background-secondary-disabled: var(--color-shades-grey-
|
|
302
|
-
--color-interactive-background-tertiary-
|
|
303
|
-
--color-interactive-background-tertiary-
|
|
301
|
+
--color-interactive-background-secondary-disabled: var(--color-shades-grey-800);
|
|
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);
|
|
307
|
-
--color-interactive-background-danger-disabled: var(--color-shades-functional-red-
|
|
309
|
+
--color-interactive-background-danger-disabled: var(--color-shades-functional-red-900);
|
|
308
310
|
--color-interactive-foreground-primary-enabled: var(--color-shades-grey-950);
|
|
309
311
|
--color-interactive-foreground-primary-hover: var(--color-shades-grey-950);
|
|
310
|
-
--color-interactive-foreground-primary-disabled: var(--color-shades-grey-
|
|
312
|
+
--color-interactive-foreground-primary-disabled: var(--color-shades-grey-600);
|
|
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
|
-
--color-interactive-foreground-secondary-disabled: var(--color-shades-grey-
|
|
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
|
-
--color-interactive-foreground-danger-disabled: var(--color-shades-
|
|
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);
|
|
317
322
|
--color-interactive-foreground-link-hover: var(--color-shades-functional-blue-200);
|
|
318
323
|
--color-interactive-foreground-link-visited: var(--color-shades-grey-200);
|
|
319
324
|
--color-interactive-border-primary-enabled: var(--color-shades-grey-000);
|
|
320
325
|
--color-interactive-border-primary-hover: var(--color-shades-functional-neutralgrey-100-050);
|
|
321
|
-
--color-interactive-border-primary-disabled: var(--color-shades-grey-
|
|
326
|
+
--color-interactive-border-primary-disabled: var(--color-shades-grey-700);
|
|
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
|
-
--color-interactive-border-secondary-disabled: var(--color-shades-grey-
|
|
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);
|