2019-08-19 22:18:23 +02:00
|
|
|
{
|
2019-09-11 06:18:00 +02:00
|
|
|
"_lib": "./dist/index.js",
|
2019-10-07 07:03:41 +02:00
|
|
|
"_generators": {
|
|
|
|
"_lib": "./dist/generators.js",
|
|
|
|
"app": {
|
|
|
|
"name": "App",
|
|
|
|
"description": "Generate app based on your backend"
|
|
|
|
},
|
|
|
|
"forms": {
|
|
|
|
"name": "Forms",
|
|
|
|
"description": "Generate forms, based on your records"
|
|
|
|
},
|
|
|
|
"buttons": {
|
|
|
|
"name": "Buttons",
|
|
|
|
"description": "Generate some styled buttons"
|
|
|
|
},
|
|
|
|
"headers": {
|
|
|
|
"name": "Headers",
|
|
|
|
"description": "Generate some styled headings"
|
|
|
|
},
|
|
|
|
"nav": {
|
|
|
|
"name": "Nav bar",
|
|
|
|
"description": "Generate a nav bar, based n your root records"
|
|
|
|
},
|
|
|
|
"indexTables": {
|
|
|
|
"name": "Nav bar",
|
|
|
|
"description": "Generate a table based on an index"
|
|
|
|
}
|
|
|
|
},
|
2019-08-19 22:18:23 +02:00
|
|
|
"button" : {
|
|
|
|
"name": "Button",
|
|
|
|
"description": "an html <button />",
|
|
|
|
"props": {
|
|
|
|
"contentText": { "type": "string", "default": "Button" },
|
2020-01-18 10:00:18 +01:00
|
|
|
"className": "string",
|
2019-09-20 09:01:35 +02:00
|
|
|
"disabled": "bool",
|
2019-10-07 07:03:41 +02:00
|
|
|
"onClick": "event",
|
|
|
|
"background": "string",
|
|
|
|
"color": "string",
|
|
|
|
"border": "string",
|
|
|
|
"padding": "string",
|
|
|
|
"hoverColor": "string",
|
|
|
|
"hoverBackground": "string",
|
|
|
|
"hoverBorder": "string"
|
2019-08-19 22:18:23 +02:00
|
|
|
},
|
2020-01-20 22:57:27 +01:00
|
|
|
"tags": ["layout"]
|
2019-08-27 08:32:56 +02:00
|
|
|
},
|
|
|
|
"login" : {
|
|
|
|
"name": "Login Control",
|
2019-10-07 07:03:41 +02:00
|
|
|
"description": "A control that accepts username, password an also handles password resets",
|
2019-08-27 08:32:56 +02:00
|
|
|
"props" : {
|
|
|
|
"logo": "asset",
|
|
|
|
"loginRedirect": "string",
|
|
|
|
"usernameLabel": {"type":"string", "default": "Username"},
|
|
|
|
"passwordLabel": {"type":"string", "default": "Password"},
|
2019-09-19 05:35:40 +02:00
|
|
|
"loginButtonLabel": {"type":"string", "default": "Login"},
|
2019-09-29 07:40:06 +02:00
|
|
|
"buttonClass": "string",
|
|
|
|
"inputClass": "string"
|
2019-08-27 08:32:56 +02:00
|
|
|
},
|
|
|
|
"tags": ["login", "credentials", "password", "logon"]
|
|
|
|
},
|
2019-10-16 06:38:45 +02:00
|
|
|
"input" : {
|
|
|
|
"name": "Input",
|
|
|
|
"description": "An HTML input",
|
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
|
|
|
"type": {
|
|
|
|
"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-01-18 10:00:18 +01:00
|
|
|
"className": "string"
|
2019-10-16 06:38:45 +02:00
|
|
|
},
|
|
|
|
"tags": ["form"]
|
|
|
|
},
|
|
|
|
"select" : {
|
2020-02-14 12:51:45 +01:00
|
|
|
"name": "Select",
|
|
|
|
"description": "An HTML <select> (dropdown)",
|
2019-10-16 06:38:45 +02:00
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
2020-01-18 10:00:18 +01:00
|
|
|
"className": "string"
|
2020-02-14 12:51:45 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"option" : {
|
|
|
|
"name": "Option",
|
|
|
|
"description": "An HTML <option>, to be used with <select>",
|
|
|
|
"children": false,
|
|
|
|
"props" : {
|
|
|
|
"value": "string",
|
|
|
|
"text": "string"
|
|
|
|
}
|
2019-10-16 06:38:45 +02:00
|
|
|
},
|
2019-09-19 05:35:40 +02:00
|
|
|
"text": {
|
|
|
|
"name": "Text",
|
2019-10-07 07:03:41 +02:00
|
|
|
"description": "stylable block of text",
|
2020-01-18 10:00:18 +01:00
|
|
|
"children": false,
|
2019-09-19 05:35:40 +02:00
|
|
|
"props" : {
|
2020-02-14 12:51:45 +01:00
|
|
|
"text": "string",
|
2019-09-26 06:40:58 +02:00
|
|
|
"font": "string",
|
|
|
|
"color": "string",
|
|
|
|
"textAlign": {
|
|
|
|
"type": "options",
|
|
|
|
"default":"inline",
|
|
|
|
"options": [
|
|
|
|
"left", "center", "right"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"verticalAlign": {
|
|
|
|
"type": "options",
|
|
|
|
"default":"inline",
|
|
|
|
"options": [
|
|
|
|
"top", "middle", "bottom"
|
|
|
|
]
|
2020-02-14 12:51:45 +01:00
|
|
|
},
|
|
|
|
"formattingTag": {
|
|
|
|
"type": "options",
|
|
|
|
"default":"none",
|
|
|
|
"options": [
|
|
|
|
"none",
|
|
|
|
"<b> - bold",
|
|
|
|
"<strong> - important",
|
|
|
|
"<i> - italic",
|
|
|
|
"<em> - emphasized",
|
|
|
|
"<mark> - marked text",
|
|
|
|
"<small> - small",
|
|
|
|
"<del> - deleted",
|
|
|
|
"<ins> - inserted",
|
|
|
|
"<sub> - subscript",
|
|
|
|
"<sup> - superscript"
|
|
|
|
]
|
2019-09-19 05:35:40 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"tags": ["div", "container"]
|
2019-09-26 06:40:58 +02:00
|
|
|
},
|
2020-02-14 12:51:45 +01:00
|
|
|
"container": {
|
|
|
|
"name": "Container",
|
|
|
|
"description": "An element that contains and lays out other elements. e.g. <div>, <header> etc",
|
2019-10-14 09:32:20 +02:00
|
|
|
"props" : {
|
|
|
|
"className":"string",
|
2020-02-14 12:51:45 +01:00
|
|
|
"onLoad": "event",
|
|
|
|
"type": {
|
|
|
|
"type": "options",
|
|
|
|
"options": [
|
|
|
|
"article",
|
|
|
|
"aside",
|
|
|
|
"details",
|
|
|
|
"div",
|
|
|
|
"firgure",
|
|
|
|
"figcaption",
|
|
|
|
"footer",
|
|
|
|
"header",
|
|
|
|
"main",
|
|
|
|
"mark",
|
|
|
|
"nav",
|
|
|
|
"paragraph",
|
|
|
|
"summary"
|
|
|
|
],
|
|
|
|
"default": "div"
|
|
|
|
}
|
2019-10-14 09:32:20 +02:00
|
|
|
},
|
2020-01-20 22:57:27 +01:00
|
|
|
"container": true,
|
2019-10-14 09:32:20 +02:00
|
|
|
"tags": ["div", "container", "layout"]
|
2019-10-16 06:38:45 +02:00
|
|
|
},
|
2020-02-14 12:51:45 +01:00
|
|
|
"heading": {
|
|
|
|
"name": "Heading",
|
|
|
|
"description": "An HTML H1 - H6 tag",
|
2019-10-16 06:38:45 +02:00
|
|
|
"props" : {
|
2020-02-14 12:51:45 +01:00
|
|
|
"className":"string",
|
|
|
|
"type": {
|
|
|
|
"type": "options",
|
|
|
|
"default": "h1",
|
|
|
|
"options": ["h1","h2","h3","h4","h5","h6"]
|
|
|
|
}
|
2019-10-16 06:38:45 +02:00
|
|
|
},
|
|
|
|
"tags": []
|
2019-08-19 22:18:23 +02:00
|
|
|
}
|
|
|
|
}
|