diff --git a/packages/builder/package.json b/packages/builder/package.json index b13ab74287..129d8e1dc6 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -78,9 +78,9 @@ "mustache": "^4.0.1", "posthog-js": "1.3.1", "shortid": "^2.2.15", + "svelte-loading-spinners": "^0.1.1", "svelte-portal": "^0.1.0", "svelte-simple-modal": "^0.4.2", - "uikit": "^3.1.7", "yup": "^0.29.2" }, "devDependencies": { diff --git a/packages/builder/src/budibase.css b/packages/builder/src/budibase.css index 0db3e2fec7..23fd45e1e0 100644 --- a/packages/builder/src/budibase.css +++ b/packages/builder/src/budibase.css @@ -85,11 +85,6 @@ box-sizing: border-box; } -.uk-text-right { - display: flex; - justify-content: flex-start; -} - .preview-pane { grid-column: 2; margin: 80px 60px; @@ -154,3 +149,13 @@ .bb-table td > :last-child { margin-bottom: 0; } +.bb__alert { + position: relative; + margin-bottom: var(--spacing-m); + padding: var(--spacing-l); +} + +.bb__alert--danger { + background: #fef4f6; + color: #f0506e; +} \ No newline at end of file diff --git a/packages/builder/src/components/common/ConfirmDialog.svelte b/packages/builder/src/components/common/ConfirmDialog.svelte index 77ff9ddb02..31e2d3ad86 100644 --- a/packages/builder/src/components/common/ConfirmDialog.svelte +++ b/packages/builder/src/components/common/ConfirmDialog.svelte @@ -1,5 +1,4 @@ {#if hasErrors} -
+
{#each errors as error}
{error.dataPath} {error.message}
{/each} diff --git a/packages/builder/src/components/common/IconButton.svelte b/packages/builder/src/components/common/IconButton.svelte deleted file mode 100644 index 6a01973181..0000000000 --- a/packages/builder/src/components/common/IconButton.svelte +++ /dev/null @@ -1,59 +0,0 @@ - - - - - diff --git a/packages/builder/src/components/common/Spinner.svelte b/packages/builder/src/components/common/Spinner.svelte index 2a4e6c485f..a9c947915c 100644 --- a/packages/builder/src/components/common/Spinner.svelte +++ b/packages/builder/src/components/common/Spinner.svelte @@ -1,5 +1,5 @@ - + diff --git a/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte b/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte index b120ca549b..1c2f1d58cc 100644 --- a/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte +++ b/packages/builder/src/components/userInterface/ComponentDropdownMenu.svelte @@ -4,7 +4,6 @@ import { getComponentDefinition } from "builderStore/storeUtils" import ConfirmDialog from "components/common/ConfirmDialog.svelte" import { last, cloneDeep } from "lodash/fp" - import UIkit from "uikit" import { selectComponent, getParent, @@ -13,20 +12,14 @@ regenerateCssForCurrentScreen, } from "builderStore/storeUtils" import { uuid } from "builderStore/uuid" + import { DropdownMenu } from "@budibase/bbui" export let component let confirmDeleteDialog - let dropdownEl + let dropdown + let anchor - $: dropdown = UIkit.dropdown(dropdownEl, { - mode: "click", - offset: 0, - pos: "bottom-right", - "delay-hide": 0, - animation: false, - }) - $: dropdown && UIkit.util.on(dropdown, "shown", () => (hidden = false)) $: noChildrenAllowed = !component || !getComponentDefinition($store, component._component).children $: noPaste = !$store.componentToPaste @@ -115,11 +108,19 @@ } -
{}}> - -
+ +
  • confirmDeleteDialog.show()}> Delete @@ -167,7 +168,7 @@ Paste inside
-
+