diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js
index 213cfc4a58..5c4188d311 100644
--- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js
+++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js
@@ -52,28 +52,28 @@ export default {
name: "Textfield",
description: "A textfield component that allows the user to input text.",
icon: 'ri-edit-box-line',
- props: {}
+ props: {}
},
{
_component: "@budibase/standard-components/checkbox",
name: "Checkbox",
description: "A selectable checkbox component",
icon: 'ri-checkbox-line',
- props: {}
+ props: {}
},
{
_component: "@budibase/standard-components/radiobutton",
name: "Radiobutton",
description: "A selectable radiobutton component",
icon: 'ri-radio-button-line',
- props: {}
+ props: {}
},
{
_component: "@budibase/standard-components/select",
name: "Select",
description: "A select component for choosing from different options",
icon: 'ri-file-list-line',
- props: {}
+ props: {}
}
]
},
@@ -123,9 +123,10 @@ export default {
children: []
},
{
- name: 'Navbar',
- description: 'A component for handling the navigation within your app.',
- icon: 'ri-navigation-fill',
+ name: "Navigation Bar",
+ _component: "@budibase/standard-components/Navigation",
+ description: "A component for handling the navigation within your app.",
+ icon: "ri-navigation-fill",
commonProps: {},
children: []
}
diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json
index 541aa8a143..888668877b 100644
--- a/packages/standard-components/components.json
+++ b/packages/standard-components/components.json
@@ -1,16 +1,32 @@
{
"_lib": "./dist/index.js",
- "_templates" : {
- "saveRecordButton" : {
+ "_templates": {
+ "saveRecordButton": {
"description": "Save record button",
"component": "button"
}
},
- "button" : {
+ "Navigation": {
+ "name": "Navigation",
+ "description": "A basic header navigation component",
+ "props": {
+ "logoUrl": "string",
+ "title": "string",
+ "backgroundColor": "string",
+ "color": "string",
+ "borderWidth": "string",
+ "borderColor": "string",
+ "borderStyle": "string"
+ }
+ },
+ "button": {
"name": "Button",
"description": "an html ",
"props": {
- "contentText": { "type": "string", "default": "Button" },
+ "contentText": {
+ "type": "string",
+ "default": "Button"
+ },
"className": "string",
"disabled": "bool",
"onClick": "event",
@@ -22,76 +38,110 @@
"hoverBackground": "string",
"hoverBorder": "string"
},
- "tags": ["layout"],
+ "tags": [
+ "layout"
+ ],
"presets": {
"primary": {
"contentText": "Primary Button Preset",
- "color": "papayawhip",
+ "color": "papayawhip",
"padding": "20px",
"background": "blue"
},
"secondary": {
"contentText": "Secondary Button Preset",
- "color": "rebeccapurple",
+ "color": "rebeccapurple",
"padding": "10px",
"background": "#fff",
"border": "1px solid red"
},
"error": {
"contentText": "ERROR",
- "color": "red",
+ "color": "red",
"padding": "10px",
"border": "1px solid red"
}
- }
- },
- "login" : {
+ }
+ },
+ "login": {
"name": "Login Control",
"description": "A control that accepts username, password an also handles password resets",
- "props" : {
+ "props": {
"logo": "asset",
"loginRedirect": "string",
- "usernameLabel": {"type":"string", "default": "Username"},
- "passwordLabel": {"type":"string", "default": "Password"},
- "loginButtonLabel": {"type":"string", "default": "Login"},
+ "usernameLabel": {
+ "type": "string",
+ "default": "Username"
+ },
+ "passwordLabel": {
+ "type": "string",
+ "default": "Password"
+ },
+ "loginButtonLabel": {
+ "type": "string",
+ "default": "Login"
+ },
"buttonClass": "string",
"inputClass": "string"
},
- "tags": ["login", "credentials", "password", "logon"]
+ "tags": [
+ "login",
+ "credentials",
+ "password",
+ "logon"
+ ]
},
- "input" : {
+ "input": {
"name": "Input",
"description": "An HTML input",
- "props" : {
+ "props": {
"value": "string",
"type": {
- "type":"options",
- "options":[
- "text", "password", "checkbox", "color",
- "date", "datetime-local", "email",
- "file", "hidden", "image", "month", "number",
- "radio", "range", "reset", "search", "submit",
- "tel", "time", "week"],
- "default":"text"
+ "type": "options",
+ "options": [
+ "text",
+ "password",
+ "checkbox",
+ "color",
+ "date",
+ "datetime-local",
+ "email",
+ "file",
+ "hidden",
+ "image",
+ "month",
+ "number",
+ "radio",
+ "range",
+ "reset",
+ "search",
+ "submit",
+ "tel",
+ "time",
+ "week"
+ ],
+ "default": "text"
},
"onChange": "event",
"className": "string"
},
- "tags": ["form"]
+ "tags": [
+ "form"
+ ]
},
- "select" : {
+ "select": {
"name": "Select",
"description": "An HTML