@likable-hair/svelte 0.0.70 → 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 class="card-container">
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 rgba(0, 0, 0, 0.2);
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: rgba(255,0,0,0.5);
105
+ border-color: var(--file-input-list-hover-color);
102
106
  }
103
107
  .file-active {
104
108
  color: var(--selected-color);
@@ -14,6 +14,8 @@ declare const __propDef: {
14
14
  iconSize?: number;
15
15
  selectedRowColor?: string;
16
16
  selectedRowBackground?: string;
17
+ hoverColor?: string;
18
+ borderColor?: string;
17
19
  };
18
20
  events: {
19
21
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "0.0.70",
4
+ "version": "0.0.71",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",