From 4263f4640baff13b9e72629147827e4eeca993c9 Mon Sep 17 00:00:00 2001 From: Kyle Buchanan Date: Thu, 17 Oct 2019 14:50:28 -0400 Subject: [PATCH 1/3] adding a schema to pfe-icon-panel --- .../pfe-icon-panel/src/pfe-icon-panel.json | 99 +++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 elements/pfe-icon-panel/src/pfe-icon-panel.json 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..94c18b7e56 --- /dev/null +++ b/elements/pfe-icon-panel/src/pfe-icon-panel.json @@ -0,0 +1,99 @@ +{ + "$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" + }, + "color": { + "title": "Background color of circle", + "type": "string", + "enum": [ + "lightest", + "lighter", + "base", + "darker", + "darkest", + "complement", + "accent" + ], + "default": "base" + }, + "centered": { + "title": "Centered", + "type": "Boolean", + "default": false + }, + "stacked": { + "title": "Stacked", + "type": "Boolean", + "default": false + }, + "circled": { + "title": "Circled", + "type": "Boolean", + "default": false + } + } + } + }, + "required": ["slots", "attributes"], + "additionalProperties": false +} From c504a5a666c72f83a924c502074764fc9eff6a6c Mon Sep 17 00:00:00 2001 From: Kyle Buchanan Date: Fri, 18 Oct 2019 13:35:58 -0400 Subject: [PATCH 2/3] updating properties to have prefixed false and lowercasing types --- elements/pfe-icon-panel/src/pfe-icon-panel.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/elements/pfe-icon-panel/src/pfe-icon-panel.json b/elements/pfe-icon-panel/src/pfe-icon-panel.json index 94c18b7e56..2f24b7deb7 100644 --- a/elements/pfe-icon-panel/src/pfe-icon-panel.json +++ b/elements/pfe-icon-panel/src/pfe-icon-panel.json @@ -60,11 +60,13 @@ "properties": { "icon": { "title": "Icon", - "type": "string" + "type": "string", + "prefixed": false }, "color": { "title": "Background color of circle", "type": "string", + "prefixed": false, "enum": [ "lightest", "lighter", @@ -78,17 +80,20 @@ }, "centered": { "title": "Centered", - "type": "Boolean", + "type": "boolean", + "prefixed": false, "default": false }, "stacked": { "title": "Stacked", - "type": "Boolean", + "type": "boolean", + "prefixed": false, "default": false }, "circled": { "title": "Circled", - "type": "Boolean", + "type": "boolean", + "prefixed": false, "default": false } } From 4e7113863a81282948cd632e845a1e8ec3b53e61 Mon Sep 17 00:00:00 2001 From: castastrophe Date: Thu, 24 Oct 2019 13:17:14 -0400 Subject: [PATCH 3/3] [dev]: Update changelog --- CHANGELOG-prerelease.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-prerelease.md b/CHANGELOG-prerelease.md index 7a5f76b938..ce0cb544d8 100644 --- a/CHANGELOG-prerelease.md +++ b/CHANGELOG-prerelease.md @@ -19,7 +19,8 @@ Tag: [v1.0.0-prerelease.26](https://github.com/patternfly/patternfly-elements/re - [93c5e99](https://github.com/patternfly/patternfly-elements/commit/93c5e99428fc57514ef4571caacb1dba199f5303) pfe-icon-panel: maintain icon height in flex display - [d2b16b8](https://github.com/patternfly/patternfly-elements/commit/d2b16b806327bf99e09ca4e7ed0d4aeeeaa37a90) Add larger size to health-index - [a77f5ff](https://github.com/patternfly/patternfly-elements/commit/a77f5ffb6066a6be4778f48ddec05b6759e219ff) feat: compile assets to a dist directory -- [](https://github.com/patternfly/patternfly-elements/commit/) feat: pfe-cta add wind variant styles +- [1f9ec1](https://github.com/patternfly/patternfly-elements/commit/1f9ec10488a4a879d230705c2ea3d783d2df45f6) feat: pfe-cta add wind variant styles +- [](https://github.com/patternfly/patternfly-elements/commit/) feat: adding a schema to pfe-icon-panel #572 ## Prerelease 25 ( 2019-09-10 )