2019-08-14 23:11:59 +02:00
|
|
|
|
2020-01-18 00:06:42 +01:00
|
|
|
export const componentsAndScreens = () => ({
|
|
|
|
components: [
|
|
|
|
{
|
|
|
|
name: "budibase-components/TextBox",
|
|
|
|
tags: ["Text", "input"],
|
|
|
|
children: false,
|
|
|
|
props: {
|
|
|
|
size: {type:"options", options:["small", "medium", "large"]},
|
|
|
|
isPassword: "bool",
|
|
|
|
placeholder: "string",
|
|
|
|
label:"string"
|
2019-09-06 18:25:06 +02:00
|
|
|
}
|
2020-01-18 00:06:42 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "budibase-components/Button",
|
|
|
|
tags: ["input"],
|
|
|
|
children: true,
|
|
|
|
props: {
|
|
|
|
size: {type:"options", options:["small", "medium", "large"]},
|
|
|
|
css: "string",
|
|
|
|
contentText: "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "budibase-components/div",
|
|
|
|
tags: ["input"],
|
|
|
|
props: {
|
|
|
|
width: "number",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name:"budibase-components/RecordView",
|
|
|
|
tags: ["record"],
|
|
|
|
props: {
|
|
|
|
data: "state"
|
|
|
|
}
|
2019-09-06 18:25:06 +02:00
|
|
|
}
|
2020-01-18 00:06:42 +01:00
|
|
|
],
|
|
|
|
screens: [
|
|
|
|
{
|
|
|
|
name: "common/SmallTextbox",
|
|
|
|
props: {
|
|
|
|
_component: "budibase-components/TextBox",
|
|
|
|
size: "small"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: "common/PasswordBox",
|
|
|
|
tags: ["mask"],
|
|
|
|
props: {
|
|
|
|
_component: "budibase-components/TextBox",
|
|
|
|
isPassword: true,
|
|
|
|
size: "small"
|
|
|
|
}
|
|
|
|
},
|
2019-09-06 18:25:06 +02:00
|
|
|
|
2020-01-18 00:06:42 +01:00
|
|
|
{
|
|
|
|
name:"PrimaryButton",
|
|
|
|
props: {
|
|
|
|
_component:"budibase-components/Button",
|
|
|
|
css:"btn-primary"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name:"ButtonGroup",
|
|
|
|
props: {
|
|
|
|
_component:"budibase-components/div",
|
|
|
|
width: 100,
|
|
|
|
_children: [
|
|
|
|
{
|
|
|
|
_component: "budibase-components/Button",
|
2019-09-06 18:25:06 +02:00
|
|
|
contentText: "Button 1"
|
2020-01-18 00:06:42 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_component: "budibase-components/Button",
|
2019-09-06 18:25:06 +02:00
|
|
|
contentText: "Button 2"
|
2020-01-18 00:06:42 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
_component: "budibase-components/TextBox",
|
|
|
|
isPassword: true,
|
|
|
|
size: "small"
|
2019-09-06 18:25:06 +02:00
|
|
|
}
|
2020-01-18 00:06:42 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name:"Field",
|
|
|
|
props: {
|
|
|
|
_component:"budibase-components/div",
|
|
|
|
_children:[
|
|
|
|
{
|
|
|
|
_component: "common/SmallTextbox"
|
2019-10-07 07:03:41 +02:00
|
|
|
}
|
2020-01-18 00:06:42 +01:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
});
|