nve-designsystem 0.1.17 → 0.1.19

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,15 @@
1
+ import { SlOption } from '@shoelace-style/shoelace';
2
+ /**
3
+ * En Shoelace-option i NVE-forkledning.
4
+ * Se https://shoelace.style/components/option
5
+ */
6
+ export default class NveOption extends SlOption {
7
+ constructor();
8
+ static styles: import("lit").CSSResultGroup[];
9
+ firstUpdated(changedProperties: any): void;
10
+ }
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ 'nve-option': NveOption;
14
+ }
15
+ }
@@ -0,0 +1,19 @@
1
+ import { SlSelect } from '@shoelace-style/shoelace';
2
+ /**
3
+ * En Shoelace-select i NVE-forkledning.
4
+ * Se https://shoelace.style/components/select
5
+ */
6
+ export default class NveSelect extends SlSelect {
7
+ constructor();
8
+ static styles: import("lit").CSSResultGroup[];
9
+ protected firstUpdated(changedProperties: any): void;
10
+ private handleOptionClick;
11
+ private handleDefaultSlotChange;
12
+ private getAllOptions;
13
+ private getFirstOption;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'nve-select': NveSelect;
18
+ }
19
+ }
@@ -1,6 +1,9 @@
1
1
  import { SlTooltip } from '@shoelace-style/shoelace';
2
2
  /**
3
- * En sl-tooltip i NVE-uniform. TODO: Denne har ingen NVE-styling ennå.
3
+ * En sl-tooltip i NVE-uniform.
4
+ * Mer info: https://shoelace.style/components/tooltip
5
+ *
6
+ * TODO: Denne har ingen NVE-styling ennå.
4
7
  */
5
8
  export default class NveTooltip extends SlTooltip {
6
9
  constructor();
package/index.d.ts CHANGED
@@ -15,3 +15,5 @@ export { default as NveRadioButton } from './components/nve-radio-button/nve-rad
15
15
  export { default as NveRadioGroup } from './components/nve-radio-group/nve-radio-group.component';
16
16
  export { default as NveSpinner } from './components/nve-spinner/nve-spinner.component';
17
17
  export { default as NveTooltip } from './components/nve-tooltip/nve-tooltip.component';
18
+ export { default as NveSelect } from './components/nve-select/nve-select.component';
19
+ export { default as NveOption } from './components/nve-option/nve-option.component';