1
0
Fork 0
mirror of synced 2024-07-09 00:06:05 +12:00
budibase/packages/builder/tests/testData.js

98 lines
2.3 KiB
JavaScript
Raw Normal View History

2019-08-15 09:11:59 +12:00
export const allComponents = () => ([
{
name: "budibase-components/TextBox",
tags: ["Text", "input"],
props: {
size: {type:"options", options:["small", "medium", "large"]},
isPassword: "bool",
placeholder: "string",
label:"string"
}
},
{
name: "budibase-components/Button",
tags: ["input"],
props: {
size: {type:"options", options:["small", "medium", "large"]},
css: "string",
2019-09-07 04:25:06 +12:00
content: "component",
contentText: "string"
2019-08-15 09:11:59 +12:00
}
},
2019-09-07 04:25:06 +12:00
{
name: "budibase-components/div",
tags: ["input"],
props: {
width: "number",
header : "component",
children: {
type:"array",
elementDefinition: {
control: "component"
}
}
}
},
{
name:"budibase-components/RecordView",
tags: ["record"],
props: {
data: "state"
}
},
2019-08-15 09:11:59 +12:00
{
inherits:"budibase-components/TextBox",
name: "common/SmallTextbox",
props: {
size: "small"
}
},
2019-08-15 09:11:59 +12:00
{
inherits:"common/SmallTextbox",
name: "common/PasswordBox",
tags: ["mask"],
props: {
isPassword: true
}
},
{
inherits:"budibase-components/Button",
name:"PrimaryButton",
props: {
css:"btn-primary"
}
2019-09-07 04:25:06 +12:00
},
{
inherits:"budibase-components/div",
name:"ButtonGroup",
props: {
width: 100,
header: {
_component: "PrimaryButton"
},
children: [
{
control: {
_component: "PrimaryButton",
contentText: "Button 1"
}
},
{
control: {
_component: "PrimaryButton",
contentText: "Button 2"
}
2019-10-07 18:03:41 +13:00
},
{
control: {
_component: "common/PasswordBox",
}
2019-09-07 04:25:06 +12:00
}
]
}
2019-08-15 09:11:59 +12:00
}
2019-09-07 04:25:06 +12:00
2019-08-15 09:11:59 +12:00
])