budibase/packages/standard-components/components.json

127 lines
3.1 KiB
JSON
Raw Normal View History

2019-08-19 22:18:23 +02:00
{
2019-09-11 06:18:00 +02:00
"_lib": "./dist/index.js",
2019-08-19 22:18:23 +02:00
"button" : {
"importPath": "button",
"name": "Button",
"description": "an html <button />",
"props": {
"contentText": { "type": "string", "default": "Button" },
"contentComponent": "component",
2019-08-27 08:32:56 +02:00
"className": {"type": "string", "default": "default"},
2019-08-19 22:18:23 +02:00
"disabled": "bool"
},
"tags": ["button"]
2019-08-27 08:32:56 +02:00
},
"login" : {
"importPath": "Login",
2019-08-27 08:32:56 +02:00
"name": "Login Control",
"desciption": "A control that accepts username, password an also handles password resets",
"props" : {
"logo": "asset",
"loginRedirect": "string",
"usernameLabel": {"type":"string", "default": "Username"},
"passwordLabel": {"type":"string", "default": "Password"},
"loginButtonLabel": {"type":"string", "default": "Login"},
"buttonClass": "string"
2019-08-27 08:32:56 +02:00
},
"tags": ["login", "credentials", "password", "logon"]
},
"form" : {
"importPath": "Form",
2019-08-27 08:32:56 +02:00
"name": "Form",
"desciption": "A form - allgned fields with labels",
2019-08-27 08:32:56 +02:00
"props" : {
"containerClass": "string",
"formControls": {
"type":"array",
"elementDefinition": {
"label": "string",
2019-08-27 08:32:56 +02:00
"control":"component"
}
}
},
"tags": ["form"]
},
"textbox" : {
"importPath": "Textbox",
2019-08-27 08:32:56 +02:00
"name": "Textbox",
"desciption": "An input type=text or password",
"props" : {
"value": "string",
"hideValue": "boolean",
"className": {"type": "string", "default": "default"}
},
"tags": ["form"]
2019-09-03 11:42:19 +02:00
},
"stackpanel": {
"importPath": "StackPanel",
2019-09-03 11:42:19 +02:00
"name": "StackPanel",
"desciption": "Layout elements in a stack, either horizontally or vertically",
"props" : {
"direction": {
"type": "options",
"options": ["horizontal", "vertical"],
"default":"horizontal"
},
"children": {
"type":"array",
"elementDefinition": {
"control":"component"
}
},
"width": {"type":"string","default":"auto"},
"height": {"type":"string","default":"auto"},
"containerClass":"string",
"itemContainerClass":"string"
},
"tags": ["div", "container", "layout", "panel"]
},
"grid": {
"importPath": "Grid",
"name": "Grid",
"desciption": "CSS Grid layout ",
"props" : {
"gridTemplateRows": "string",
"gridTemplateColumns": "string",
"children": {
"type":"array",
"elementDefinition": {
"control":"component",
"gridColumn":"string",
"gridRow":"string",
"gridColumnStart":"string",
"gridColumnEnd":"string",
"gridRowStart":"string",
"gridRowEnd":"string"
}
},
"width": {"type":"string","default":"auto"},
"height": {"type":"string","default":"auto"},
"containerClass":"string",
"itemContainerClass":"string"
},
"tags": ["div", "container", "layout", "panel", "grid"]
},
"text": {
"importPath": "Text",
"name": "Text",
"desciption": "A div with text inside ",
"props" : {
"value": "string",
"containerClass": "string",
"background": "string",
"border": "string",
"font": "string",
"color": "string",
"padding": "string",
"display": {
"type": "options",
"default":"inline",
"options": [
"inline", "block", "inline-block"
]
}
},
"tags": ["div", "container"]
2019-08-19 22:18:23 +02:00
}
}