@dile/ui 3.18.3 → 3.18.5
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.
|
@@ -3,16 +3,18 @@ import { DileCard } from './DileCard.js';
|
|
|
3
3
|
import { DileSlideDown } from '../../../mixins/slide-down/index.js';
|
|
4
4
|
import { arrowDropDownIcon } from '@dile/icons';
|
|
5
5
|
import '@dile/ui/components/icon/icon.js';
|
|
6
|
+
import '@dile/iconlib/dile-iconlib.js';
|
|
6
7
|
|
|
7
8
|
export class DileCardSlide extends DileSlideDown(DileCard) {
|
|
8
9
|
static get properties() {
|
|
9
10
|
return {
|
|
10
11
|
opened: { type: Boolean },
|
|
11
12
|
icon: { type: Object },
|
|
13
|
+
decorativeIcon: { type: String },
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
static get styles() {
|
|
16
18
|
return [
|
|
17
19
|
...super.styles,
|
|
18
20
|
css`
|
|
@@ -41,6 +43,15 @@ export class DileCardSlide extends DileSlideDown(DileCard) {
|
|
|
41
43
|
transition: height 0.5s ease-in;
|
|
42
44
|
-webkit-transition: height 0.5s ease-in;
|
|
43
45
|
}
|
|
46
|
+
.decorative-icon {
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
margin-right: 0.5rem;
|
|
49
|
+
--dile-icon-size: var(--dile-card-slide-decorative-icon-size, 24px);
|
|
50
|
+
--dile-icon-color: var(--dile-card-slide-decorative-icon-color, var(--dile-primary-dark-color, #303030));
|
|
51
|
+
}
|
|
52
|
+
.card-title-text {
|
|
53
|
+
flex-grow: 1;
|
|
54
|
+
}
|
|
44
55
|
dile-icon {
|
|
45
56
|
flex-shrink: 0;
|
|
46
57
|
transform: rotate(-90deg);
|
|
@@ -93,7 +104,8 @@ export class DileCardSlide extends DileSlideDown(DileCard) {
|
|
|
93
104
|
? html`
|
|
94
105
|
<div class="card-title" role="heading" aria-level="${this.titleLevel}">
|
|
95
106
|
<button @click="${this.toggle}" class="${this.opened ? 'opened' : ''}" aria-expanded="${this.opened ? 'true' : 'false'}" aria-controls="${this._contentId}">
|
|
96
|
-
|
|
107
|
+
${this.decorativeIcon ? html`<dile-iconlib class="decorative-icon" icon=${this.decorativeIcon} aria-hidden="true"></dile-iconlib>` : ''}
|
|
108
|
+
<span class="card-title-text">${this.title}</span>
|
|
97
109
|
<dile-icon .icon=${this.icon}></dile-icon>
|
|
98
110
|
</button>
|
|
99
111
|
</div>`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/ui",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.5",
|
|
4
4
|
"description": "UI Core components from dile-components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "49f740275cc480045fee98068c8ee8327dcb4d0d"
|
|
32
32
|
}
|