feat(heading): add Heading and Section components (#1961)

This commit is contained in:
Eric Liu 2024-04-21 14:27:26 -07:00 committed by GitHub
commit 76210d68d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 287 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{
"total": 166,
"total": 168,
"components": [
{
"moduleName": "Accordion",
@ -5386,6 +5386,21 @@
"events": [],
"typedefs": []
},
{
"moduleName": "Heading",
"filePath": "src/Heading/Heading.svelte",
"props": [],
"moduleExports": [],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
"events": [],
"typedefs": [
{
"type": "1 | 2 | 3 | 4 | 5 | 6",
"name": "SectionLevel",
"ts": "type SectionLevel = 1 | 2 | 3 | 4 | 5 | 6"
}
]
},
{
"moduleName": "ImageLoader",
"filePath": "src/ImageLoader/ImageLoader.svelte",
@ -10181,6 +10196,46 @@
"typedefs": [],
"rest_props": { "type": "Element", "name": "div" }
},
{
"moduleName": "Section",
"filePath": "src/Heading/Section.svelte",
"props": [
{
"name": "level",
"kind": "let",
"description": "Specify the level the section should start at.",
"type": "SectionLevel",
"value": "1",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,
"constant": false,
"reactive": false
},
{
"name": "tag",
"kind": "let",
"description": "Specify the tag name",
"type": "keyof HTMLElementTagNameMap",
"value": "\"section\"",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,
"constant": false,
"reactive": false
}
],
"moduleExports": [],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
"events": [],
"typedefs": [
{
"type": "1 | 2 | 3 | 4 | 5 | 6",
"name": "SectionLevel",
"ts": "type SectionLevel = 1 | 2 | 3 | 4 | 5 | 6"
}
]
},
{
"moduleName": "Select",
"filePath": "src/Select/Select.svelte",