-
Notifications
You must be signed in to change notification settings - Fork 106
adding a schema to pfe-icon-panel #572
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4263f46
adding a schema to pfe-icon-panel
kylebuch8 6ba7652
Merge branch 'master' into pfe-icon-panel-schema
kylebuch8 c504a5a
updating properties to have prefixed false and lowercasing types
kylebuch8 9aef6cc
Merge branch 'master' of github.com:patternfly/patternfly-elements in…
4e71138
[dev]: Update changelog
ca5af3d
Merge branch 'master' into pfe-icon-panel-schema
kylebuch8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 | ||
starryeyez024 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| } | ||
| }, | ||
| "required": ["slots", "attributes"], | ||
| "additionalProperties": false | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.