nve-designsystem 0.1.35 → 0.1.37
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/components/nve-checkbox/nve-checkbox.component.d.ts +4 -1
- package/components/nve-radio/nve-radio.component.d.ts +2 -1
- package/components/nve-radio-button/nve-radio-button.component.d.ts +4 -0
- package/components/nve-radio-group/nve-radio-group.component.d.ts +2 -1
- package/nve-designsystem.js +2 -3
- package/nve-designsystem.umd.cjs +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { SlCheckbox } from '@shoelace-style/shoelace';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* En sl-checkbox.
|
|
4
|
+
* Mer info: https://shoelace.style/components/checkbox
|
|
5
|
+
* Kan brukes akkurat som en vanlig sl-checkbox komponent.
|
|
6
|
+
* Vi burde ikke justere størrelsen på den siden det finnes bare en 'size' alternativ i design systemet.
|
|
4
7
|
*/
|
|
5
8
|
export default class NveCheckbox extends SlCheckbox {
|
|
6
9
|
constructor();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SlRadio } from '@shoelace-style/shoelace';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* En sl-radio med NVE design.
|
|
4
|
+
* Se https://shoelace.style/components/radio
|
|
4
5
|
*
|
|
5
6
|
* @extends SlRadio
|
|
6
7
|
*
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { SlRadioButton } from '@shoelace-style/shoelace';
|
|
2
|
+
/**
|
|
3
|
+
* En sl-radio-button med NVE design.
|
|
4
|
+
* Se https://shoelace.style/components/radio-button
|
|
5
|
+
*/
|
|
2
6
|
export default class NveRadioButton extends SlRadioButton {
|
|
3
7
|
constructor();
|
|
4
8
|
static styles: import("lit").CSSResultGroup[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SlRadioGroup } from '@shoelace-style/shoelace';
|
|
2
2
|
import { PropertyValues } from 'lit';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* En sl-radio-group i NVE-forkledning.
|
|
5
|
+
* Se https://shoelace.style/components/radio-group
|
|
5
6
|
* Denne komponenten tillater bruk av nve-radio og nve-radio-button elementer inne i <nve-radio-group></nve-radio-group>
|
|
6
7
|
* ved å overstyre noen private metoder i SlRadioGroup.
|
|
7
8
|
*
|
package/nve-designsystem.js
CHANGED
|
@@ -17475,12 +17475,12 @@ const Pd = $`
|
|
|
17475
17475
|
|
|
17476
17476
|
:host::part(message)::after {
|
|
17477
17477
|
content: var(--nve-alert-text);
|
|
17478
|
-
font: var(--body-medium
|
|
17478
|
+
font: var(--body-medium);
|
|
17479
17479
|
}
|
|
17480
17480
|
|
|
17481
17481
|
:host::part(message)::before {
|
|
17482
17482
|
content: var(--nve-alert-title);
|
|
17483
|
-
font: var(--
|
|
17483
|
+
font: var(--label-large));
|
|
17484
17484
|
white-space: nowrap;
|
|
17485
17485
|
}
|
|
17486
17486
|
|
|
@@ -18929,7 +18929,6 @@ let Ao = class extends ei {
|
|
|
18929
18929
|
constructor() {
|
|
18930
18930
|
super();
|
|
18931
18931
|
}
|
|
18932
|
-
// TODO: style nve-radio-button
|
|
18933
18932
|
};
|
|
18934
18933
|
Ao.styles = [ei.styles];
|
|
18935
18934
|
Ao = Bh([
|
package/nve-designsystem.umd.cjs
CHANGED
|
@@ -7036,12 +7036,12 @@
|
|
|
7036
7036
|
|
|
7037
7037
|
:host::part(message)::after {
|
|
7038
7038
|
content: var(--nve-alert-text);
|
|
7039
|
-
font: var(--body-medium
|
|
7039
|
+
font: var(--body-medium);
|
|
7040
7040
|
}
|
|
7041
7041
|
|
|
7042
7042
|
:host::part(message)::before {
|
|
7043
7043
|
content: var(--nve-alert-title);
|
|
7044
|
-
font: var(--
|
|
7044
|
+
font: var(--label-large));
|
|
7045
7045
|
white-space: nowrap;
|
|
7046
7046
|
}
|
|
7047
7047
|
|