1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00
budibase/packages/standard-components/components.json

379 lines
6.7 KiB
JSON
Raw Normal View History

2019-08-20 08:18:23 +12:00
{
2019-09-11 16:18:00 +12:00
"_lib": "./dist/index.js",
2020-04-24 00:32:36 +12:00
"_templates": {
"saveRecordButton": {
2020-02-20 10:38:21 +13:00
"description": "Save record button",
"component": "button"
}
},
"embed": {
"name": "Embed",
"description": "Embed stuff",
"props": {
"embed": "string"
}
},
2020-04-24 00:32:36 +12:00
"Navigation": {
"name": "Navigation",
"description": "A basic header navigation component",
"props": {
"logoUrl": "string",
"title": "string",
2020-05-13 01:44:30 +12:00
"backgroundColor": "string",
"color": "string",
2020-04-24 00:32:36 +12:00
"borderWidth": "string",
2020-05-13 01:44:30 +12:00
"borderColor": "string",
2020-04-24 00:32:36 +12:00
"borderStyle": "string"
}
},
"button": {
2019-08-20 08:18:23 +12:00
"name": "Button",
"description": "an html <button />",
"props": {
"text": "string",
2020-01-18 22:00:18 +13:00
"className": "string",
2019-09-20 19:01:35 +12:00
"disabled": "bool",
"onClick": "event"
2019-08-20 08:18:23 +12:00
},
2020-04-24 00:32:36 +12:00
"tags": [
"layout"
],
"presets": {
"primary": {
"contentText": "Primary Button Preset",
2020-04-24 00:32:36 +12:00
"color": "papayawhip",
"padding": "20px",
"background": "blue"
},
"secondary": {
"contentText": "Secondary Button Preset",
2020-04-24 00:32:36 +12:00
"color": "rebeccapurple",
"padding": "10px",
"background": "#fff",
"border": "1px solid red"
},
"error": {
"contentText": "ERROR",
2020-04-24 00:32:36 +12:00
"color": "red",
"padding": "10px",
"border": "1px solid red"
}
2020-04-24 00:32:36 +12:00
}
},
"login": {
2019-08-27 18:32:56 +12:00
"name": "Login Control",
2019-10-07 18:03:41 +13:00
"description": "A control that accepts username, password an also handles password resets",
2020-04-24 00:32:36 +12:00
"props": {
2019-08-27 18:32:56 +12:00
"logo": "asset",
"loginRedirect": "string",
"name": "string",
2020-04-24 00:32:36 +12:00
"usernameLabel": {
"type": "string",
"default": "Username"
},
"passwordLabel": {
"type": "string",
"default": "Password"
},
"loginButtonLabel": {
"type": "string",
"default": "Login"
},
"buttonClass": "string",
"inputClass": "string"
2019-08-27 18:32:56 +12:00
},
2020-04-24 00:32:36 +12:00
"tags": [
"login",
"credentials",
"password",
"logon"
]
2019-08-27 18:32:56 +12:00
},
2020-04-24 00:32:36 +12:00
"input": {
"name": "Input",
"description": "An HTML input",
2020-04-24 00:32:36 +12:00
"props": {
"value": "string",
"type": {
2020-04-24 00:32:36 +12:00
"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"
},
2020-02-21 09:19:24 +13:00
"onChange": "event",
2020-01-18 22:00:18 +13:00
"className": "string"
},
2020-04-24 00:32:36 +12:00
"tags": [
"form"
]
},
2020-04-24 00:32:36 +12:00
"select": {
"name": "Select",
"description": "An HTML <select> (dropdown)",
2020-04-24 00:32:36 +12:00
"props": {
"value": "string",
2020-01-18 22:00:18 +13:00
"className": "string"
}
},
2020-04-24 00:32:36 +12:00
"option": {
"name": "Option",
"description": "An HTML <option>, to be used with <select>",
"children": false,
2020-04-24 00:32:36 +12:00
"props": {
"value": "string",
"text": "string"
}
},
"text": {
"name": "Text",
2019-10-07 18:03:41 +13:00
"description": "stylable block of text",
2020-01-18 22:00:18 +13:00
"children": false,
2020-04-24 00:32:36 +12:00
"props": {
"text": "string",
"type": {"type": "string", "default": "none"}
},
2020-04-24 00:32:36 +12:00
"tags": [
"div",
"container"
]
2019-09-26 16:40:58 +12:00
},
2020-04-24 00:22:41 +12:00
"textfield": {
"name": "Textfield",
"description": "A component that allows the user to input text.",
"props": {
"label": "string",
"type": "string",
2020-04-24 00:22:41 +12:00
"value": "string",
"onchange": "event"
}
},
"checkbox": {
"name": "Checkbox",
"description": "A selectable checkbox component",
"props": {
"label": "string",
"checked": "bool",
"value": "string",
"onchange": "event"
}
},
"radiobutton": {
"name": "Radiobutton",
"description": "A selectable radiobutton component",
"props": {
"label": "string",
"checked": "bool",
"value": "string",
"onchange": "event"
2020-04-24 00:32:36 +12:00
}
2020-04-24 00:22:41 +12:00
},
"icon": {
"description": "A HTML icon tag",
"props": {
"icon": "string",
"fontSize": "string",
2020-05-13 01:44:30 +12:00
"color": "string"
2020-04-24 00:22:41 +12:00
}
},
"datatable": {
2020-05-06 23:17:15 +12:00
"description": "an HTML table that fetches data from a model or view and displays it.",
2020-05-08 01:59:06 +12:00
"data": true,
"props": {
2020-05-08 01:59:06 +12:00
"model": "models"
}
},
"dataform": {
"description": "an HTML table that fetches data from a model or view and displays it.",
2020-05-08 01:59:06 +12:00
"data": true,
"props": {
2020-05-08 01:59:06 +12:00
"model": "models"
}
},
2020-05-08 09:15:09 +12:00
"datalist": {
"description": "A configurable data list that attaches to your backend models.",
"data": true,
"props": {
"model": "models",
"layout": {
"type": "options",
"default": "list",
"options": [
"list",
"grid"
]
}
}
},
2020-06-03 10:26:06 +12:00
"list": {
"description": "A configurable data list that attaches to your backend models.",
"data": true,
"props": {
"model": "models",
"layout": {
"type": "options",
"default": "list",
"options": [
"list",
"grid"
]
}
}
},
2020-05-11 21:28:06 +12:00
"datamap": {
"description": "shiny chart",
"data": true,
"props": {
"model": "models"
}
},
2020-05-08 09:15:09 +12:00
"datachart": {
"description": "shiny chart",
"data": true,
"props": {
"model": "models",
"type": {
"type": "options",
"default": "column2d",
"options": [
"column3d",
"line",
"area2d",
"bar2d",
"bar3d",
"pie2d",
"pie3d",
"doughnut2d",
"doughnut3d",
"pareto2d",
"pareto3d"
]
}
}
},
2020-02-21 06:06:50 +13:00
"link": {
"description": "an HTML anchor <a> tag",
"props": {
"url": "string",
"openInNewTab": "bool",
2020-02-22 00:43:21 +13:00
"text": "string",
2020-05-13 01:44:30 +12:00
"color": "string",
"hoverColor": "string",
2020-02-22 00:43:21 +13:00
"underline": "bool",
"fontSize": "string",
"fontFamily": {
"type": "options",
"default": "initial",
"styleBindingProperty": "font-family",
"options": [
"initial",
"Times New Roman",
"Georgia",
"Arial",
"Arial Black",
"Comic Sans MS",
"Impact",
"Lucida Sans Unicode"
]
}
2020-02-21 06:06:50 +13:00
}
},
"image": {
"description": "an HTML <img> tag",
"props": {
"url": "string",
"className": "string",
"description": "string",
"height": "string",
"width": "string"
}
},
"container": {
"name": "Container",
"description": "An element that contains and lays out other elements. e.g. <div>, <header> etc",
2020-04-24 00:32:36 +12:00
"props": {
"className": "string",
"onLoad": "event",
"type": {
2020-04-24 00:32:36 +12:00
"type": "options",
"options": [
"article",
"aside",
"details",
"div",
"firgure",
"figcaption",
"footer",
"header",
"main",
"mark",
"nav",
"paragraph",
"summary"
],
"default": "div"
}
2020-05-09 07:29:15 +12:00
},
"container": true,
2020-04-24 00:32:36 +12:00
"tags": [
"div",
"container",
"layout"
]
},
"heading": {
"name": "Heading",
"description": "An HTML H1 - H6 tag",
2020-04-24 00:32:36 +12:00
"props": {
"className": "string",
2020-04-22 22:52:55 +12:00
"text": "string",
"type": {
"type": "options",
"default": "h1",
2020-04-24 00:32:36 +12:00
"options": [
"h1",
"h2",
"h3",
"h4",
"h5",
"h6"
]
}
},
"tags": []
2020-02-21 06:06:50 +13:00
},
"thead": {
"name": "TableHead",
"description": "an HTML <thead> tab",
2020-04-24 00:32:36 +12:00
"props": {
"className": "string"
2020-02-21 06:06:50 +13:00
}
},
"tbody": {
"name": "TableBody",
"description": "an HTML <tbody> tab",
2020-04-24 00:32:36 +12:00
"props": {
"className": "string"
2020-02-21 06:06:50 +13:00
}
2019-08-20 08:18:23 +12:00
}
}