@likable-hair/svelte 3.1.44 → 3.1.45

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.
@@ -63,6 +63,7 @@ function handleFileFromInput(event) {
63
63
  }}
64
64
  class:disabled
65
65
  class="drop-area {clazz}"
66
+ role="presentation"
66
67
  >
67
68
  <slot name="body" active={dropAreaActive}>
68
69
  <span> { placeholder || 'Drop file here or click to upload'} </span>
@@ -73,6 +74,7 @@ function handleFileFromInput(event) {
73
74
  multiple
74
75
  bind:this={inputElement}
75
76
  on:input={handleFileFromInput}
77
+ on:change
76
78
  {disabled}
77
79
  />
78
80
  </div>
@@ -11,6 +11,7 @@ declare const __propDef: {
11
11
  maxFiles?: number | undefined;
12
12
  };
13
13
  events: {
14
+ change: Event;
14
15
  fileDrop: CustomEvent<{
15
16
  nativeEvent: DragEvent;
16
17
  files: File[];
@@ -35,7 +35,8 @@ function handleRemove(file) {
35
35
  --file-input-color="var(--file-input-list-color,var(--file-input-list-default-color))"
36
36
  --file-input-height="var(--file-input-list-height,var(--file-input-list-default-height))"
37
37
  --file-input-width="var(--file-input-list-width,var(--file-input-list-default-width))"
38
- {maxFiles}
38
+ on:change
39
+ {maxFiles}
39
40
  >
40
41
  <span
41
42
  slot="body"
@@ -12,6 +12,8 @@ declare const __propDef: {
12
12
  maxFiles?: number | undefined;
13
13
  };
14
14
  events: {
15
+ change: Event;
16
+ } & {
15
17
  [evt: string]: CustomEvent<any>;
16
18
  };
17
19
  slots: {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair and others",
4
- "version": "3.1.44",
4
+ "version": "3.1.45",
5
5
  "scripts": {
6
6
  "host": "vite --host",
7
7
  "dev": "vite dev",