+
diff --git a/packages/builder/src/components/userInterface/PropertyControl.svelte b/packages/builder/src/components/userInterface/PropertyControl.svelte
index 294663687..632f7a9fc 100644
--- a/packages/builder/src/components/userInterface/PropertyControl.svelte
+++ b/packages/builder/src/components/userInterface/PropertyControl.svelte
@@ -43,8 +43,9 @@
diff --git a/packages/builder/src/components/userInterface/PropertyGroup.svelte b/packages/builder/src/components/userInterface/PropertyGroup.svelte
index 2e227d0b6..a51607833 100644
--- a/packages/builder/src/components/userInterface/PropertyGroup.svelte
+++ b/packages/builder/src/components/userInterface/PropertyGroup.svelte
@@ -42,14 +42,15 @@
display: flex;
flex-direction: column;
height: auto;
- background: #fbfbfb;
- margin: 5px;
- padding: 5px;
+ background: var(--grey-light);
+ margin: 0px 0px 4px 0px;
+ padding: 8px 12px;
+ justify-content: center;
+ border-radius: 4px;
}
.property-group-name {
cursor: pointer;
- flex: 0 0 20px;
display: flex;
flex-flow: row nowrap;
}
@@ -61,7 +62,7 @@
font-size: 14px;
font-weight: 500;
letter-spacing: 0.14px;
- color: #393c44;
+ color: var(--ink);
}
.icon {
diff --git a/packages/builder/src/components/userInterface/propertyCategories.js b/packages/builder/src/components/userInterface/propertyCategories.js
index bbcef302f..41e2a2eb5 100644
--- a/packages/builder/src/components/userInterface/propertyCategories.js
+++ b/packages/builder/src/components/userInterface/propertyCategories.js
@@ -7,20 +7,55 @@ import InputGroup from "../common/Inputs/InputGroup.svelte"
*/
export const layout = [
+ {
+ label: "Display",
+ key: "display",
+ control: OptionSelect,
+ initialValue: "Flex",
+ options: [
+ { label: "Flex", value: "flex" },
+ { label: "Inline Flex", value: "inline-flex" },
+ ],
+ },
{
label: "Direction",
key: "flex-direction",
control: OptionSelect,
- initialValue: "columnReverse",
+ initialValue: "Row",
options: [
- { label: "row", value: "row" },
- { label: "row-reverse", value: "rowReverse" },
+ { label: "Row", value: "row" },
+ { label: "Row Reverse", value: "rowReverse" },
{ label: "column", value: "column" },
- { label: "column-reverse", value: "columnReverse" },
+ { label: "Column Reverse", value: "columnReverse" },
+ ],
+ },
+ {
+ label: "Justify",
+ key: "justify-content",
+ control: OptionSelect,
+ initialValue: "Flex Start",
+ options: [
+ { label: "Flex Start", value: "flex-start" },
+ { label: "Flex End", value: "flex-end" },
+ { label: "Center", value: "center" },
+ { label: "Space Between", value: "space-between" },
+ { label: "Space Around", value: "space-around" },
+ { label: "Space Evenly", value: "space-evenly" },
+ ],
+ },
+ {
+ label: "Align",
+ key: "align-items",
+ control: OptionSelect,
+ initialValue: "Flex Start",
+ options: [
+ { label: "Flex Start", value: "flex-start" },
+ { label: "Flex End", value: "flex-end" },
+ { label: "Center", value: "center" },
+ { label: "Baseline", value: "baseline" },
+ { label: "Stretch", value: "stretch" },
],
},
- { label: "Justify", key: "justify-content", control: Input },
- { label: "Align", key: "align-items", control: Input },
{
label: "Wrap",
key: "flex-wrap",
@@ -33,19 +68,20 @@ export const layout = [
]
const spacingMeta = [
- { placeholder: "T" },
- { placeholder: "R" },
- { placeholder: "B" },
{ placeholder: "L" },
+ { placeholder: "B" },
+ { placeholder: "R" },
+ { placeholder: "T" },
]
+
export const spacing = [
+ { label: "Margin", key: "margin", control: InputGroup, meta: spacingMeta },
{
label: "Padding",
key: "padding",
control: InputGroup,
meta: spacingMeta,
},
- { label: "Margin", key: "margin", control: InputGroup, meta: spacingMeta },
]
export const size = [
@@ -62,7 +98,39 @@ export const position = [
label: "Position",
key: "position",
control: OptionSelect,
- options: ["static", "relative", "fixed", "absolute", "sticky"],
+ initialValue: "Wrap",
+ options: [
+ { label: "Static", value: "static" },
+ { label: "Relative", value: "relative" },
+ { label: "Fixed", value: "fixed" },
+ { label: "Absolute", value: "absolute" },
+ { label: "Sticky", value: "sticky" },
+ ],
+ },
+ {
+ label: "Top",
+ key: "top",
+ control: Input,
+ },
+ {
+ label: "Right",
+ key: "right",
+ control: Input,
+ },
+ {
+ label: "Bottom",
+ key: "bottom",
+ control: Input,
+ },
+ {
+ label: "Left",
+ key: "left",
+ control: Input,
+ },
+ {
+ label: "Z-index",
+ key: "z-index",
+ control: Input,
},
]
@@ -74,13 +142,21 @@ export const typography = [
defaultValue: "initial",
options: [
"initial",
- "Times New Roman",
- "Georgia",
"Arial",
"Arial Black",
+ "Cursive",
+ "Courier",
"Comic Sans MS",
+ "Helvetica",
"Impact",
+ "Inter",
"Lucida Sans Unicode",
+ "Open Sans",
+ "Playfair",
+ "Roboto",
+ "Roboto Mono",
+ "Times New Roman",
+ "Verdana",
],
styleBindingProperty: "font-family",
},
@@ -95,8 +171,7 @@ export const typography = [
{
label: "Color",
key: "color",
- control: OptionSelect,
- options: ["black", "white", "red", "blue", "green"],
+ control: Input,
},
{
label: "align",
@@ -112,8 +187,7 @@ export const background = [
{
label: "Background",
key: "background",
- control: OptionSelect,
- options: ["black", "white", "red", "blue", "green"],
+ control: Input,
},
{ label: "Image", key: "image", control: Input }, //custom
]
@@ -124,15 +198,45 @@ export const border = [
{
label: "Color",
key: "border-color",
+ control: Input,
+ },
+ {
+ label: "Style",
+ key: "border-style",
control: OptionSelect,
- options: ["black", "white", "red", "blue", "green"],
+ options: [
+ "none",
+ "hidden",
+ "dotted",
+ "dashed",
+ "solid",
+ "double",
+ "groove",
+ "ridge",
+ "inset",
+ "outset",
+ ],
},
- { label: "Style", key: "border-style", control: Input },
]
export const effects = [
{ label: "Opacity", key: "opacity", control: Input },
- { label: "Rotate", key: "transform", control: Input }, //needs special control
+ {
+ label: "Rotate",
+ key: "transform",
+ control: OptionSelect,
+ options: [
+ { label: "None", value: "rotate(0deg)" },
+ { label: "45 degrees", value: "rotate(45deg)" },
+ { label: "90 degrees", value: "rotate(90deg)" },
+ { label: "135 degrees", value: "rotate(135deg)" },
+ { label: "180 degrees", value: "rotate(180deg)" },
+ { label: "225 degrees", value: "rotate(225deg)" },
+ { label: "270 degrees", value: "rotate(270deg)" },
+ { label: "315 degrees", value: "rotate(315deg)" },
+ { label: "360 degrees", value: "rotate(360deg)" },
+ ],
+ }, //needs special control
{ label: "Shadow", key: "box-shadow", control: Input },
]
diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js
index ae6a658e7..54c8b5755 100644
--- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js
+++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js
@@ -10,15 +10,6 @@ export default {
name: "Basic",
isCategory: true,
children: [
- {
- _component: "##builtin/screenslot",
- name: "Screenslot",
- description:
- "This component is a placeholder for the rendering of a screen within a page.",
- icon: "ri-crop-2-line",
- commonProps: {},
- children: [],
- },
{
_component: "@budibase/standard-components/container",
name: "Container",
@@ -119,7 +110,7 @@ export default {
{
name: "Input",
description: "These components handle user input.",
- icon: "ri-edit-box-line",
+ icon: "ri-edit-box-fill",
commonProps: {},
children: [
{
@@ -127,7 +118,7 @@ export default {
name: "Textfield",
description:
"A textfield component that allows the user to input text.",
- icon: "ri-edit-box-line",
+ icon: "ri-edit-box-fill",
properties: {
design: { ...all },
settings: [
@@ -145,7 +136,7 @@ export default {
_component: "@budibase/standard-components/checkbox",
name: "Checkbox",
description: "A selectable checkbox component",
- icon: "ri-checkbox-line",
+ icon: "ri-checkbox-fill",
properties: {
design: { ...all },
settings: [{ label: "Label", key: "label", control: Input }],
@@ -166,7 +157,7 @@ export default {
name: "Select",
description:
"A select component for choosing from different options",
- icon: "ri-file-list-line",
+ icon: "ri-file-list-fill",
properties: {
design: { ...all },
settings: [],
@@ -236,7 +227,7 @@ export default {
name: "Card",
description:
"A basic card component that can contain content and actions.",
- icon: "ri-layout-bottom-line",
+ icon: "ri-layout-bottom-fill",
children: [],
properties: { design: { ...all } },
},
@@ -248,21 +239,6 @@ export default {
children: [],
properties: { design: { ...all } },
},
- {
- name: "Navigation Bar",
- _component: "@budibase/standard-components/Navigation",
- description:
- "A component for handling the navigation within your app.",
- icon: "ri-navigation-fill",
- children: [],
- properties: { design: { ...all } },
- },
- ],
- },
- {
- name: "Data",
- isCategory: true,
- children: [
{
name: "Table",
description: "A component that generates a table from your data.",
@@ -283,27 +259,11 @@ export default {
},
children: [],
},
- {
- _component: "@budibase/standard-components/datatable",
- name: "DataTable",
- description: "A table for displaying data from the backend.",
- icon: "ri-archive-drawer-fill",
- properties: { design: { ...all } },
- children: [],
- },
- {
- _component: "@budibase/standard-components/dataform",
- name: "DataForm",
- description: "Form stuff",
- icon: "ri-file-edit-fill",
- properties: { design: { ...all } },
- children: [],
- },
{
name: "Chart",
_component: "@budibase/standard-components/datachart",
description: "Shiny chart",
- icon: "ri-bar-chart-line",
+ icon: "ri-bar-chart-fill",
properties: { design: { ...all } },
children: [],
},
@@ -311,7 +271,7 @@ export default {
name: "List",
_component: "@budibase/standard-components/datalist",
description: "Shiny list",
- icon: "ri-file-list-line",
+ icon: "ri-file-list-fill",
properties: { design: { ...all } },
children: [],
},
@@ -319,10 +279,35 @@ export default {
name: "Map",
_component: "@budibase/standard-components/datamap",
description: "Shiny map",
- icon: "ri-map-pin-line",
+ icon: "ri-map-pin-fill",
+ properties: { design: { ...all } },
+ children: [],
+ },
+ ],
+ },
+ {
+ name: "Layouts",
+ isCategory: true,
+ children: [
+ {
+ _component: "##builtin/screenslot",
+ name: "Screenslot",
+ description:
+ "This component is a placeholder for the rendering of a screen within a page.",
+ icon: "ri-crop-2-fill",
properties: { design: { ...all } },
+ commonProps: {},
children: [],
},
+ {
+ name: "Nav Bar",
+ _component: "@budibase/standard-components/Navigation",
+ description:
+ "A component for handling the navigation within your app.",
+ icon: "ri-navigation-fill",
+ children: [],
+ properties: { design: { ...all } },
+ },
],
},
],
diff --git a/packages/builder/src/global.css b/packages/builder/src/global.css
index 3ad585115..dea20e4d2 100644
--- a/packages/builder/src/global.css
+++ b/packages/builder/src/global.css
@@ -13,6 +13,7 @@
--grey: #F2F2F2;
--grey-light: #FBFBFB;
+ --grey-medium: #e8e8ef;
--grey-dark: #E6E6E6;
--primary100: #0055ff;
@@ -125,6 +126,10 @@ h5 {
color: var(--darkslate);
}
+textarea {
+ font-family: var(--fontnormal);
+}
+
.hoverable:hover {
cursor: pointer;
}
\ No newline at end of file
diff --git a/packages/builder/src/pages/[application]/_layout.svelte b/packages/builder/src/pages/[application]/_reset.svelte
similarity index 64%
rename from packages/builder/src/pages/[application]/_layout.svelte
rename to packages/builder/src/pages/[application]/_reset.svelte
index 5de5e3379..5e3e973ae 100644
--- a/packages/builder/src/pages/[application]/_layout.svelte
+++ b/packages/builder/src/pages/[application]/_reset.svelte
@@ -1,4 +1,5 @@
-
-
-
-
-
- $goto(`/`)} />
-
-
-
- {#each $layout.children as { path, title }}
-
$goto(path)}>
- {title}
-
- {/each}
-
+ {#each $layout.children as { path, title }}
+
$goto(path)}>
+ {title}
+
+ {/each}
+
+
+
+
$goto(`/settings`)}>
+
+
+
(location = `/${application}`)}>
+
+
+
-
-
$goto(`/settings`)}>
-
-
-
(location = `/${application}`)}>
-
-
-
-
- {#await promise}
-
-
- {:then}
-
- {:catch error}
-
Something went wrong: {error.message}
- {/await}
+ {#await promise}
+
+
+ {:then}
+
+ {:catch error}
+
Something went wrong: {error.message}
+ {/await}
-
+
+
diff --git a/packages/builder/src/pages/index.svelte b/packages/builder/src/pages/index.svelte
index cf9aa87bb..97df61ebb 100644
--- a/packages/builder/src/pages/index.svelte
+++ b/packages/builder/src/pages/index.svelte
@@ -1,23 +1,13 @@
-
-