232 lines
5.2 KiB
JSON
232 lines
5.2 KiB
JSON
{
|
|
"_lib": "./dist/index.js",
|
|
"_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"
|
|
}
|
|
},
|
|
"button" : {
|
|
"name": "Button",
|
|
"description": "an html <button />",
|
|
"props": {
|
|
"contentText": { "type": "string", "default": "Button" },
|
|
"className": "string",
|
|
"disabled": "bool",
|
|
"onClick": "event",
|
|
"background": "string",
|
|
"color": "string",
|
|
"border": "string",
|
|
"padding": "string",
|
|
"hoverColor": "string",
|
|
"hoverBackground": "string",
|
|
"hoverBorder": "string"
|
|
},
|
|
"tags": ["layout"]
|
|
},
|
|
"login" : {
|
|
"name": "Login Control",
|
|
"description": "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",
|
|
"inputClass": "string"
|
|
},
|
|
"tags": ["login", "credentials", "password", "logon"]
|
|
},
|
|
"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"
|
|
},
|
|
"className": "string"
|
|
},
|
|
"tags": ["form"]
|
|
},
|
|
"select" : {
|
|
"name": "Input",
|
|
"description": "An HTML input",
|
|
"children": false,
|
|
"props" : {
|
|
"value": "string",
|
|
"options": {
|
|
"type" : "array",
|
|
"elementDefinition" : {
|
|
"id":"string",
|
|
"value":"string"
|
|
}
|
|
},
|
|
"className": "string"
|
|
},
|
|
"tags": ["form"]
|
|
},
|
|
"text": {
|
|
"name": "Text",
|
|
"description": "stylable block of text",
|
|
"children": false,
|
|
"props" : {
|
|
"value": "string",
|
|
"font": "string",
|
|
"color": "string",
|
|
"textAlign": {
|
|
"type": "options",
|
|
"default":"inline",
|
|
"options": [
|
|
"left", "center", "right"
|
|
]
|
|
},
|
|
"verticalAlign": {
|
|
"type": "options",
|
|
"default":"inline",
|
|
"options": [
|
|
"top", "middle", "bottom"
|
|
]
|
|
}
|
|
},
|
|
"tags": ["div", "container"]
|
|
},
|
|
"nav": {
|
|
"name": "Nav",
|
|
"description": "A nav - a side bar of buttons that control the currently active component",
|
|
"props" : {
|
|
"navBarBackground": {"type" :"string", "default":"silver"},
|
|
"navBarBorder": "string",
|
|
"navBarColor": {"type" :"string", "default":"black"},
|
|
"selectedItemBackground": {"type" :"string", "default":"white"},
|
|
"selectedItemColor": {"type" :"string", "default":"black"},
|
|
"selectedItemBorder": "string",
|
|
"itemHoverBackground": {"type" :"string", "default":"gainsboro"},
|
|
"itemHoverColor": {"type" :"string", "default":"black"},
|
|
"selectedItem":"string",
|
|
"hideNavBar":"bool"
|
|
|
|
},
|
|
"tags": ["nav", "navigation", "sidebar"]
|
|
},
|
|
"table": {
|
|
"name": "Table",
|
|
"description": "An HTML table",
|
|
"props" : {
|
|
"data": "state",
|
|
"columns": {
|
|
"type": "array",
|
|
"elementDefinition" : {
|
|
"title": "string",
|
|
"value": "string"
|
|
}
|
|
},
|
|
"onRowClick":"event",
|
|
"tableClass": {"type":"string", "default":"table-default"},
|
|
"theadClass": {"type":"string", "default":"thead-default"},
|
|
"tbodyClass": {"type":"string", "default":"tbody-default"},
|
|
"trClass": {"type":"string", "default":"tr-default"},
|
|
"thClass": {"type":"string", "default":"th-default"}
|
|
},
|
|
"tags": ["table"]
|
|
},
|
|
"div": {
|
|
"name": "Div",
|
|
"description": "An HTML div tag",
|
|
"props" : {
|
|
"className":"string",
|
|
"onLoad": "event"
|
|
},
|
|
"container": true,
|
|
"tags": ["div", "container", "layout"]
|
|
},
|
|
"h1": {
|
|
"importPath": "h1",
|
|
"name": "H1",
|
|
"description": "An HTML H1 tag",
|
|
"props" : {
|
|
"text": "string",
|
|
"className":"string"
|
|
},
|
|
"tags": []
|
|
},
|
|
"h2": {
|
|
"importPath": "h2",
|
|
"name": "H2",
|
|
"description": "An HTML H2 tag",
|
|
"props" : {
|
|
"text": "string",
|
|
"className":"string"
|
|
},
|
|
"tags": []
|
|
},
|
|
"h3": {
|
|
"importPath": "h3",
|
|
"name": "H3",
|
|
"description": "An HTML H3 tag",
|
|
"props" : {
|
|
"text": "string",
|
|
"className":"string"
|
|
},
|
|
"tags": []
|
|
},
|
|
"h4": {
|
|
"importPath": "h4",
|
|
"name": "H4",
|
|
"description": "An HTML H4 tag",
|
|
"props" : {
|
|
"text": "string",
|
|
"className":"string"
|
|
},
|
|
"tags": []
|
|
},
|
|
"h5": {
|
|
"importPath": "h5",
|
|
"name": "H5",
|
|
"description": "An HTML H5 tag",
|
|
"props" : {
|
|
"text": "string",
|
|
"className":"string"
|
|
},
|
|
"tags": ["div", "container", "layout"]
|
|
},
|
|
"h6": {
|
|
"importPath": "h6",
|
|
"name": "H6",
|
|
"description": "An HTML H6 tag",
|
|
"props" : {
|
|
"text": "string",
|
|
"className":"string"
|
|
},
|
|
"tags": []
|
|
}
|
|
} |