forked from storybookjs/storybook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request storybookjs#15138 from thepassle/feat/support-cust…
…om-elements-manifest-v1 Web-components: Custom Elements Manifest v1 support
- Loading branch information
Showing
17 changed files
with
1,022 additions
and
309 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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
95 changes: 95 additions & 0 deletions
95
examples/web-components-kitchen-sink/custom-elements-experimental.json
This file contains 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,95 @@ | ||
{ | ||
"version": "experimental", | ||
"tags": [ | ||
{ | ||
"name": "demo-wc-card", | ||
"path": "./demo-wc-card.js", | ||
"description": "This is a container looking like a card with a back and front side you can switch", | ||
"attributes": [ | ||
{ | ||
"name": "back-side", | ||
"description": "Indicates that the back of the card is shown", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "header", | ||
"description": "Header message", | ||
"type": "string", | ||
"default": "\"Your Message\"" | ||
}, | ||
{ | ||
"name": "rows", | ||
"description": "Data rows", | ||
"type": "object", | ||
"default": "[]" | ||
} | ||
], | ||
"properties": [ | ||
{ | ||
"name": "backSide", | ||
"attribute": "back-side", | ||
"description": "Indicates that the back of the card is shown", | ||
"type": "boolean", | ||
"default": "false" | ||
}, | ||
{ | ||
"name": "header", | ||
"attribute": "header", | ||
"description": "Header message", | ||
"type": "string", | ||
"default": "\"Your Message\"" | ||
}, | ||
{ | ||
"name": "rows", | ||
"attribute": "rows", | ||
"description": "Data rows", | ||
"type": "object", | ||
"default": "[]" | ||
} | ||
], | ||
"events": [ | ||
{ | ||
"name": "side-changed", | ||
"description": "Fires whenever it switches between front/back" | ||
} | ||
], | ||
"methods": [ | ||
{ | ||
"name": "testMethod", | ||
"description": "Some web component frameworks like Stencil generate extra docs for methods. These are also displayed in the ArgsTable." | ||
} | ||
], | ||
"slots": [ | ||
{ | ||
"name": "", | ||
"description": "This is an unnamed slot (the default slot)" | ||
} | ||
], | ||
"cssProperties": [ | ||
{ | ||
"name": "--demo-wc-card-header-font-size", | ||
"description": "Header font size" | ||
}, | ||
{ | ||
"name": "--demo-wc-card-front-color", | ||
"description": "Font color for front" | ||
}, | ||
{ | ||
"name": "--demo-wc-card-back-color", | ||
"description": "Font color for back" | ||
} | ||
], | ||
"cssParts": [ | ||
{ | ||
"name": "front", | ||
"description": "Front of the card" | ||
}, | ||
{ | ||
"name": "back", | ||
"description": "Back of the card" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.