diff --git a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/ComponentListPanel.svelte b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/ComponentListPanel.svelte index 35c672e5ca..6927bc8f15 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/ComponentListPanel.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/components/[screenId]/new/_components/ComponentListPanel.svelte @@ -9,6 +9,7 @@ DetailSummary, Icon, Body, + Divider, } from "@budibase/bbui" import structure from "./componentStructure.json" import { store } from "builderStore" @@ -22,6 +23,7 @@ section, searchString ) + $: blocks = enrichedStructure.find(x => x.name === "Blocks").children const enrichStructure = (structure, definitions) => { let enrichedStructure = [] @@ -95,24 +97,45 @@ on:click={() => (section = "blocks")}>Blocks - (searchString = e.detail)} - /> - {#each filteredStructure as category} - -
- {#each category.children as component} -
addComponent(component)}> - - {component.name} +
+ +
+ {#if section === "components"} + + (searchString = e.detail)} + /> + + {/if} + {#if section === "components"} + {#each filteredStructure as category} + +
+ {#each category.children as component} +
addComponent(component)}> + + {component.name} +
+ {/each} +
+
+ {/each} + {:else} + + Blocks are a collection of pre-built components + + {#each blocks as block} +
+ + {block.name}
{/each} -
- - {/each} + + + {/if} diff --git a/packages/builder/src/pages/builder/app/[application]/design/theme/index.svelte b/packages/builder/src/pages/builder/app/[application]/design/theme/index.svelte index f21267d810..8687344ca7 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/theme/index.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/theme/index.svelte @@ -6,7 +6,9 @@ - Your theme is set across all the screens within your app + + Your theme is set across all the screens within your app +