tek-ms-header 1.0.11 → 1.0.12

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.
@@ -1,6 +1,6 @@
1
- import type { Entreprise, Seller } from '../model';
1
+ import type { Entreprise, Profil } from '../model';
2
2
  export declare class Header {
3
3
  private el;
4
4
  constructor(mountPoint: HTMLElement);
5
- render(entreprise: Entreprise, seller: Seller): void;
5
+ render(entreprise: Entreprise, seller: Profil): void;
6
6
  }
@@ -1,3 +1,3 @@
1
- import type { Entreprise, Seller } from '../model';
1
+ import type { Entreprise, Profil } from '../model';
2
2
  export declare const mockedEntreprise: Entreprise;
3
- export declare const mockedSeller: Seller;
3
+ export declare const mockedSeller: Profil;
@@ -3,10 +3,10 @@ export interface Entreprise {
3
3
  secondName: string;
4
4
  icone?: string;
5
5
  }
6
- export interface Seller {
6
+ export interface Profil {
7
7
  name: string;
8
8
  role: string;
9
9
  dailySalesTotal: number;
10
10
  svgAvatar?: string;
11
- stringAvatar: string;
11
+ tag: string;
12
12
  }
package/dist/ms-header.js CHANGED
@@ -7,7 +7,7 @@ var e = {
7
7
  name: "Tesia M.",
8
8
  role: "Vendeur · Zone Nord",
9
9
  dailySalesTotal: 5660,
10
- stringAvatar: "TS",
10
+ tag: "TS",
11
11
  svgAvatar: "\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" width=\"24\" height=\"24\" fill=\"white\">\n <circle cx=\"12\" cy=\"8\" r=\"4\"/>\n <path d=\"M12 14c-4.42 0-8 3.13-8 7h16c0-3.87-3.58-7-8-7z\"/>\n </svg>"
12
12
  };
13
13
  //#endregion
@@ -45,7 +45,7 @@ var a = class {
45
45
  </div>
46
46
  <div class="header-right">
47
47
  <div class="seller">
48
- <div class="avatar">${t.stringAvatar}</div>
48
+ <div class="avatar">${t.tag}</div>
49
49
  <div class="seller-text">
50
50
  <div class="name">${t.name}</div>
51
51
  <div class="role">${t.role}</div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tek-ms-header",
3
3
  "private": false,
4
- "version": "v1.0.11",
4
+ "version": "v1.0.12",
5
5
  "type": "module",
6
6
  "main": "./dist/ms-header.js",
7
7
  "module": "./dist/ms-header.js",