@likable-hair/svelte 0.0.69 → 0.0.71
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script>import Button from "../buttons/Button.svelte";
|
|
2
2
|
import FileInput from "./FileInput.svelte";
|
|
3
3
|
import Icon from "../media/Icon.svelte";
|
|
4
|
-
export let files = undefined, persistOverUpload = true, height = "100%", width = "100%", backgroundColor = "rgba(255,255,255,0)", textColor = "rgba(0,0,0,0.7)", rounded = true, focusShadow = undefined, dropAreaActive = true, icon = "mdi-folder", iconSize = 30, selectedRowColor = "red", selectedRowBackground = "rgba(0,0,0,0.1)";
|
|
4
|
+
export let files = undefined, persistOverUpload = true, height = "100%", width = "100%", backgroundColor = "rgba(255,255,255,0)", textColor = "rgba(0,0,0,0.7)", rounded = true, focusShadow = undefined, dropAreaActive = true, icon = "mdi-folder", iconSize = 30, selectedRowColor = "red", selectedRowBackground = "rgba(0,0,0,0.1)", hoverColor = "rgba(255,0,0,0.5)", borderColor = "rgba(0, 0, 0, 0.2)";
|
|
5
5
|
let fileActive = null;
|
|
6
6
|
function handleFileMouseEnter(file) {
|
|
7
7
|
dropAreaActive = false;
|
|
@@ -21,7 +21,11 @@ function handleRemove(file) {
|
|
|
21
21
|
}
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
|
-
<div
|
|
24
|
+
<div
|
|
25
|
+
class="card-container"
|
|
26
|
+
style:--file-input-list-hover-color={hoverColor}
|
|
27
|
+
style:--file-input-list-border-color={borderColor}
|
|
28
|
+
>
|
|
25
29
|
<FileInput
|
|
26
30
|
{persistOverUpload}
|
|
27
31
|
{height}
|
|
@@ -80,13 +84,11 @@ function handleRemove(file) {
|
|
|
80
84
|
justify-content: center;
|
|
81
85
|
align-items: center;
|
|
82
86
|
flex-direction: column;
|
|
83
|
-
height: 100vh;
|
|
84
|
-
width: 100vw;
|
|
85
87
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
|
86
88
|
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
87
89
|
}
|
|
88
90
|
.body-container {
|
|
89
|
-
border: dotted
|
|
91
|
+
border: dotted var(--file-input-list-border-color);
|
|
90
92
|
border-radius: 5px;
|
|
91
93
|
box-sizing: border-box;
|
|
92
94
|
width: calc(100% - 20px);
|
|
@@ -100,7 +102,7 @@ function handleRemove(file) {
|
|
|
100
102
|
overflow-y: auto;
|
|
101
103
|
}
|
|
102
104
|
.active {
|
|
103
|
-
border-color:
|
|
105
|
+
border-color: var(--file-input-list-hover-color);
|
|
104
106
|
}
|
|
105
107
|
.file-active {
|
|
106
108
|
color: var(--selected-color);
|