2020-01-27 11:59:56 +01:00
|
|
|
{
|
2020-01-28 14:00:05 +01:00
|
|
|
"_lib": "./dist/index.js",
|
2020-02-20 18:06:50 +01:00
|
|
|
"_templates": {
|
|
|
|
"indexDatatable": {
|
|
|
|
"description": "Datatable based on an Index",
|
|
|
|
"component": "Datatable"
|
2020-02-21 23:56:37 +01:00
|
|
|
},
|
|
|
|
"recordForm": {
|
|
|
|
"description": "Form for saving a record",
|
|
|
|
"component": "Form"
|
2020-02-20 18:06:50 +01:00
|
|
|
}
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Body1": {
|
|
|
|
"name": "Body1",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Body 1",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Body2": {
|
|
|
|
"name": "Body2",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Body 2",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-03-04 17:48:31 +01:00
|
|
|
"Select": {
|
|
|
|
"name": "Select",
|
|
|
|
"description": "A material design select (aka Dropdown, aka Combobox)",
|
|
|
|
"props": {
|
|
|
|
"onSelect": "event",
|
|
|
|
"value": "string",
|
|
|
|
"width": "string",
|
|
|
|
"variant": {
|
|
|
|
"type": "options",
|
|
|
|
"options": [
|
|
|
|
"filled", "outlined"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"disabled": "bool",
|
|
|
|
"required": "bool",
|
|
|
|
"label": "string",
|
|
|
|
"helperText": "string",
|
|
|
|
"persistent": "bool"
|
|
|
|
}
|
|
|
|
},
|
2020-03-06 11:14:21 +01:00
|
|
|
"List": {
|
|
|
|
"name": "List",
|
|
|
|
"description": "A Material Design List Component.",
|
|
|
|
"props": {
|
|
|
|
"onSelect": "event",
|
|
|
|
"singleSelection": "bool",
|
|
|
|
"variant": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["one-line", "two-line"],
|
|
|
|
"default": "one-line"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2020-03-04 17:48:31 +01:00
|
|
|
"ListItem": {
|
|
|
|
"name": "ListItem",
|
|
|
|
"description": "Use as item in a 'List' or 'Select' component",
|
|
|
|
"props": {
|
|
|
|
"value": "string",
|
|
|
|
"text": "string",
|
|
|
|
"secondaryText": "string",
|
|
|
|
"leadingIcon": "string",
|
|
|
|
"trailingIcon": "string",
|
|
|
|
"selected": "bool",
|
|
|
|
"disabled": "bool",
|
|
|
|
"divideAfter": "bool"
|
|
|
|
}
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Button": {
|
|
|
|
"name": "Button",
|
2020-02-21 12:43:21 +01:00
|
|
|
"children": false,
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "A Material Design button with different variations. It renders as an anchor if href is passed to it.",
|
2020-01-28 14:00:05 +01:00
|
|
|
"props": {
|
2020-02-17 15:00:37 +01:00
|
|
|
"onClick": "event",
|
2020-02-21 16:00:42 +01:00
|
|
|
"variant": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["text", "raised", "unelevated", "outlined"],
|
|
|
|
"default": "text"
|
|
|
|
},
|
|
|
|
"colour": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["primary", "secondary"],
|
|
|
|
"default": "primary"
|
|
|
|
},
|
|
|
|
"size": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["small", "medium", "large"],
|
|
|
|
"default": "medium"
|
|
|
|
},
|
2020-02-17 15:00:37 +01:00
|
|
|
"href": "string",
|
|
|
|
"icon": "string",
|
|
|
|
"trailingIcon": "bool",
|
|
|
|
"fullwidth": "bool",
|
2020-01-28 14:00:05 +01:00
|
|
|
"text": "string",
|
2020-02-17 15:00:37 +01:00
|
|
|
"disabled": "bool"
|
2020-01-28 14:00:05 +01:00
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Caption": {
|
|
|
|
"name": "Caption",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Caption",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-03-20 15:53:04 +01:00
|
|
|
"Card": {
|
|
|
|
"name": "Card",
|
|
|
|
"description": "A Material Card container. Accepts CardHeader, CardBody and CardFooter as possible children",
|
|
|
|
"props": {
|
|
|
|
"width": "string",
|
|
|
|
"height": "string",
|
|
|
|
"variant": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["standard", "outlined"],
|
|
|
|
"default": "standard"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"CardBody": {
|
|
|
|
"name": "CardBody",
|
|
|
|
"description": "A Material CardBody component. Contains the main content of a Material Card component",
|
|
|
|
"props": {
|
|
|
|
"onClick": "event"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"CardImage": {
|
|
|
|
"name": "CardImage",
|
|
|
|
"description": "An image component for the Material Card component",
|
|
|
|
"props": {
|
|
|
|
"displayHorizontal": "bool",
|
|
|
|
"url": "string",
|
|
|
|
"title": "string",
|
|
|
|
"subtitle": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"CardHeader": {
|
|
|
|
"name": "CardHeader",
|
|
|
|
"description": "Displays a icon, title and subtitle above main body of the Material Card component",
|
|
|
|
"props": {
|
|
|
|
"title": "string",
|
|
|
|
"subtitle": "string",
|
|
|
|
"icon": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"CardFooter": {
|
|
|
|
"name": "CardFooter",
|
|
|
|
"description": "Displays buttons / icon buttons as actions for the Material Card component",
|
|
|
|
"props": {
|
|
|
|
"padding": "string"
|
|
|
|
}
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Checkbox": {
|
|
|
|
"name": "Checkbox",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "A Material Design checkbox. Supports aligning label before or after checkbox.",
|
|
|
|
"props": {
|
|
|
|
"onClick": "event",
|
|
|
|
"id": "string",
|
|
|
|
"label": "string",
|
|
|
|
"disabled": "bool",
|
|
|
|
"alignEnd": "bool",
|
|
|
|
"indeterminate": "bool",
|
|
|
|
"checked": "bool"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-03-06 11:14:21 +01:00
|
|
|
"Checkboxgroup": {
|
|
|
|
"name": "Checkboxgroup",
|
|
|
|
"description": "A group of material design checkboxes. Supports row and column orientation.",
|
|
|
|
"props": {
|
|
|
|
"onChange": "event",
|
|
|
|
"label":"string",
|
|
|
|
"orientation": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["row", "column"],
|
|
|
|
"default": "row"
|
|
|
|
},
|
|
|
|
"fullwidth": "bool",
|
|
|
|
"disabled": "bool",
|
|
|
|
"alignEnd": "bool"
|
|
|
|
}
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Datatable": {
|
|
|
|
"name": "Datatable",
|
|
|
|
"description": "A Material Design component to represent tabular data.",
|
2020-02-21 23:56:37 +01:00
|
|
|
"props": {
|
|
|
|
"onLoad":"event"
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-20 18:06:50 +01:00
|
|
|
"DatatableHead": {
|
|
|
|
"name": "DatatableHead",
|
|
|
|
"description": "Material Design <thead>.",
|
|
|
|
"props": {}
|
|
|
|
},
|
|
|
|
"DatatableCell": {
|
|
|
|
"name": "DatatableCell",
|
|
|
|
"description": "Material Design <td>.",
|
|
|
|
"props": {}
|
|
|
|
},
|
|
|
|
"DatatableBody": {
|
|
|
|
"name": "DatatableBody",
|
|
|
|
"description": "Material Design <tbody>.",
|
|
|
|
"props": {}
|
|
|
|
},
|
|
|
|
"DatatableRow": {
|
|
|
|
"name": "DatatableRow",
|
|
|
|
"description": "Material Design <tr>.",
|
|
|
|
"props": {}
|
|
|
|
},
|
2020-03-12 15:07:20 +01:00
|
|
|
"DatePicker": {
|
|
|
|
"name": "DatePicker",
|
|
|
|
"description": "Material Design DatePicker",
|
|
|
|
"props": {
|
|
|
|
"date": "string",
|
|
|
|
"label": "string",
|
|
|
|
"onSelect": "event"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"H1": {
|
|
|
|
"name": "H1",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Headline1",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"H2": {
|
|
|
|
"name": "H2",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Headline2",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"H3": {
|
|
|
|
"name": "H3",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Headline3",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"H4": {
|
|
|
|
"name": "H4",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Headline4",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"H5": {
|
|
|
|
"name": "H5",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Headline5",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"H6": {
|
|
|
|
"name": "H6",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Headline6",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-03-12 15:07:20 +01:00
|
|
|
"IconButton": {
|
|
|
|
"onClick": "event",
|
|
|
|
"disabled": "bool",
|
|
|
|
"href": "string",
|
|
|
|
"icon": "string",
|
|
|
|
"size": {
|
|
|
|
"type":"options",
|
|
|
|
"options": ["small", "medium", "large"],
|
|
|
|
"default": "medium"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Label": {
|
|
|
|
"name": "Label",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "A simple label component that displays its text in the standard Roboto Material Design font",
|
|
|
|
"props": {
|
|
|
|
"bold": "bool"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-03-06 11:14:21 +01:00
|
|
|
"Menu": {
|
|
|
|
"name": "Menu",
|
|
|
|
"description": "A Material Design menu component. Anchor to other components to create a pop-out menu.",
|
|
|
|
"props": {
|
|
|
|
"onSelect": "event",
|
|
|
|
"width": "string",
|
|
|
|
"open": "bool",
|
|
|
|
"useFixedPosition": "bool",
|
|
|
|
"absolutePositionX": "number",
|
|
|
|
"absolutePositionY": "number"
|
|
|
|
}
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Overline": {
|
|
|
|
"name": "Overline",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Overline",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Radiobutton": {
|
|
|
|
"name": "Radiobutton",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "A Material Design radiobutton. Supports aligning label before or after radiobutton.",
|
|
|
|
"props": {
|
|
|
|
"onClick": "event",
|
|
|
|
"id": "string",
|
2020-02-21 16:00:42 +01:00
|
|
|
"label": "string",
|
2020-02-17 15:00:37 +01:00
|
|
|
"name": "string",
|
|
|
|
"checked": "bool",
|
|
|
|
"disabled": "bool",
|
|
|
|
"alignEnd": "bool"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-03-06 11:14:21 +01:00
|
|
|
"Radiobuttongroup": {
|
|
|
|
"name": "Radiobuttongroup",
|
|
|
|
"description": "A Material Design Radiobutton group. Supports row and column orientation.",
|
|
|
|
"props": {
|
|
|
|
"onChange": "event",
|
|
|
|
"name": "string",
|
|
|
|
"orientation": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["row", "column"],
|
|
|
|
"default": "row"
|
|
|
|
},
|
|
|
|
"fullwidth": "bool",
|
|
|
|
"alignEnd": "bool",
|
|
|
|
"disabled": "bool"
|
|
|
|
}
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Sub1": {
|
|
|
|
"name": "Sub1",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Subtitle1",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Sub2": {
|
|
|
|
"name": "Sub2",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "Sets the font properties as Roboto Subtitle2",
|
|
|
|
"props": {
|
|
|
|
"text": "string"
|
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
},
|
2020-02-18 16:05:09 +01:00
|
|
|
"Textfield": {
|
|
|
|
"name": "Textfield",
|
2020-02-17 15:00:37 +01:00
|
|
|
"description": "A Material Design textfield with multiple variants. Can also be converted to a text area / multine text field.",
|
2020-01-28 14:00:05 +01:00
|
|
|
"props": {
|
2020-02-17 15:00:37 +01:00
|
|
|
"onChange": "event",
|
2020-02-21 22:27:55 +01:00
|
|
|
"value": "string",
|
2020-02-17 15:00:37 +01:00
|
|
|
"label": "string",
|
2020-02-21 16:00:42 +01:00
|
|
|
"variant": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["standard", "outlined", "filled"],
|
|
|
|
"default": "standard"
|
|
|
|
},
|
2020-02-17 15:00:37 +01:00
|
|
|
"disabled": "bool",
|
|
|
|
"fullwidth": "bool",
|
2020-02-21 16:00:42 +01:00
|
|
|
"colour": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["primary", "secondary"],
|
|
|
|
"default": "primary"
|
|
|
|
},
|
|
|
|
"size":{
|
|
|
|
"type": "options",
|
|
|
|
"options": ["small", "medium", "large"],
|
|
|
|
"default": "medium"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type": "options",
|
|
|
|
"options": ["text", "password"],
|
|
|
|
"default": "text"
|
|
|
|
},
|
2020-02-17 15:00:37 +01:00
|
|
|
"required": "bool",
|
|
|
|
"minLength": "number",
|
|
|
|
"maxLength": "number",
|
|
|
|
"helperText": "string",
|
|
|
|
"errorText": "string",
|
|
|
|
"placeholder": "string",
|
|
|
|
"icon": "string",
|
|
|
|
"trailingIcon": "bool",
|
|
|
|
"textarea": "bool",
|
|
|
|
"rows": "number",
|
|
|
|
"cols": "number",
|
|
|
|
"validation": "bool",
|
|
|
|
"persistent": "bool"
|
2020-01-28 14:00:05 +01:00
|
|
|
},
|
|
|
|
"tags": []
|
|
|
|
}
|
|
|
|
}
|
2020-02-17 15:00:37 +01:00
|
|
|
|