nve-designsystem 0.1.28 → 0.1.30

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.
@@ -0,0 +1,22 @@
1
+ import { SlBadge } from '@shoelace-style/shoelace';
2
+ /**
3
+ * En sl-badge med Nve utvidelse.
4
+ * Mer info: https://shoelace.style/components/badge
5
+ * Kan også brukes med knappen som i Shoelace
6
+ * Importerer ingen styles fra shoelace derfor pill og pulse property skal ikke fungere.
7
+ * @property {string} size = small, medium eller large
8
+ * @property {boolean} low = viser svakere farger på badgen
9
+ */
10
+ export default class NveBadge extends SlBadge {
11
+ static styles: import("lit").CSSResult[];
12
+ constructor();
13
+ /** Størrelse på komponenten */
14
+ size: 'small' | 'medium' | 'large';
15
+ /** Viser Low variant, High er default */
16
+ low: boolean;
17
+ }
18
+ declare global {
19
+ interface HTMLElementTagNameMap {
20
+ 'nve-badge': NveBadge;
21
+ }
22
+ }
package/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /** Alle komponenter som er tilgjengelige, i alfabetisk rekkefølge. */
2
2
  export { default as NveAlert } from './components/nve-alert/nve-alert.component';
3
+ export { default as NveBadge } from './components/nve-badge/nve-badge.component';
3
4
  export { default as NveButton } from './components/nve-button/nve-button.component';
4
5
  export { default as NveCheckbox } from './components/nve-checkbox/nve-checkbox.component';
5
6
  export { default as NveCheckboxGroup } from './components/nve-checkbox-group/nve-checkbox-group.component';