@dile/ui 2.25.2 → 2.25.4
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.
|
@@ -57,7 +57,7 @@ export class DileAppDrawer extends DileCloseOnEscPressed(LitElement) {
|
|
|
57
57
|
position: fixed;
|
|
58
58
|
box-sizing: border-box;
|
|
59
59
|
z-index: var(--dile-app-drawer-z-index, 99);
|
|
60
|
-
background-color: var(--dile-primary-light-color, #ddd);
|
|
60
|
+
background-color: var(--dile-app-drawer-background-color, var(--dile-primary-light-color, #ddd));
|
|
61
61
|
transition: transform 0.3s ease;
|
|
62
62
|
overflow: auto;
|
|
63
63
|
}
|
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "2.25.4",
|
|
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": "
|
|
29
|
+
"gitHead": "bee395534b845e42cb7a4f493ba50bbc9a13944d"
|
|
30
30
|
}
|