From 2e6a0e36c0cf21010023b516fdf91134c8ddcd3b Mon Sep 17 00:00:00 2001 From: Conor_Mack Date: Fri, 8 May 2020 20:29:15 +0100 Subject: [PATCH] Pre demo changes --- .../ComponentPropertiesPanel.svelte | 5 ++-- .../userInterface/PropertyGroup.svelte | 15 ++++++++++++ .../userInterface/propertyCategories.js | 20 ++++++++++++++-- .../userInterface/temporaryPanelStructure.js | 24 ++++++++++++------- packages/standard-components/components.json | 4 +++- .../standard-components/src/Button.svelte | 6 ++--- .../standard-components/src/Container.svelte | 12 ++++++++++ 7 files changed, 67 insertions(+), 19 deletions(-) diff --git a/packages/builder/src/components/userInterface/ComponentPropertiesPanel.svelte b/packages/builder/src/components/userInterface/ComponentPropertiesPanel.svelte index 94c450823a..12a7b3eb90 100644 --- a/packages/builder/src/components/userInterface/ComponentPropertiesPanel.svelte +++ b/packages/builder/src/components/userInterface/ComponentPropertiesPanel.svelte @@ -29,7 +29,7 @@ let selectedCategory = categories[0] $: components = $store.components - $: componentInstance = $store.currentComponentInfo //contains prop values of currently selected component + $: componentInstance = $store.currentComponentInfo $: componentDefinition = $store.components.find( c => c.name === componentInstance._component ) @@ -39,8 +39,7 @@ c => c._component === componentInstance._component ) - // OLD PROPS ============================================= - + // SCREEN PROPS ============================================= $: screen_props = $store.currentFrontEndType === "page" ? getProps($store.currentPreviewItem, ["name", "favicon"]) diff --git a/packages/builder/src/components/userInterface/PropertyGroup.svelte b/packages/builder/src/components/userInterface/PropertyGroup.svelte index 96d5ba7a7b..2d88557777 100644 --- a/packages/builder/src/components/userInterface/PropertyGroup.svelte +++ b/packages/builder/src/components/userInterface/PropertyGroup.svelte @@ -1,6 +1,7 @@ +
(show = !show)}>
@@ -41,6 +55,7 @@ {/each}
+