From 2a151821f9c75afeb9afeaaab31e6526c6c265a0 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Tue, 26 May 2020 16:25:37 +0200 Subject: [PATCH] 90% finished modal --- packages/builder/package.json | 3 +- .../src/components/common/Icons/Close.svelte | 1 + .../src/components/common/Icons/Info.svelte | 1 + .../src/components/common/Icons/index.js | 2 + .../src/components/common/ModalDialog.svelte | 51 -------- .../src/components/start/AppList.svelte | 2 +- .../components/start/CreateAppModal.svelte | 118 ++++++++++++++++++ packages/builder/src/global.css | 5 + packages/builder/src/pages/_layout.svelte | 2 +- packages/builder/src/pages/index.svelte | 16 ++- 10 files changed, 145 insertions(+), 56 deletions(-) create mode 100644 packages/builder/src/components/common/Icons/Close.svelte create mode 100644 packages/builder/src/components/common/Icons/Info.svelte delete mode 100644 packages/builder/src/components/common/ModalDialog.svelte create mode 100644 packages/builder/src/components/start/CreateAppModal.svelte diff --git a/packages/builder/package.json b/packages/builder/package.json index cb91f2ce42..3e76ac87d8 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -38,6 +38,7 @@ ] }, "dependencies": { + "@budibase/bbui": "^0.3.1", "@budibase/client": "^0.0.32", "@nx-js/compiler-util": "^2.0.0", "codemirror": "^5.51.0", @@ -82,4 +83,4 @@ "svelte": "^3.0.0" }, "gitHead": "115189f72a850bfb52b65ec61d932531bf327072" -} \ No newline at end of file +} diff --git a/packages/builder/src/components/common/Icons/Close.svelte b/packages/builder/src/components/common/Icons/Close.svelte new file mode 100644 index 0000000000..e39564d9ad --- /dev/null +++ b/packages/builder/src/components/common/Icons/Close.svelte @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/builder/src/components/common/Icons/Info.svelte b/packages/builder/src/components/common/Icons/Info.svelte new file mode 100644 index 0000000000..162a9b3887 --- /dev/null +++ b/packages/builder/src/components/common/Icons/Info.svelte @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/packages/builder/src/components/common/Icons/index.js b/packages/builder/src/components/common/Icons/index.js index c7e4da29da..69b78421da 100644 --- a/packages/builder/src/components/common/Icons/index.js +++ b/packages/builder/src/components/common/Icons/index.js @@ -29,3 +29,5 @@ export { default as ContributionIcon } from "./Contribution.svelte" export { default as BugIcon } from "./Bug.svelte" export { default as EmailIcon } from "./Email.svelte" export { default as TwitterIcon } from "./Twitter.svelte" +export { default as InfoIcon } from "./Info.svelte" +export { default as CloseIcon } from "./Close.svelte" diff --git a/packages/builder/src/components/common/ModalDialog.svelte b/packages/builder/src/components/common/ModalDialog.svelte deleted file mode 100644 index 121714cd85..0000000000 --- a/packages/builder/src/components/common/ModalDialog.svelte +++ /dev/null @@ -1,51 +0,0 @@ - - -

{message}

- -{#if hasForm} - e.which === 13 && _onOkay()} /> -{/if} - -
- - -
- - diff --git a/packages/builder/src/components/start/AppList.svelte b/packages/builder/src/components/start/AppList.svelte index 22ba16c45d..e53b1f93bf 100644 --- a/packages/builder/src/components/start/AppList.svelte +++ b/packages/builder/src/components/start/AppList.svelte @@ -56,7 +56,7 @@ max-width: 400px; max-height: 150px; border-radius: 5px; - border: 1px solid var(--grey-dark); + border: 1px solid var(--grey-medium); } .app-button:hover { diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte new file mode 100644 index 0000000000..07f53cc1b3 --- /dev/null +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -0,0 +1,118 @@ + + +
+
+
+ +

Create new web app

+
+ +