@dile/ui 2.25.2 → 2.25.3

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.
@@ -79,7 +79,8 @@ export class DileInfoBox extends DileSlideDown(LitElement) {
79
79
  return {
80
80
  showCloseButton: { type: Boolean },
81
81
  title: { type: String },
82
- isError: { type: Boolean}
82
+ isError: { type: Boolean},
83
+ icon: { type: Object},
83
84
  };
84
85
  }
85
86
 
@@ -88,7 +89,7 @@ export class DileInfoBox extends DileSlideDown(LitElement) {
88
89
  <div id="box">
89
90
  <section>
90
91
  <div class="content">
91
- <span class="info">${this.showIcon(this.isError)}</span>
92
+ <span class="info">${this.showIcon(this.isError, this.icon)}</span>
92
93
  <main>
93
94
  ${this.title
94
95
  ? html`<div class="title">${this.title}</div>`
@@ -112,7 +113,10 @@ export class DileInfoBox extends DileSlideDown(LitElement) {
112
113
  this.slideHide(elem);
113
114
  }
114
115
 
115
- showIcon(isError) {
116
- return isError ? html`${warningIcon}` : html`${infoIcon}`
116
+ showIcon(isError, icon = null) {
117
+ if(icon)
118
+ return icon;
119
+ else
120
+ return isError ? html`${warningIcon}` : html`${infoIcon}`;
117
121
  }
118
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/ui",
3
- "version": "2.25.2",
3
+ "version": "2.25.3",
4
4
  "description": "UI Core components from dile-components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,5 +26,5 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "bfb6d4acc0616ecc5654d9b21dbaaa9925d8c4b3"
29
+ "gitHead": "210e3b9f6c0633ace3f52e41990e511cdc61851d"
30
30
  }