@skeletonlabs/skeleton 2.2.0-dev.75b7ea14 → 2.2.0-dev.caa9946c

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,11 +1,10 @@
1
1
  <script>export let files = void 0;
2
- export let fileInput = void 0;
3
2
  export let name;
4
3
  export let width = "";
5
4
  export let button = "btn variant-filled";
5
+ let elemFileInput;
6
6
  function onButtonClick() {
7
- if (fileInput)
8
- fileInput.click();
7
+ elemFileInput.click();
9
8
  }
10
9
  function prunedRestProps() {
11
10
  delete $$restProps.class;
@@ -20,7 +19,7 @@ $:
20
19
  <div class="file-button {classesBase}" data-testid="file-button">
21
20
  <!-- NOTE: Don't use `hidden` as it prevents `required` from operating -->
22
21
  <div class="w-0 h-0 overflow-hidden">
23
- <input type="file" bind:this={fileInput} bind:files {name} {...prunedRestProps()} on:change />
22
+ <input type="file" bind:this={elemFileInput} bind:files {name} {...prunedRestProps()} on:change />
24
23
  </div>
25
24
  <!-- Button -->
26
25
  <button
@@ -4,8 +4,6 @@ declare const __propDef: {
4
4
  [x: string]: any;
5
5
  /** Bind FileList to the file input.*/
6
6
  files?: FileList | undefined;
7
- /** File input reference.*/
8
- fileInput?: HTMLInputElement | undefined;
9
7
  /** Required. Set a unique name for the file input.*/
10
8
  name: string;
11
9
  /** Provide classes to set the width.*/
@@ -1,5 +1,4 @@
1
1
  <script>export let files = void 0;
2
- export let fileInput = void 0;
3
2
  export let name;
4
3
  export let border = "border-2 border-dashed";
5
4
  export let padding = "p-4 py-8";
@@ -29,7 +28,6 @@ function prunedRestProps() {
29
28
  <!-- NOTE: keep `bind:files` here, unlike FileButton -->
30
29
  <input
31
30
  bind:files
32
- bind:this={fileInput}
33
31
  type="file"
34
32
  {name}
35
33
  class="dropzone-input {classesInput}"
@@ -43,9 +41,6 @@ function prunedRestProps() {
43
41
  on:keydown
44
42
  on:keyup
45
43
  on:keypress
46
- on:focus
47
- on:focusin
48
- on:focusout
49
44
  />
50
45
  <!-- Interface -->
51
46
  <div class="dropzone-interface {classesInterface} {regionInterface}">
@@ -4,8 +4,6 @@ declare const __propDef: {
4
4
  [x: string]: any;
5
5
  /** Bind FileList to the file input.*/
6
6
  files?: FileList | undefined;
7
- /** File input reference.*/
8
- fileInput?: HTMLInputElement | undefined;
9
7
  /** Required. Set a unique name for the file input.*/
10
8
  name: string;
11
9
  /** Provide classes to set the border styles.*/
@@ -35,9 +33,6 @@ declare const __propDef: {
35
33
  keydown: KeyboardEvent;
36
34
  keyup: KeyboardEvent;
37
35
  keypress: KeyboardEvent;
38
- focus: FocusEvent;
39
- focusin: FocusEvent;
40
- focusout: FocusEvent;
41
36
  } & {
42
37
  [evt: string]: CustomEvent<any>;
43
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.2.0-dev.75b7ea14",
3
+ "version": "2.2.0-dev.caa9946c",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {