budibase/packages/builder/src/components/userInterface/temporaryPanelStructure.js

161 lines
5.0 KiB
JavaScript
Raw Normal View History

2020-05-04 17:07:04 +02:00
import { layout, background } from "./propertyCategories.js"
export default {
categories: [
{
name: 'Basic',
isCategory: true,
children: [
{
2020-04-22 12:52:55 +02:00
_component: "@budibase/standard-components/container",
name: 'Container',
description: 'This component contains things within itself',
icon: 'ri-layout-row-fill',
commonProps: {},
2020-05-04 17:07:04 +02:00
children: [],
2020-05-05 11:02:10 +02:00
properties: { layout, background },
},
{
name: 'Text',
description: 'This is a simple text component',
icon: 'ri-t-box-fill',
commonProps: {},
children: [
{
_component: '@budibase/standard-components/heading',
name: 'Headline',
2020-04-23 14:22:41 +02:00
description: "A component for displaying heading text",
icon: "ri-heading",
2020-05-05 11:02:10 +02:00
properties: {
2020-05-04 17:07:04 +02:00
layout,
background,
2020-04-22 12:52:55 +02:00
},
},
{
_component: '@budibase/standard-components/text',
name: 'Paragraph',
2020-04-23 14:22:41 +02:00
description: "A component for displaying paragraph text.",
icon: 'ri-paragraph',
2020-05-05 11:02:10 +02:00
properties: {}
}
]
},
2020-04-23 14:22:41 +02:00
{
name: 'Input',
description: "These components handle user input.",
icon: 'ri-edit-box-line',
commonProps: {},
children: [
{
_component: "@budibase/standard-components/textfield",
name: "Textfield",
description: "A textfield component that allows the user to input text.",
icon: 'ri-edit-box-line',
2020-05-05 11:02:10 +02:00
properties: {}
2020-04-23 14:22:41 +02:00
},
{
_component: "@budibase/standard-components/checkbox",
name: "Checkbox",
description: "A selectable checkbox component",
icon: 'ri-checkbox-line',
2020-05-05 11:02:10 +02:00
properties: {}
2020-04-23 14:22:41 +02:00
},
{
_component: "@budibase/standard-components/radiobutton",
name: "Radiobutton",
description: "A selectable radiobutton component",
icon: 'ri-radio-button-line',
2020-05-05 11:02:10 +02:00
properties: {}
2020-04-23 14:22:41 +02:00
},
{
_component: "@budibase/standard-components/select",
name: "Select",
description: "A select component for choosing from different options",
icon: 'ri-file-list-line',
2020-05-05 11:02:10 +02:00
properties: {}
2020-04-23 14:22:41 +02:00
}
]
},
{
2020-04-22 12:52:55 +02:00
_component: "@budibase/standard-components/button",
name: 'Button',
description: 'A basic html button that is ready for styling',
icon: 'ri-radio-button-fill',
2020-05-04 17:07:04 +02:00
children: [],
2020-05-05 11:02:10 +02:00
properties: {},
},
{
2020-04-23 14:22:41 +02:00
_component: "@budibase/standard-components/icon",
name: 'Icon',
description: 'A basic component for displaying icons',
icon: 'ri-sun-fill',
2020-05-05 11:02:10 +02:00
properties: {},
children: []
},
{
2020-04-23 14:22:41 +02:00
_component: "@budibase/standard-components/link",
name: 'Link',
description: 'A basic link component for internal and external links',
icon: 'ri-link',
2020-05-05 11:02:10 +02:00
properties: {},
children: []
}
]
},
{
name: 'Blocks',
isCategory: true,
children: [
{
2020-04-22 12:52:55 +02:00
_component: "@budibase/materialdesign-components/BasicCard",
name: 'Card',
description: 'A basic card component that can contain content and actions.',
icon: 'ri-layout-bottom-line',
2020-05-05 11:02:10 +02:00
properties: {},
children: []
},
{
name: 'Login',
description: 'A component that automatically generates a login screen for your app.',
icon: 'ri-login-box-fill',
2020-05-05 11:02:10 +02:00
properties: {},
children: []
},
{
2020-04-23 14:32:36 +02:00
name: "Navigation Bar",
_component: "@budibase/standard-components/Navigation",
description: "A component for handling the navigation within your app.",
icon: "ri-navigation-fill",
2020-05-05 11:02:10 +02:00
properties: {},
children: []
}
]
},
{
name: 'Data',
isCategory: true,
children: [
{
name: 'Table',
description: 'A component that generates a table from your data.',
icon: 'ri-archive-drawer-fill',
2020-05-05 11:02:10 +02:00
properties: {},
children: []
},
{
name: 'Form',
description: 'A component that generates a form from your data.',
icon: 'ri-file-edit-fill',
2020-05-05 11:02:10 +02:00
properties: {},
2020-05-04 17:07:04 +02:00
_component: "@budibase/materialdesign-components/Form",
template: {
component: "@budibase/materialdesign-components/Form",
description: "Form for saving a record",
name: "@budibase/materialdesign-components/recordForm",
},
children: []
}
]
},
]
}