@digipair/skill-web-material-icons 0.8.20 → 0.8.22

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/index.cjs.js CHANGED
@@ -1924,19 +1924,15 @@ function n(t) {
1924
1924
  }
1925
1925
 
1926
1926
  class IconElement extends s {
1927
- connectedCallback() {
1928
- super.connectedCallback();
1929
- if (document.querySelector('#digipair-material-icons-css')) {
1930
- return;
1931
- }
1932
- const link = document.createElement('link');
1933
- link.id = 'digipair-material-icons-css';
1934
- link.href = 'https://fonts.googleapis.com/icon?family=Material+Icons';
1935
- link.rel = 'stylesheet';
1936
- document.head.appendChild(link);
1937
- }
1938
1927
  render() {
1939
- return x` <span style=${this.iconStyle}>${this.name}</span> `;
1928
+ return x`
1929
+ <link
1930
+ id="digipair-material-icons-css"
1931
+ href="https://fonts.googleapis.com/icon?family=Material+Icons"
1932
+ rel="stylesheet"
1933
+ />
1934
+ <span class="material-icons" style=${this.iconStyle}>${this.name}</span>
1935
+ `;
1940
1936
  }
1941
1937
  constructor(...args){
1942
1938
  super(...args);
package/index.esm.js CHANGED
@@ -1920,19 +1920,15 @@ function n(t) {
1920
1920
  }
1921
1921
 
1922
1922
  class IconElement extends s {
1923
- connectedCallback() {
1924
- super.connectedCallback();
1925
- if (document.querySelector('#digipair-material-icons-css')) {
1926
- return;
1927
- }
1928
- const link = document.createElement('link');
1929
- link.id = 'digipair-material-icons-css';
1930
- link.href = 'https://fonts.googleapis.com/icon?family=Material+Icons';
1931
- link.rel = 'stylesheet';
1932
- document.head.appendChild(link);
1933
- }
1934
1923
  render() {
1935
- return x` <span style=${this.iconStyle}>${this.name}</span> `;
1924
+ return x`
1925
+ <link
1926
+ id="digipair-material-icons-css"
1927
+ href="https://fonts.googleapis.com/icon?family=Material+Icons"
1928
+ rel="stylesheet"
1929
+ />
1930
+ <span class="material-icons" style=${this.iconStyle}>${this.name}</span>
1931
+ `;
1936
1932
  }
1937
1933
  constructor(...args){
1938
1934
  super(...args);
@@ -2,6 +2,5 @@ import { LitElement, TemplateResult } from 'lit';
2
2
  export declare class IconElement extends LitElement {
3
3
  name: string;
4
4
  iconStyle: string;
5
- connectedCallback(): void;
6
5
  render(): TemplateResult;
7
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-material-icons",
3
- "version": "0.8.20",
3
+ "version": "0.8.22",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.0.0",
3
3
  "info": {
4
4
  "title": "@digipair/skill-web-material-icons",
5
- "summary": "Affichage d'icones material'",
5
+ "summary": "Affichage d'icones material",
6
6
  "description": "Affichage des icones material.",
7
7
  "version": "0.1.0",
8
8
  "x-icon": "🎨"
@@ -31,6 +31,15 @@
31
31
  "schema": {
32
32
  "type": "object"
33
33
  }
34
+ },
35
+ {
36
+ "name": "slot",
37
+ "summary": "Slot",
38
+ "required": false,
39
+ "description": "Emplacement de l'icone",
40
+ "schema": {
41
+ "type": "string"
42
+ }
34
43
  }
35
44
  ],
36
45
  "x-events": []