sveltekit-ui 1.0.64 → 1.0.66

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.
@@ -21,16 +21,23 @@
21
21
 
22
22
  <div class="container">
23
23
  <div style="display: flex; flex: 1; gap: 1rem; justify-content: space-between;">
24
- <div style="display: flex; align-items: center; gap: 1rem; flex: 1;">
24
+ <div style="display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0;">
25
25
  <Icon manager={manager?.val_prepped?.icon_manager} />
26
- <div class="text_container" >
27
- <p class="file_name">{manager?.val_prepped?.name}</p> sometimes this name is too long and that download button gets pushed outside div but we need max width reached to hold that download on right and this text gets the ellipsees or something
28
- <p style="margin-top: 0; line-height: 1.4rem; color: var(--g10-t); font-size: 1.2rem;">{manager?.val_prepped?.content_type} <span style="color: var(--g6-t); font-size: 1.2rem; margin-left: 1rem;">{manager?.val_prepped?.content ? `${Math.round(((manager?.val_prepped?.content.length * 3) / 4) * 0.001)}KB` : ""}</span></p>
26
+ <div class="text_container">
27
+ <p class="file_name">{manager?.val_prepped?.name}</p>
28
+ <p style="margin-top: 0; line-height: 1.4rem; color: var(--g10-t); font-size: 1.2rem;">
29
+ {manager?.val_prepped?.content_type}
30
+ <span style="color: var(--g6-t); font-size: 1.2rem; margin-left: 1rem;"
31
+ >{manager?.val_prepped?.content
32
+ ? `${Math.round(((manager?.val_prepped?.content.length * 3) / 4) * 0.001)}KB`
33
+ : ""}</span
34
+ >
35
+ </p>
29
36
  </div>
30
37
  </div>
31
38
  <div style="display: flex; gap: .5rem; flex-shrink: 0;">
32
39
  <Button manager={manager?.download_button_manager} />
33
- {#if ["image/webp", "image/jpeg", "image/png", "image/gif", "audio/mpeg", "audio/wav", "audio/ogg", "audio/aac","application/json"].includes(manager?.val_prepped?.content_type)}
40
+ {#if ["image/webp", "image/jpeg", "image/png", "image/gif", "audio/mpeg", "audio/wav", "audio/ogg", "audio/aac", "application/json"].includes(manager?.val_prepped?.content_type)}
34
41
  <Button manager={manager?.show_content_button_manager} />
35
42
  {/if}
36
43
  </div>
@@ -40,16 +47,16 @@
40
47
  {/if}
41
48
  </div>
42
49
 
43
- <Popover manager={manager?.show_content_popover_manager} >
50
+ <Popover manager={manager?.show_content_popover_manager}>
44
51
  {#snippet content()}
45
52
  {@render display_content()}
46
53
  {/snippet}
47
54
  </Popover>
48
55
 
49
56
  <style>
50
- .container{
57
+ .container {
51
58
  border-radius: 1.5rem;
52
- padding: .5rem 1rem;
59
+ padding: 0.5rem 1rem;
53
60
  border: 1px solid var(--shadow5-t);
54
61
  }
55
62
  .file_name {
@@ -65,5 +72,6 @@
65
72
  display: flex;
66
73
  flex-direction: column;
67
74
  overflow: hidden;
75
+ min-width: 0;
68
76
  }
69
- </style>
77
+ </style>
@@ -16,7 +16,6 @@ export function create_file_input_manager(config) {
16
16
  "image/webp",
17
17
  "image/gif",
18
18
  "image/avif",
19
- "image/heic",
20
19
  "image/svg+xml",
21
20
  "application/pdf",
22
21
  "video/mp4",
@@ -3210,7 +3210,6 @@ export const definitions = {
3210
3210
  "image/webp",
3211
3211
  "image/gif",
3212
3212
  "image/avif",
3213
- "image/heic",
3214
3213
  "image/svg+xml",
3215
3214
  "application/pdf",
3216
3215
  "video/mp4",
@@ -5,6 +5,7 @@ export const mime_type_extensions = {
5
5
  "image/gif": "gif",
6
6
  "image/bmp": "bmp",
7
7
  "image/tiff": "tiff",
8
+ "image/heic": "heic",
8
9
  "image/svg+xml": "svg",
9
10
  "audio/mpeg": "mp3",
10
11
  "audio/wav": "wav",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltekit-ui",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "A SvelteKit UI component library for building modern web applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,19 +19,19 @@
19
19
  "dependencies": {
20
20
  "context-filter-polyfill": "^0.3.23",
21
21
  "qr-code-styling": "^1.9.2",
22
- "svelte": "^5.39.1"
22
+ "svelte": "^5.39.4"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@sveltejs/kit": "^2.22.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@sveltejs/adapter-vercel": "^5.10.2",
29
- "@sveltejs/kit": "^2.42.1",
30
- "@sveltejs/package": "^2.5.2",
29
+ "@sveltejs/kit": "^2.42.2",
30
+ "@sveltejs/package": "^2.5.3",
31
31
  "@sveltejs/vite-plugin-svelte": "^6.2.0",
32
32
  "@vercel/analytics": "^1.5.0",
33
33
  "typescript": "^5.9.2",
34
- "vite": "^7.1.5"
34
+ "vite": "^7.1.6"
35
35
  },
36
36
  "homepage": "https://www.sveltekit-ui.com",
37
37
  "keywords": [
@@ -21,16 +21,23 @@
21
21
 
22
22
  <div class="container">
23
23
  <div style="display: flex; flex: 1; gap: 1rem; justify-content: space-between;">
24
- <div style="display: flex; align-items: center; gap: 1rem; flex: 1;">
24
+ <div style="display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0;">
25
25
  <Icon manager={manager?.val_prepped?.icon_manager} />
26
- <div class="text_container" >
27
- <p class="file_name">{manager?.val_prepped?.name}</p> sometimes this name is too long and that download button gets pushed outside div but we need max width reached to hold that download on right and this text gets the ellipsees or something
28
- <p style="margin-top: 0; line-height: 1.4rem; color: var(--g10-t); font-size: 1.2rem;">{manager?.val_prepped?.content_type} <span style="color: var(--g6-t); font-size: 1.2rem; margin-left: 1rem;">{manager?.val_prepped?.content ? `${Math.round(((manager?.val_prepped?.content.length * 3) / 4) * 0.001)}KB` : ""}</span></p>
26
+ <div class="text_container">
27
+ <p class="file_name">{manager?.val_prepped?.name}</p>
28
+ <p style="margin-top: 0; line-height: 1.4rem; color: var(--g10-t); font-size: 1.2rem;">
29
+ {manager?.val_prepped?.content_type}
30
+ <span style="color: var(--g6-t); font-size: 1.2rem; margin-left: 1rem;"
31
+ >{manager?.val_prepped?.content
32
+ ? `${Math.round(((manager?.val_prepped?.content.length * 3) / 4) * 0.001)}KB`
33
+ : ""}</span
34
+ >
35
+ </p>
29
36
  </div>
30
37
  </div>
31
38
  <div style="display: flex; gap: .5rem; flex-shrink: 0;">
32
39
  <Button manager={manager?.download_button_manager} />
33
- {#if ["image/webp", "image/jpeg", "image/png", "image/gif", "audio/mpeg", "audio/wav", "audio/ogg", "audio/aac","application/json"].includes(manager?.val_prepped?.content_type)}
40
+ {#if ["image/webp", "image/jpeg", "image/png", "image/gif", "audio/mpeg", "audio/wav", "audio/ogg", "audio/aac", "application/json"].includes(manager?.val_prepped?.content_type)}
34
41
  <Button manager={manager?.show_content_button_manager} />
35
42
  {/if}
36
43
  </div>
@@ -40,16 +47,16 @@
40
47
  {/if}
41
48
  </div>
42
49
 
43
- <Popover manager={manager?.show_content_popover_manager} >
50
+ <Popover manager={manager?.show_content_popover_manager}>
44
51
  {#snippet content()}
45
52
  {@render display_content()}
46
53
  {/snippet}
47
54
  </Popover>
48
55
 
49
56
  <style>
50
- .container{
57
+ .container {
51
58
  border-radius: 1.5rem;
52
- padding: .5rem 1rem;
59
+ padding: 0.5rem 1rem;
53
60
  border: 1px solid var(--shadow5-t);
54
61
  }
55
62
  .file_name {
@@ -65,5 +72,6 @@
65
72
  display: flex;
66
73
  flex-direction: column;
67
74
  overflow: hidden;
75
+ min-width: 0;
68
76
  }
69
- </style>
77
+ </style>
@@ -16,7 +16,6 @@ export function create_file_input_manager(config) {
16
16
  "image/webp",
17
17
  "image/gif",
18
18
  "image/avif",
19
- "image/heic",
20
19
  "image/svg+xml",
21
20
  "application/pdf",
22
21
  "video/mp4",
@@ -3210,7 +3210,6 @@ export const definitions = {
3210
3210
  "image/webp",
3211
3211
  "image/gif",
3212
3212
  "image/avif",
3213
- "image/heic",
3214
3213
  "image/svg+xml",
3215
3214
  "application/pdf",
3216
3215
  "video/mp4",
@@ -5,6 +5,7 @@ export const mime_type_extensions = {
5
5
  "image/gif": "gif",
6
6
  "image/bmp": "bmp",
7
7
  "image/tiff": "tiff",
8
+ "image/heic": "heic",
8
9
  "image/svg+xml": "svg",
9
10
  "audio/mpeg": "mp3",
10
11
  "audio/wav": "wav",
@@ -123,7 +123,7 @@
123
123
  storage: account_storage,
124
124
  // files_to_upload: () => files_to_upload,
125
125
  // storage_src: () => storage_src,
126
- // accept: ["audio/mpeg"],
126
+ // accept: ["im","audio/mpeg"],
127
127
  // is_show_button: true,
128
128
  is_multiselect: true,
129
129
  // is_show_content: false,