From 2bf2045a0af3e6baddbd97893846543465fcfd4c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 10 May 2021 11:53:32 +0100 Subject: [PATCH] Add non-gallery option to dropzeon and update create app modal --- packages/bbui/src/Form/Core/Dropzone.svelte | 97 +++--- packages/bbui/src/Form/Core/TextField.svelte | 1 + packages/bbui/src/Form/Dropzone.svelte | 2 + packages/bbui/src/Form/Input.svelte | 1 + packages/bbui/src/Layout/Page.svelte | 3 +- .../components/start/CreateAppModal.svelte | 289 ++++++++---------- .../pages/builder/portal/apps/index.svelte | 10 +- 7 files changed, 202 insertions(+), 201 deletions(-) diff --git a/packages/bbui/src/Form/Core/Dropzone.svelte b/packages/bbui/src/Form/Core/Dropzone.svelte index 9dd2cbbc73..5b5c72b809 100644 --- a/packages/bbui/src/Form/Core/Dropzone.svelte +++ b/packages/bbui/src/Form/Core/Dropzone.svelte @@ -15,6 +15,8 @@ export let fileSizeLimit = BYTES_IN_MB * 20 export let processFiles = null export let handleFileTooLarge = null + export let gallery = true + export let error = null const dispatch = createEventDispatcher() const imageExtensions = [ @@ -52,6 +54,8 @@ const newValue = [...value, ...processedFiles] dispatch("change", newValue) selectedImageIdx = newValue.length - 1 + } else { + dispatch("change", fileList) } } @@ -94,47 +98,68 @@
{#if selectedImage} -