nve-designsystem 3.1.0 → 3.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.2PCBEMQZ.js +163 -226
- package/chunks/chunk.36O46B5H.js +15 -15
- package/chunks/chunk.4TUIT776.js +78 -96
- package/chunks/chunk.5JY5FUCG.js +965 -1245
- package/chunks/chunk.5P45LHIX.js +668 -96
- package/chunks/chunk.6CTB5ZDJ.js +107 -100
- package/chunks/chunk.B4BZKR24.js +29 -39
- package/chunks/chunk.D5YQDJ7X.js +122 -166
- package/chunks/chunk.EA437WHD.js +5 -5
- package/chunks/chunk.GI7VDIWX.js +14 -15
- package/chunks/chunk.GMYPQTFK.js +18 -20
- package/chunks/chunk.HVTXQL7M.js +191 -215
- package/chunks/chunk.IKV4VH3T.js +18 -16
- package/chunks/chunk.IVVHNXMC.js +26 -27
- package/chunks/chunk.JHOXTQXA.js +65 -74
- package/chunks/chunk.JXOKFADN.js +63 -90
- package/chunks/chunk.K7JGTRV7.js +24 -23
- package/chunks/chunk.KPLQLAWP.js +132 -147
- package/chunks/chunk.LD4M4QGE.js +61 -74
- package/chunks/chunk.MSKEYBDI.js +53 -71
- package/chunks/chunk.NYIIDP5N.js +39 -45
- package/chunks/chunk.RWUUFNUL.js +91 -114
- package/chunks/chunk.SAPQLUO4.js +249 -228
- package/chunks/chunk.SI4ACBFK.js +139 -5
- package/chunks/chunk.TP2GB2HO.js +361 -460
- package/chunks/chunk.UDWRA64J.js +185 -223
- package/chunks/chunk.URTPIBTY.js +119 -151
- package/chunks/chunk.VESXC477.js +63 -66
- package/chunks/chunk.XA43ZQPC.js +198 -313
- package/chunks/chunk.XQ2OKYYA.js +25 -26
- package/chunks/chunk.XZNBUGX7.js +6 -6
- package/chunks/chunk.YHLNUJ7P.js +93 -116
- package/chunks/chunk.ZH2AND3P.js +340 -399
- package/chunks/chunk.ZL53POKZ.js +61 -156
- package/chunks/chunk.js +20 -0
- package/chunks/class-map.js +49 -45
- package/chunks/decorate.js +105 -0
- package/chunks/directive-helpers.js +5 -7
- package/chunks/if-defined.js +5 -5
- package/chunks/lit.js +525 -0
- package/chunks/live.js +24 -24
- package/chunks/nve-alert.component.js +163 -0
- package/chunks/nve-carousel-item.component.js +36 -0
- package/chunks/nve-carousel.component.js +41 -0
- package/chunks/nve-checkbox-group.component.js +114 -0
- package/chunks/nve-checkbox.component.js +28 -0
- package/chunks/nve-dialog.component.js +39 -0
- package/chunks/nve-divider.component.js +23 -0
- package/chunks/nve-drawer.component.js +40 -0
- package/chunks/nve-dropdown.component.js +83 -0
- package/chunks/nve-input.component.js +80 -0
- package/chunks/nve-label.component.js +89 -0
- package/chunks/nve-menu-item.component.js +35 -0
- package/chunks/nve-menu.component.js +17 -0
- package/chunks/nve-option.component.js +27 -0
- package/chunks/nve-popup.component.js +15 -0
- package/chunks/nve-radio-button.component.js +20 -0
- package/chunks/nve-radio-group.component.js +78 -0
- package/chunks/nve-radio.component.js +18 -0
- package/chunks/nve-select.component.js +58 -0
- package/chunks/nve-skeleton.component.js +20 -0
- package/chunks/nve-spinner.component.js +23 -0
- package/chunks/nve-tooltip.component.js +20 -0
- package/chunks/nve-warning-level.component.js +57 -0
- package/chunks/ref.js +75 -84
- package/chunks/shoelace.js +10006 -0
- package/chunks/static-html.js +27 -0
- package/chunks/unsafe-html.js +24 -20
- package/chunks/updateInvalidProperty.js +7 -7
- package/chunks/watch.js +20 -20
- package/components/nve-accordion/nve-accordion.component.js +24 -30
- package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
- package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
- package/components/nve-alert/nve-alert.component.js +2 -227
- package/components/nve-alert/nve-alert.styles.js +45 -27
- package/components/nve-badge/nve-badge.component.js +41 -45
- package/components/nve-badge/nve-badge.styles.js +33 -31
- package/components/nve-button/nve-button.component.d.ts +110 -10
- package/components/nve-button/nve-button.component.js +146 -39
- package/components/nve-button/nve-button.styles.js +214 -157
- package/components/nve-carousel/nve-carousel.component.js +2 -47
- package/components/nve-carousel/nve-carousel.styles.js +6 -6
- package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
- package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
- package/components/nve-checkbox/nve-checkbox.component.js +2 -34
- package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
- package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
- package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
- package/components/nve-combobox/nve-combobox.component.js +222 -440
- package/components/nve-combobox/nve-combobox.styles.js +6 -6
- package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
- package/components/nve-dialog/nve-dialog-styles.js +6 -6
- package/components/nve-dialog/nve-dialog.component.js +2 -54
- package/components/nve-divider/nve-divider.component.js +2 -30
- package/components/nve-drawer/nve-drawer.component.js +2 -44
- package/components/nve-drawer/nve-drawer.styles.js +6 -6
- package/components/nve-dropdown/nve-dropdown.component.js +2 -79
- package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
- 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-icon/nve-icon.component.js +145 -164
- package/components/nve-icon/nve-icon.styles.js +11 -6
- package/components/nve-icon/offline-icons.js +16 -13
- package/components/nve-input/nve-input.component.js +2 -100
- package/components/nve-input/nve-input.styles.js +5 -5
- package/components/nve-label/nve-label.component.js +2 -115
- package/components/nve-label/nve-label.styles.js +5 -5
- package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
- package/components/nve-link-card/nve-link-card.component.js +44 -80
- package/components/nve-link-card/nve-link-card.styles.js +71 -66
- package/components/nve-menu/nve-menu.component.js +2 -22
- package/components/nve-menu/nve-menu.styles.js +5 -5
- package/components/nve-menu-item/nve-menu-item.component.js +2 -43
- package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
- package/components/nve-message-card/nve-message-card.component.js +61 -91
- package/components/nve-message-card/nve-message-card.styles.js +24 -27
- package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
- package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
- package/components/nve-option/nve-option.component.js +2 -41
- package/components/nve-option/nve-option.styles.js +5 -5
- 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/components/nve-popup/nve-popup.component.js +2 -22
- package/components/nve-radio/nve-radio.component.js +2 -23
- package/components/nve-radio/nve-radio.styles.js +5 -5
- package/components/nve-radio-button/nve-radio-button.component.js +2 -25
- package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
- package/components/nve-radio-group/nve-radio-group.component.js +2 -119
- package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
- package/components/nve-relative-time/nve-relative-time.component.js +21 -56
- package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
- package/components/nve-select/nve-select.component.js +2 -80
- package/components/nve-select/nve-select.styles.js +6 -6
- package/components/nve-skeleton/nve-skeleton.component.js +2 -27
- package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
- package/components/nve-spinner/nve-spinner.component.js +2 -31
- package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
- package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
- package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
- package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
- package/components/nve-stepper/nve-stepper.component.js +94 -139
- package/components/nve-stepper/nve-stepper.styles.js +5 -5
- package/components/nve-switch/nve-switch.component.js +75 -107
- package/components/nve-switch/nve-switch.styles.js +7 -7
- package/components/nve-tab/nve-tab.component.js +30 -42
- package/components/nve-tab/nve-tab.styles.js +7 -7
- package/components/nve-tab-group/nve-tab-group.component.js +180 -260
- package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
- package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
- package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
- package/components/nve-tag/nve-tag.component.d.ts +3 -3
- package/components/nve-tag/nve-tag.component.js +71 -72
- package/components/nve-tag/nve-tag.styles.js +23 -22
- package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
- package/components/nve-textarea/nve-textarea.component.js +112 -173
- package/components/nve-textarea/nve-textarea.styles.js +10 -5
- package/components/nve-tooltip/nve-tooltip.component.js +2 -30
- package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
- package/components/nve-warning-level/nve-warning-level.component.js +2 -78
- package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
- package/css/global.css +13 -55
- package/css/nve.css +1048 -393
- package/css/nve_dark.css +406 -305
- package/css/rme.css +1050 -395
- package/css/rme_dark.css +408 -307
- package/css/shoelace-styles.css +539 -0
- package/css/varsom.css +1046 -391
- package/css/varsom_dark.css +404 -303
- package/custom-elements.json +2905 -12389
- package/fonts/LICENSE.txt +37 -0
- package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
- package/interfaces/NveComponent.interface.js +0 -1
- package/nve-designsystem.d.ts +5 -0
- package/nve-designsystem.js +46 -86
- package/package.json +26 -8
- package/registerIcons/systemLibraryCustomization.js +23 -91
- package/vite-env.d.js +0 -1
- package/chunks/chunk.3RPBFEDE.js +0 -162
- package/chunks/chunk.JCXLDPQF.js +0 -225
- package/chunks/chunk.JQBT7BOV.js +0 -8446
- package/chunks/chunk.MAQXLKQ7.js +0 -598
- package/chunks/lit-element.js +0 -508
- package/chunks/property.js +0 -37
- package/chunks/query.js +0 -13
- package/chunks/state.js +0 -7
- package/chunks/static.js +0 -26
- package/nve-designsystem.css +0 -1
- package/vscode.css-custom-data.json +0 -621
- package/vscode.html-custom-data.json +0 -2354
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { u as e } from "../../chunks/lit.js";
|
|
2
|
+
//#region src/components/nve-textarea/nve-textarea.styles.ts
|
|
3
|
+
var t = e`
|
|
3
4
|
:host {
|
|
4
5
|
display: flex;
|
|
5
6
|
--textarea-required-content: '*Obligatorisk';
|
|
@@ -93,6 +94,11 @@ const o = r`
|
|
|
93
94
|
color: var(--color-feedback-background-emphasized-error);
|
|
94
95
|
}
|
|
95
96
|
|
|
97
|
+
.textarea__hint {
|
|
98
|
+
font: var(--typography-label-x-small-light);
|
|
99
|
+
color: var(--color-neutrals-foreground-primary);
|
|
100
|
+
}
|
|
101
|
+
|
|
96
102
|
.textarea__icon__container {
|
|
97
103
|
position: relative; /** trengs for å posisjonere ikonen */
|
|
98
104
|
}
|
|
@@ -108,6 +114,5 @@ const o = r`
|
|
|
108
114
|
width: unset;
|
|
109
115
|
}
|
|
110
116
|
`;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
};
|
|
117
|
+
//#endregion
|
|
118
|
+
export { t as default };
|
|
@@ -1,30 +1,2 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
3
|
-
import "../../chunks/chunk.6CTB5ZDJ.js";
|
|
4
|
-
import "../../chunks/chunk.4TUIT776.js";
|
|
5
|
-
import { n as m, t as n } from "../../chunks/property.js";
|
|
6
|
-
import "../nve-icon/nve-icon.component.js";
|
|
7
|
-
import u from "./nve-tooltip.styles.js";
|
|
8
|
-
var v = Object.defineProperty, c = Object.getOwnPropertyDescriptor, a = (l, e, p, o) => {
|
|
9
|
-
for (var t = o > 1 ? void 0 : o ? c(e, p) : e, s = l.length - 1, i; s >= 0; s--)
|
|
10
|
-
(i = l[s]) && (t = (o ? i(e, p, t) : i(t)) || t);
|
|
11
|
-
return o && t && v(e, p, t), t;
|
|
12
|
-
};
|
|
13
|
-
let r = class extends f {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(), this.variant = "neutral", this.saturation = "emphasized";
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
r.styles = [f.styles, u];
|
|
19
|
-
a([
|
|
20
|
-
m({ reflect: !0 })
|
|
21
|
-
], r.prototype, "variant", 2);
|
|
22
|
-
a([
|
|
23
|
-
m({ reflect: !0 })
|
|
24
|
-
], r.prototype, "saturation", 2);
|
|
25
|
-
r = a([
|
|
26
|
-
n("nve-tooltip")
|
|
27
|
-
], r);
|
|
28
|
-
export {
|
|
29
|
-
r as default
|
|
30
|
-
};
|
|
1
|
+
import { t as e } from "../../chunks/nve-tooltip.component.js";
|
|
2
|
+
export { e as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { u as e } from "../../chunks/lit.js";
|
|
2
|
+
//#region src/components/nve-tooltip/nve-tooltip.styles.ts
|
|
3
|
+
var t = e`
|
|
3
4
|
:host {
|
|
4
5
|
--sl-tooltip-border-radius: 40px;
|
|
5
6
|
--sl-tooltip-background-color: var(--_bg-color);
|
|
@@ -114,6 +115,5 @@ const a = r`
|
|
|
114
115
|
--_border-color: var(--color-feedback-background-emphasized-error);
|
|
115
116
|
}
|
|
116
117
|
`;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
};
|
|
118
|
+
//#endregion
|
|
119
|
+
export { t as default };
|
|
@@ -1,78 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import C from "./nve-warning-level.styles.js";
|
|
4
|
-
import { e as p } from "../../chunks/class-map.js";
|
|
5
|
-
import { o as w } from "../../chunks/if-defined.js";
|
|
6
|
-
const f = "data:image/svg+xml,%3csvg%20width='30'%20height='31'%20viewBox='0%200%2030%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1.5%2026.0249L15%203.5249L28.5%2026.0249H1.5Z'%20fill='%2300131C'/%3e%3cpath%20d='M14.9934%2022.2749C15.3103%2022.2749%2015.5781%2022.1677%2015.7969%2021.9534C16.0156%2021.739%2016.125%2021.4734%2016.125%2021.1565C16.125%2020.8396%2016.0178%2020.5718%2015.8035%2020.353C15.5891%2020.1343%2015.3235%2020.0249%2015.0066%2020.0249C14.6897%2020.0249%2014.4219%2020.1321%2014.2031%2020.3464C13.9844%2020.5608%2013.875%2020.8264%2013.875%2021.1433C13.875%2021.4602%2013.9822%2021.728%2014.1965%2021.9468C14.4109%2022.1655%2014.6765%2022.2749%2014.9934%2022.2749ZM13.875%2018.5249H16.125V12.5249H13.875V18.5249Z'%20fill='white'/%3e%3c/svg%3e", m = "data:image/svg+xml,%3csvg%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.966146'%20y='1.30843'%20width='18.3333'%20height='18.3333'%20rx='9.16667'%20fill='white'/%3e%3crect%20x='0.966146'%20y='1.30843'%20width='18.3333'%20height='18.3333'%20rx='9.16667'%20stroke='%2300131C'%20stroke-width='1.66667'/%3e%3cpath%20d='M10.1292%2016.5467C9.77038%2016.5467%209.46447%2016.4189%209.2115%2016.1634C8.95852%2015.9078%208.83203%2015.6006%208.83203%2015.2418C8.83203%2014.883%208.9598%2014.5771%209.21533%2014.3241C9.47087%2014.0711%209.77805%2013.9446%2010.1369%2013.9446C10.4957%2013.9446%2010.8016%2014.0724%2011.0546%2014.3279C11.3076%2014.5835%2011.4341%2014.8906%2011.4341%2015.2495C11.4341%2015.6083%2011.3063%2015.9142%2011.0508%2016.1672C10.7952%2016.4202%2010.488%2016.5467%2010.1292%2016.5467ZM8.83203%2012.2099V4.40381H11.4341V12.2099H8.83203Z'%20fill='%2300131C'/%3e%3c/svg%3e";
|
|
7
|
-
var b = Object.defineProperty, u = Object.getOwnPropertyDescriptor, i = (a, t, s, n) => {
|
|
8
|
-
for (var r = n > 1 ? void 0 : n ? u(t, s) : t, o = a.length - 1, g; o >= 0; o--)
|
|
9
|
-
(g = a[o]) && (r = (n ? g(t, s, r) : g(r)) || r);
|
|
10
|
-
return n && r && b(t, s, r), r;
|
|
11
|
-
};
|
|
12
|
-
let e = class extends c {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(), this.testId = void 0, this.level = "1", this.border = !1, this.warningBadge = null, this.ariaLabel = null;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
* Sjekker om komponent er plassert innen en knapp eller lenke.
|
|
19
|
-
*/
|
|
20
|
-
get isDirectParentButton() {
|
|
21
|
-
const a = this.parentElement;
|
|
22
|
-
if (!a) return !1;
|
|
23
|
-
const t = a.tagName.toLowerCase();
|
|
24
|
-
return t === "button" || t === "a";
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
return h`
|
|
28
|
-
<div
|
|
29
|
-
class=${p({
|
|
30
|
-
"warning-level": !0,
|
|
31
|
-
[`warning-level--${this.level}`]: !0,
|
|
32
|
-
border: this.border,
|
|
33
|
-
"inside-button": this.isDirectParentButton
|
|
34
|
-
})}
|
|
35
|
-
part="base"
|
|
36
|
-
role="img"
|
|
37
|
-
testId=${w(this.testId)}
|
|
38
|
-
aria-label=${w(this.ariaLabel)}
|
|
39
|
-
>
|
|
40
|
-
${this.level === "unknown" ? "?" : this.level}
|
|
41
|
-
${this.warningBadge ? h`
|
|
42
|
-
<img
|
|
43
|
-
part="warning-badge"
|
|
44
|
-
alt=""
|
|
45
|
-
class=${p({
|
|
46
|
-
"warning-level-badge": !0,
|
|
47
|
-
"warning-level-badge--circle": this.warningBadge === "circle",
|
|
48
|
-
"warning-level-badge--triangle": this.warningBadge === "triangle"
|
|
49
|
-
})}
|
|
50
|
-
src=${this.warningBadge === "triangle" ? f : m}
|
|
51
|
-
/>
|
|
52
|
-
` : d}
|
|
53
|
-
</div>
|
|
54
|
-
`;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
e.styles = [C];
|
|
58
|
-
i([
|
|
59
|
-
l({ type: String })
|
|
60
|
-
], e.prototype, "testId", 2);
|
|
61
|
-
i([
|
|
62
|
-
l()
|
|
63
|
-
], e.prototype, "level", 2);
|
|
64
|
-
i([
|
|
65
|
-
l({ type: Boolean })
|
|
66
|
-
], e.prototype, "border", 2);
|
|
67
|
-
i([
|
|
68
|
-
l({ type: String })
|
|
69
|
-
], e.prototype, "warningBadge", 2);
|
|
70
|
-
i([
|
|
71
|
-
l({ type: String, attribute: "aria-label" })
|
|
72
|
-
], e.prototype, "ariaLabel", 2);
|
|
73
|
-
e = i([
|
|
74
|
-
v("nve-warning-level")
|
|
75
|
-
], e);
|
|
76
|
-
export {
|
|
77
|
-
e as default
|
|
78
|
-
};
|
|
1
|
+
import { t as e } from "../../chunks/nve-warning-level.component.js";
|
|
2
|
+
export { e as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { u as e } from "../../chunks/lit.js";
|
|
2
|
+
//#region src/components/nve-warning-level/nve-warning-level.styles.ts
|
|
3
|
+
var t = e`
|
|
3
4
|
:host {
|
|
4
5
|
--size: 34px;
|
|
5
6
|
--font-size: 20px;
|
|
@@ -22,7 +23,7 @@ const o = e`
|
|
|
22
23
|
justify-content: center;
|
|
23
24
|
align-items: center;
|
|
24
25
|
color: var(--color-dangerlevel-foreground-default-level1);
|
|
25
|
-
font-family: 'Source Sans
|
|
26
|
+
font-family: 'Source Sans 3';
|
|
26
27
|
font-size: var(--font-size);
|
|
27
28
|
font-style: normal;
|
|
28
29
|
font-weight: 600;
|
|
@@ -84,7 +85,7 @@ const o = e`
|
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
.border {
|
|
87
|
-
border: var(--border-width) solid var(--color-
|
|
88
|
+
border: var(--border-width) solid var(--color-dangerlevel-foreground-default-level1);
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
.warning-level-badge {
|
|
@@ -111,6 +112,5 @@ const o = e`
|
|
|
111
112
|
min-height: 17px;
|
|
112
113
|
}
|
|
113
114
|
`;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
};
|
|
115
|
+
//#endregion
|
|
116
|
+
export { t as default };
|
package/css/global.css
CHANGED
|
@@ -1,58 +1,15 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
|
|
3
|
-
@
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
@import './shoelace-styles.css';
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: 'Source Sans 3';
|
|
5
|
+
src: url('../fonts/SourceSans3-VariableFont_wght.woff2') format('woff2-variations');
|
|
6
|
+
font-weight: 100 900;
|
|
7
|
+
font-display: swap;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
}
|
|
7
10
|
|
|
8
11
|
:root {
|
|
9
12
|
--transition-time: 0.3s;
|
|
10
|
-
|
|
11
|
-
--sl-focus-ring-color: var(--color-interactive-links-focus);
|
|
12
|
-
--sl-focus-ring-style: solid;
|
|
13
|
-
--sl-focus-ring-width: 2px;
|
|
14
|
-
--sl-focus-ring-offset: -1px;
|
|
15
|
-
--sl-border-radius-medium: var(--border-radius-small);
|
|
16
|
-
--sl-border-radius-small: var(--border-radius-small);
|
|
17
|
-
--sl-input-height-small: var(--sizing-fixed-sizing-medium);
|
|
18
|
-
--sl-input-height-medium: var(--sizing-fixed-sizing-large);
|
|
19
|
-
--sl-input-height-large: var(--sizing-fixed-sizing-x-large);
|
|
20
|
-
|
|
21
|
-
--sl-input-background-color: var(--color-neutrals-background-primary, #fff);
|
|
22
|
-
--sl-input-background-color-focus: var(--color-neutrals-background-primary, #fff);
|
|
23
|
-
--sl-input-background-color-hover: var(--color-neutrals-background-primary, #fff);
|
|
24
|
-
--sl-input-background-color-disabled: var(--color-neutrals-background-primary, #fff);
|
|
25
|
-
--sl-input-color: var(--color-neutrals-foreground-primary, #00131c);
|
|
26
|
-
--sl-input-color-focus: var(--color-neutrals-foreground-primary, #00131c);
|
|
27
|
-
--sl-input-color-hover: var(--color-neutrals-foreground-primary, #00131c);
|
|
28
|
-
--sl-input-color-disabled: var(--color-interactive-secondary-foreground-disabled, #00131c);
|
|
29
|
-
--sl-input-icon-color: var(--color-neutrals-foreground-primary, #00131c);
|
|
30
|
-
--sl-input-icon-color-hover: var(--color-neutrals-foreground-primary, #00131c);
|
|
31
|
-
--sl-input-icon-color-focus: var(--color-neutrals-foreground-primary, #00131c);
|
|
32
|
-
--sl-input-placeholder-color: var(--sl-color-neutral-500);
|
|
33
|
-
--sl-input-placeholder-color-disabled: var(--color-interactive-secondary-foreground-disabled, #00131c);
|
|
34
|
-
--sl-input-focus-ring-color: var(--color-interactive-links-focus);
|
|
35
|
-
--sl-input-border-color: var(--color-neutrals-border-default, #878c94);
|
|
36
|
-
--sl-input-border-color-focus: var(--color-interactive-links-focus);
|
|
37
|
-
--sl-input-border-color-hover: var(--color-neutrals-border-subtle, #c8eaf9);
|
|
38
|
-
--sl-input-border-color-disabled: var(--color-neutrals-border-disabled, #878c94);
|
|
39
|
-
--sl-input-focus-ring-offset: -1px;
|
|
40
|
-
|
|
41
|
-
--sl-input-filled-background-color: var(--color-neutrals-background-primary-contrast, #eff8fc);
|
|
42
|
-
--sl-input-filled-background-color-hover: var(--color-neutrals-background-primary-contrast, #eff8fc);
|
|
43
|
-
--sl-input-filled-background-color-focus: var(--color-neutrals-background-primary-contrast, #eff8fc);
|
|
44
|
-
--sl-input-filled-background-color-disabled: var(--color-neutrals-background-primary-contrast, #eff8fc);
|
|
45
|
-
--sl-input-filled-color: var(--color-neutrals-foreground-primary, #00131c);
|
|
46
|
-
--sl-input-filled-color-hover: var(--color-neutrals-foreground-primary, #00131c);
|
|
47
|
-
--sl-input-filled-color-focus: var(--color-neutrals-foreground-primary, #00131c);
|
|
48
|
-
--sl-input-filled-color-disabled: var(--color-interactive-secondary-foreground-disabled, #00131c);
|
|
49
|
-
|
|
50
|
-
--sl-input-font-family: var(--sl-font-sans);
|
|
51
|
-
--sl-input-font-weight: var(--sl-font-weight-normal);
|
|
52
|
-
--sl-input-font-size-small: var(--sl-font-size-small);
|
|
53
|
-
--sl-input-font-size-medium: var(--sl-font-size-medium);
|
|
54
|
-
--sl-input-font-size-large: var(--sl-font-size-large);
|
|
55
|
-
--sl-input-letter-spacing: var(--sl-letter-spacing-normal);
|
|
56
13
|
}
|
|
57
14
|
|
|
58
15
|
/* Brukes på lenkene som ikke er i Shadow-DOMen som f.eks de som skal wrappe <nve-link-card> */
|
|
@@ -60,14 +17,15 @@ a {
|
|
|
60
17
|
color: var(--color-neutrals-foreground-primary, #0d0d0e);
|
|
61
18
|
}
|
|
62
19
|
|
|
63
|
-
/* Brukes for å fjerne standard linje i <a> som ikke er i Shadow-DOMen som f.eks de som skal wrappe <nve-link-card> */
|
|
64
|
-
a:has(nve-link-card)
|
|
20
|
+
/* Brukes for å fjerne standard linje i <a> som ikke er i Shadow-DOMen som f.eks de som skal wrappe <nve-link-card> og <nve-navigation-card> */
|
|
21
|
+
a:has(nve-link-card),
|
|
22
|
+
a:has(nve-navigation-card) {
|
|
65
23
|
text-decoration: unset;
|
|
66
24
|
}
|
|
67
25
|
|
|
68
26
|
/* Brukes for å overskrive standard lenke visited styling som ikke er i Shadow-DOMen som f.eks de som skal wrappe <nve-link-card> */
|
|
69
27
|
a:visited {
|
|
70
|
-
color: var(--color-interactive-
|
|
28
|
+
color: var(--color-interactive-foreground-link-visited);
|
|
71
29
|
}
|
|
72
30
|
|
|
73
31
|
/* Brukes i nve-alert for å vise toast*/
|