diff --git a/CHANGELOG-prerelease.md b/CHANGELOG-prerelease.md index 941aa9ecb1..e4e241f32f 100644 --- a/CHANGELOG-prerelease.md +++ b/CHANGELOG-prerelease.md @@ -3,6 +3,7 @@ Tag: [v1.0.0-prerelease.28](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.28) - []() fix: adding a mutation observer to pfe-content-set so it works in Angular +- []() feat: adding a schema to pfe-icon-panel #572 ## Prerelease 27 ( 2019-10-25 ) diff --git a/elements/pfe-icon-panel/src/pfe-icon-panel.json b/elements/pfe-icon-panel/src/pfe-icon-panel.json new file mode 100644 index 0000000000..2f24b7deb7 --- /dev/null +++ b/elements/pfe-icon-panel/src/pfe-icon-panel.json @@ -0,0 +1,104 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Icon Panel", + "description": "This element creates a header, body, and footer region in which to place content or other components.", + "type": "object", + "tag": "pfe-icon-panel", + "class": "pfe-icon-panel", + "category": "combo", + "properties": { + "slots": { + "title": "Slots", + "description": "Definition of the supported slots", + "type": "object", + "properties": { + "header": { + "title": "Header", + "type": "array", + "namedSlot": true, + "items": { + "title": "Header item", + "oneOf": [ + { + "$ref": "raw" + } + ] + } + }, + "body": { + "title": "Body", + "type": "array", + "namedSlot": false, + "items": { + "title": "Body item", + "oneOf": [ + { + "$ref": "raw" + } + ] + } + }, + "footer": { + "title": "Footer", + "type": "array", + "namedSlot": true, + "maxItems": 3, + "items": { + "title": "Footer item", + "oneOf": [ + { + "$ref": "raw" + } + ] + } + } + } + }, + "attributes": { + "title": "Attributes", + "type": "object", + "properties": { + "icon": { + "title": "Icon", + "type": "string", + "prefixed": false + }, + "color": { + "title": "Background color of circle", + "type": "string", + "prefixed": false, + "enum": [ + "lightest", + "lighter", + "base", + "darker", + "darkest", + "complement", + "accent" + ], + "default": "base" + }, + "centered": { + "title": "Centered", + "type": "boolean", + "prefixed": false, + "default": false + }, + "stacked": { + "title": "Stacked", + "type": "boolean", + "prefixed": false, + "default": false + }, + "circled": { + "title": "Circled", + "type": "boolean", + "prefixed": false, + "default": false + } + } + } + }, + "required": ["slots", "attributes"], + "additionalProperties": false +}