@dile/ui 2.17.0 → 2.18.0
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.
|
@@ -8,14 +8,10 @@ export class DileCard extends LitElement {
|
|
|
8
8
|
}
|
|
9
9
|
:host {
|
|
10
10
|
display: block;
|
|
11
|
-
align-items: stretch;
|
|
12
|
-
}
|
|
13
|
-
section {
|
|
14
11
|
border: var(--dile-card-border, 1px solid #ccc);
|
|
15
12
|
border-radius: var(--dile-card-border-radius, 0.5rem);
|
|
16
13
|
background-color: var(--dile-card-background-color, #fff);
|
|
17
14
|
color: var(--dile-card-text-color, #303030);
|
|
18
|
-
width: 100%;
|
|
19
15
|
text-align: var(--dile-card-text-align, left);
|
|
20
16
|
font-weight: var(--dile-card-font-weight, normal);
|
|
21
17
|
box-shadow: var(--dile-card-box-shadow, 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1));
|
|
@@ -45,22 +41,22 @@ export class DileCard extends LitElement {
|
|
|
45
41
|
border-bottom-left-radius: var(--dile-card-border-radius, 0.5rem);
|
|
46
42
|
border-bottom-right-radius: var(--dile-card-border-radius, 0.5rem);
|
|
47
43
|
}
|
|
48
|
-
:host([shadow-none])
|
|
44
|
+
:host([shadow-none]) {
|
|
49
45
|
box-shadow: var(--dile-card-box-shadow, 0 0 #0000);
|
|
50
46
|
}
|
|
51
|
-
:host([shadow-sm])
|
|
47
|
+
:host([shadow-sm]) {
|
|
52
48
|
box-shadow: var(--dile-card-box-shadow, 0 1px 2px 0 rgb(0 0 0 / 0.05));
|
|
53
49
|
}
|
|
54
|
-
:host([shadow-md])
|
|
50
|
+
:host([shadow-md]) {
|
|
55
51
|
box-shadow: var(--dile-card-box-shadow, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));
|
|
56
52
|
}
|
|
57
|
-
:host([shadow-lg])
|
|
53
|
+
:host([shadow-lg]) {
|
|
58
54
|
box-shadow: var(--dile-card-box-shadow, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));
|
|
59
55
|
}
|
|
60
|
-
:host([shadow-xl])
|
|
56
|
+
:host([shadow-xl]) {
|
|
61
57
|
box-shadow: var(--dile-card-box-shadow, 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1));
|
|
62
58
|
}
|
|
63
|
-
:host([shadow-2xl])
|
|
59
|
+
:host([shadow-2xl]) {
|
|
64
60
|
box-shadow: var(--dile-card-box-shadow, 0 25px 50px -12px rgb(0 0 0 / 0.25));
|
|
65
61
|
}
|
|
66
62
|
|
|
@@ -75,13 +71,11 @@ export class DileCard extends LitElement {
|
|
|
75
71
|
|
|
76
72
|
render() {
|
|
77
73
|
return html`
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
${this.footerTemplate}
|
|
84
|
-
</section>
|
|
74
|
+
${this.titleTemplate}
|
|
75
|
+
<main>
|
|
76
|
+
<slot></slot>
|
|
77
|
+
</main>
|
|
78
|
+
${this.footerTemplate}
|
|
85
79
|
`;
|
|
86
80
|
}
|
|
87
81
|
|
|
@@ -186,6 +186,10 @@ export class DileDropFile extends DileEmmitChange(LitElement) {
|
|
|
186
186
|
if(this.allowedExtensions.length === 0) {
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
|
+
// If wildcard '*' is present, allow any extension
|
|
190
|
+
if(this.allowedExtensions.includes('*')) {
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
189
193
|
const extension = fileName.split('.').pop().toLowerCase();
|
|
190
194
|
if(this.allowedExtensions.includes(extension)) {
|
|
191
195
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dile/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0",
|
|
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": "94879cea5e40ec66f9e18d617dd58334318ea35d"
|
|
30
30
|
}
|