@budibase/bbui 1.0.46-alpha.7 → 1.0.48

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/bbui",
3
3
  "description": "A UI solution used in the different Budibase projects.",
4
- "version": "1.0.46-alpha.7",
4
+ "version": "1.0.48",
5
5
  "license": "MPL-2.0",
6
6
  "svelte": "src/index.js",
7
7
  "module": "dist/bbui.es.js",
@@ -82,5 +82,5 @@
82
82
  "svelte-flatpickr": "^3.2.3",
83
83
  "svelte-portal": "^1.0.0"
84
84
  },
85
- "gitHead": "5718d4925a31131daadf694e7f0ba837084a61f2"
85
+ "gitHead": "a5f51d83ba37e2361daf4ff579bb039a2247dd5e"
86
86
  }
@@ -22,7 +22,6 @@
22
22
  export let error = null
23
23
  export let fileTags = []
24
24
  export let maximum = null
25
- export let extensions = "*"
26
25
 
27
26
  const dispatch = createEventDispatcher()
28
27
  const imageExtensions = [
@@ -147,9 +146,7 @@
147
146
  <img alt="preview" src={selectedUrl} />
148
147
  {:else}
149
148
  <div class="placeholder">
150
- <div class="extension">
151
- {selectedImage.name || "Unknown file"}
152
- </div>
149
+ <div class="extension">{selectedImage.extension}</div>
153
150
  <div>Preview not supported</div>
154
151
  </div>
155
152
  {/if}
@@ -210,7 +207,6 @@
210
207
  {disabled}
211
208
  type="file"
212
209
  multiple
213
- accept={extensions}
214
210
  on:change={handleFile}
215
211
  />
216
212
  <svg
@@ -361,21 +357,18 @@
361
357
  white-space: nowrap;
362
358
  width: 0;
363
359
  margin-right: 10px;
364
- user-select: all;
365
360
  }
366
361
  .placeholder {
367
362
  display: flex;
368
363
  flex-direction: column;
369
364
  justify-content: center;
370
365
  align-items: center;
371
- text-align: center;
372
366
  }
373
367
  .extension {
374
368
  color: var(--spectrum-global-color-gray-600);
375
369
  text-transform: uppercase;
376
370
  font-weight: 600;
377
371
  margin-bottom: 5px;
378
- user-select: all;
379
372
  }
380
373
 
381
374
  .nav {