first commit
This commit is contained in:
89
wp-includes/blocks/accordion/block.json
Normal file
89
wp-includes/blocks/accordion/block.json
Normal file
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "core/accordion",
|
||||
"title": "Accordion",
|
||||
"category": "design",
|
||||
"description": "Displays a foldable layout that groups content in collapsible sections.",
|
||||
"example": {},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"html": false,
|
||||
"align": [ "wide", "full" ],
|
||||
"background": {
|
||||
"backgroundImage": true,
|
||||
"backgroundSize": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"backgroundImage": true
|
||||
}
|
||||
},
|
||||
"color": {
|
||||
"background": true,
|
||||
"gradients": true
|
||||
},
|
||||
"__experimentalBorder": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"style": true,
|
||||
"width": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"color": true,
|
||||
"radius": true,
|
||||
"style": true,
|
||||
"width": true
|
||||
}
|
||||
},
|
||||
"spacing": {
|
||||
"padding": true,
|
||||
"margin": [ "top", "bottom" ],
|
||||
"blockGap": true
|
||||
},
|
||||
"shadow": true,
|
||||
"layout": true,
|
||||
"ariaLabel": true,
|
||||
"interactivity": true,
|
||||
"typography": {
|
||||
"fontSize": true,
|
||||
"lineHeight": true,
|
||||
"__experimentalFontFamily": true,
|
||||
"__experimentalFontWeight": true,
|
||||
"__experimentalFontStyle": true,
|
||||
"__experimentalTextTransform": true,
|
||||
"__experimentalTextDecoration": true,
|
||||
"__experimentalLetterSpacing": true,
|
||||
"__experimentalDefaultControls": {
|
||||
"fontSize": true
|
||||
}
|
||||
},
|
||||
"contentRole": true
|
||||
},
|
||||
"attributes": {
|
||||
"iconPosition": {
|
||||
"type": "string",
|
||||
"default": "right"
|
||||
},
|
||||
"showIcon": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"autoclose": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"headingLevel": {
|
||||
"type": "number",
|
||||
"default": 3
|
||||
},
|
||||
"levelOptions": {
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"providesContext": {
|
||||
"core/accordion-icon-position": "iconPosition",
|
||||
"core/accordion-show-icon": "showIcon",
|
||||
"core/accordion-heading-level": "headingLevel"
|
||||
},
|
||||
"allowedBlocks": [ "core/accordion-item" ],
|
||||
"textdomain": "default",
|
||||
"viewScriptModule": "@wordpress/block-library/accordion/view"
|
||||
}
|
||||
3
wp-includes/blocks/accordion/style-rtl.css
Normal file
3
wp-includes/blocks/accordion/style-rtl.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.wp-block-accordion{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
1
wp-includes/blocks/accordion/style-rtl.min.css
vendored
Normal file
1
wp-includes/blocks/accordion/style-rtl.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-accordion{box-sizing:border-box}
|
||||
3
wp-includes/blocks/accordion/style.css
Normal file
3
wp-includes/blocks/accordion/style.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.wp-block-accordion{
|
||||
box-sizing:border-box;
|
||||
}
|
||||
1
wp-includes/blocks/accordion/style.min.css
vendored
Normal file
1
wp-includes/blocks/accordion/style.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wp-block-accordion{box-sizing:border-box}
|
||||
Reference in New Issue
Block a user