sveltekit-ui 1.0.37 → 1.0.38

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.
@@ -9,7 +9,6 @@
9
9
  import FileInput from "../FileInput/index.svelte"
10
10
  import TextInput from "../TextInput/index.svelte"
11
11
  import Dropdown from "../Dropdown/index.svelte"
12
- import TimeInput from "../TimeInput/index.svelte"
13
12
  import StoragePicker from "../StoragePicker/index.svelte"
14
13
 
15
14
  let { manager, extra_buttons } = $props()
@@ -3,13 +3,13 @@
3
3
  import Image from "../../Image/index.svelte"
4
4
  import Icon from "../../Icon/index.svelte"
5
5
 
6
- let { input } = $props()
6
+ let { manager } = $props()
7
7
  </script>
8
8
 
9
- {#if ["audio/mpeg"].includes(input?.mime_type)}
10
- <Audio manager={input?.manager} />
11
- {:else if ["image/webp", "image/jpeg", "image/png", "image/gif"].includes(input?.mime_type)}
12
- <Image manager={input?.manager} />
13
- {:else if input && Object.keys(input || {}).length > 0}
9
+ {#if ["audio/mpeg"].includes(manager?.mime_type)}
10
+ <Audio manager={manager?.manager} />
11
+ {:else if ["image/webp", "image/jpeg", "image/png", "image/gif", "image/svg+xml"].includes(manager?.mime_type)}
12
+ <Image manager={manager?.manager} />
13
+ {:else if manager && Object.keys(manager || {}).length > 0}
14
14
  <Icon manager={manager?.file_icon_manager} />
15
15
  {/if}
@@ -16,7 +16,7 @@
16
16
  <p>{input_item?.file_name}</p>
17
17
  <p style="color: var(--g10-t); font-size: 1.2rem;">{input_item?.mime_type}</p>
18
18
  </div>
19
- <DisplayFile input={input_item} />
19
+ <DisplayFile manager={input_item} />
20
20
  {/each}
21
21
  {:else}
22
22
  {@render display_file(input)}
@@ -29,7 +29,7 @@
29
29
  {/if}
30
30
  {#if manager?.is_show_content}
31
31
  <div style="margin-top: 1rem;">
32
- <DisplayFile input={manager?.display_file} />
32
+ <DisplayFile manager={manager?.display_file} />
33
33
  </div>
34
34
  {/if}
35
35
  <Popover manager={manager?.popover_manager}>
@@ -46,7 +46,7 @@
46
46
  <div class="file_container">
47
47
  <div>
48
48
  <div class="file_display" style="height: {manager?.display_height}rem;">
49
- <DisplayFile input={locally_uploaded_file_prepped} />
49
+ <DisplayFile manager={locally_uploaded_file_prepped} />
50
50
  </div>
51
51
  <div class="file_det">
52
52
  <p>{locally_uploaded_file_prepped?.file?.type}</p>
@@ -85,7 +85,7 @@
85
85
  <div class="file_container">
86
86
  <div>
87
87
  <div style="height: 20rem;">
88
- <DisplayFile input={storage_file_prepped} />
88
+ <DisplayFile manager={storage_file_prepped} />
89
89
  </div>
90
90
  <div class="file_det">
91
91
  <p>{storage_file_prepped?.mime_type}</p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltekit-ui",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "A SvelteKit UI component library for building modern web applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,7 +9,6 @@
9
9
  import FileInput from "$lib/Components/FileInput/index.svelte"
10
10
  import TextInput from "$lib/Components/TextInput/index.svelte"
11
11
  import Dropdown from "$lib/Components/Dropdown/index.svelte"
12
- import TimeInput from "$lib/Components/TimeInput/index.svelte"
13
12
  import StoragePicker from "$lib/Components/StoragePicker/index.svelte"
14
13
 
15
14
  let { manager, extra_buttons } = $props()
@@ -3,13 +3,13 @@
3
3
  import Image from "$lib/Components/Image/index.svelte"
4
4
  import Icon from "$lib/Components/Icon/index.svelte"
5
5
 
6
- let { input } = $props()
6
+ let { manager } = $props()
7
7
  </script>
8
8
 
9
- {#if ["audio/mpeg"].includes(input?.mime_type)}
10
- <Audio manager={input?.manager} />
11
- {:else if ["image/webp", "image/jpeg", "image/png", "image/gif"].includes(input?.mime_type)}
12
- <Image manager={input?.manager} />
13
- {:else if input && Object.keys(input || {}).length > 0}
9
+ {#if ["audio/mpeg"].includes(manager?.mime_type)}
10
+ <Audio manager={manager?.manager} />
11
+ {:else if ["image/webp", "image/jpeg", "image/png", "image/gif", "image/svg+xml"].includes(manager?.mime_type)}
12
+ <Image manager={manager?.manager} />
13
+ {:else if manager && Object.keys(manager || {}).length > 0}
14
14
  <Icon manager={manager?.file_icon_manager} />
15
15
  {/if}
@@ -16,7 +16,7 @@
16
16
  <p>{input_item?.file_name}</p>
17
17
  <p style="color: var(--g10-t); font-size: 1.2rem;">{input_item?.mime_type}</p>
18
18
  </div>
19
- <DisplayFile input={input_item} />
19
+ <DisplayFile manager={input_item} />
20
20
  {/each}
21
21
  {:else}
22
22
  {@render display_file(input)}
@@ -29,7 +29,7 @@
29
29
  {/if}
30
30
  {#if manager?.is_show_content}
31
31
  <div style="margin-top: 1rem;">
32
- <DisplayFile input={manager?.display_file} />
32
+ <DisplayFile manager={manager?.display_file} />
33
33
  </div>
34
34
  {/if}
35
35
  <Popover manager={manager?.popover_manager}>
@@ -46,7 +46,7 @@
46
46
  <div class="file_container">
47
47
  <div>
48
48
  <div class="file_display" style="height: {manager?.display_height}rem;">
49
- <DisplayFile input={locally_uploaded_file_prepped} />
49
+ <DisplayFile manager={locally_uploaded_file_prepped} />
50
50
  </div>
51
51
  <div class="file_det">
52
52
  <p>{locally_uploaded_file_prepped?.file?.type}</p>
@@ -85,7 +85,7 @@
85
85
  <div class="file_container">
86
86
  <div>
87
87
  <div style="height: 20rem;">
88
- <DisplayFile input={storage_file_prepped} />
88
+ <DisplayFile manager={storage_file_prepped} />
89
89
  </div>
90
90
  <div class="file_det">
91
91
  <p>{storage_file_prepped?.mime_type}</p>