nve-designsystem 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nve-designsystem",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -34,7 +34,6 @@
34
34
  "@storybook/web-components-vite": "^7.6.4",
35
35
  "@typescript-eslint/eslint-plugin": "^6.12.0",
36
36
  "@typescript-eslint/parser": "^6.12.0",
37
- "esbuild-plugin-tsc": "^0.4.0",
38
37
  "eslint": "^8.54.0",
39
38
  "eslint-config-prettier": "^9.0.0",
40
39
  "eslint-plugin-lit": "^1.10.1",
@@ -1,4 +1,4 @@
1
- import { customElement, property } from 'lit/decorators.js';
1
+ import { customElement } from 'lit/decorators.js';
2
2
  import { css, html, LitElement } from 'lit';
3
3
 
4
4
  /**
@@ -8,10 +8,11 @@ import { css, html, LitElement } from 'lit';
8
8
  */
9
9
  @customElement('nve-icon')
10
10
  export class NveIcon extends LitElement {
11
+ static properties = { name: { type: String } };
11
12
  /**
12
13
  * Navnet på ikonet i Material Symbols-biblioteket
13
14
  */
14
- @property() name = '';
15
+ name = '';
15
16
  static styles = css`
16
17
  :host {
17
18
  /* Apply Material Icons font-family to the Shadow DOM */
package/vite.config.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  // vite.config.ts
2
2
  import { defineConfig } from 'vite';
3
- import esbuildPluginTsc from 'esbuild-plugin-tsc';
4
3
 
5
4
  export default defineConfig({
6
5
  ssr: {
7
6
  external: ['lit/decorators.js'],
8
7
  },
9
- plugins: [esbuildPluginTsc()],
10
8
  });