@likable-hair/svelte 0.0.70 → 0.0.72
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}
|
|
@@ -84,7 +88,7 @@ function handleRemove(file) {
|
|
|
84
88
|
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
85
89
|
}
|
|
86
90
|
.body-container {
|
|
87
|
-
border: dotted
|
|
91
|
+
border: dotted var(--file-input-list-border-color);
|
|
88
92
|
border-radius: 5px;
|
|
89
93
|
box-sizing: border-box;
|
|
90
94
|
width: calc(100% - 20px);
|
|
@@ -98,7 +102,7 @@ function handleRemove(file) {
|
|
|
98
102
|
overflow-y: auto;
|
|
99
103
|
}
|
|
100
104
|
.active {
|
|
101
|
-
border-color:
|
|
105
|
+
border-color: var(--file-input-list-hover-color);
|
|
102
106
|
}
|
|
103
107
|
.file-active {
|
|
104
108
|
color: var(--selected-color);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script>export let title = "", items = [], hideOnScroll = true, initialRemoveShadow = false, initialBackgroundColor = undefined, backgroundColor = 'white', color = undefined, mobileMenu = true, zIndex = 25;
|
|
1
|
+
<script>export let title = "", items = [], hideOnScroll = true, initialRemoveShadow = false, initialBackgroundColor = undefined, backgroundColor = 'white', color = undefined, drawerBackgroundColor = 'white', drawerColor = undefined, mobileMenu = true, zIndex = 25;
|
|
2
2
|
let scrollY, lastScrollY, visible = true;
|
|
3
3
|
function handleScroll() {
|
|
4
4
|
if (hideOnScroll) {
|
|
@@ -33,8 +33,8 @@ import Drawer from './Drawer.svelte';
|
|
|
33
33
|
{#if mobileMenu }
|
|
34
34
|
<Drawer
|
|
35
35
|
bind:open={openDrawer}
|
|
36
|
-
backgroundColor={
|
|
37
|
-
color={
|
|
36
|
+
backgroundColor={drawerBackgroundColor}
|
|
37
|
+
color={drawerColor}
|
|
38
38
|
items={items}
|
|
39
39
|
on:item-click
|
|
40
40
|
>
|