From 46970a759de29bc5f4b72381b83e6585cb1dea25 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Tue, 18 Aug 2020 14:51:02 +0100 Subject: [PATCH] all inputs using BBUI --- .../src/components/common/Input.svelte | 62 ------------------- .../EventsEditor/EventEditorModal.svelte | 1 - .../PropertyPanelControls/Input.svelte | 11 ++++ .../userInterface/propertyCategories.js | 4 +- .../userInterface/temporaryPanelStructure.js | 2 +- 5 files changed, 14 insertions(+), 66 deletions(-) delete mode 100644 packages/builder/src/components/common/Input.svelte create mode 100644 packages/builder/src/components/userInterface/PropertyPanelControls/Input.svelte diff --git a/packages/builder/src/components/common/Input.svelte b/packages/builder/src/components/common/Input.svelte deleted file mode 100644 index 730a9ed043..0000000000 --- a/packages/builder/src/components/common/Input.svelte +++ /dev/null @@ -1,62 +0,0 @@ - - - handleChange(e.target.value)} /> - - diff --git a/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte b/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte index 62fc4071c6..34a3c78519 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte @@ -6,7 +6,6 @@ import IconButton from "../../common/IconButton.svelte" import ActionButton from "../../common/ActionButton.svelte" import Select from "../../common/Select.svelte" - import Input from "../../common/Input.svelte" import getIcon from "../../common/icon" import { CloseIcon } from "components/common/Icons/" diff --git a/packages/builder/src/components/userInterface/PropertyPanelControls/Input.svelte b/packages/builder/src/components/userInterface/PropertyPanelControls/Input.svelte new file mode 100644 index 0000000000..1721c1bbb2 --- /dev/null +++ b/packages/builder/src/components/userInterface/PropertyPanelControls/Input.svelte @@ -0,0 +1,11 @@ + + + diff --git a/packages/builder/src/components/userInterface/propertyCategories.js b/packages/builder/src/components/userInterface/propertyCategories.js index b85a9abacb..a843a07ee9 100644 --- a/packages/builder/src/components/userInterface/propertyCategories.js +++ b/packages/builder/src/components/userInterface/propertyCategories.js @@ -1,9 +1,9 @@ -import Input from "../common/Input.svelte" +import Input from "./PropertyPanelControls/Input.svelte" import OptionSelect from "./OptionSelect.svelte" import FlatButtonGroup from "./FlatButtonGroup.svelte" import Colorpicker from "@budibase/colorpicker" /* - TODO: Allow for default values for all properties + TODO: Allow for default values for all proproperties */ export const layout = [ diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 5b016dcc84..b474aea038 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -1,4 +1,4 @@ -import Input from "../common/Input.svelte" +import Input from "./PropertyPanelControls/Input.svelte" import OptionSelect from "./OptionSelect.svelte" import Checkbox from "../common/Checkbox.svelte" import ModelSelect from "components/userInterface/ModelSelect.svelte"