{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 3,
    "version": "0.1.0",
    "name": "premium/accordion",
    "title": "Accordion",
    "textdomain": "premium-blocks-for-gutenberg",
    "description": "Display collapsed content like FAQs using Premium Accordion Block.",
    "keywords": ["accordion", "collapse", "faq", "toggle"],
    "category": "premium-blocks",
    "attributes": {
        "blockId": {
            "type": "string",
            "default": ""
        },
        "repeaterItems": {
            "type": "array",
            "default": []
        },
        "direction": {
            "type": "string",
            "default": "ltr"
        },
        "titleTag": {
            "type": "string",
            "default": "h4"
        },
        "titleStyles": {
            "type": "array",
            "default": [
                {
                    "titleColor": "",
                    "titleBack": "#f2f2f2"
                }
            ],
            "isStyle": true
        },
        "arrowStyles": {
            "type": "array",
            "default": [
                {
                    "arrowColor": "",
                    "arrowBack": "",
                    "arrowPos": "out",
                    "arrowPadding": "",
                    "arrowRadius": "",
                    "arrowSize": 15
                }
            ],
            "isStyle": true
        },
        "descStyles": {
            "type": "array",
            "default": [
                {
                    "descColor": "",
                    "descBack": ""
                }
            ],
            "isStyle": true
        },
        "descAlign": {
            "type": "object",
            "default": {
                "Desktop": "",
                "Tablet": "",
                "Mobile": ""
            },
            "isStyle": true
        },
        "contentType": {
            "type": "string",
            "default": "text"
        },
        "titleMargin": {
            "type": "object",
            "default": {
                "Desktop": 10,
                "Tablet": "",
                "Mobile": "",
                "unit": {
                    "Desktop": "px",
                    "Tablet": "px",
                    "Mobile": "px"
                }
            },
            "isStyle": true
        },
        "titlePadding": {
            "type": "object",
            "default": {
                "Desktop": {
                    "top": "",
                    "right": "",
                    "bottom": "",
                    "left": ""
                },
                "Tablet": {
                    "top": "",
                    "right": "",
                    "bottom": "",
                    "left": ""
                },
                "Mobile": {
                    "top": "",
                    "right": "",
                    "bottom": "",
                    "left": ""
                },
                "unit": {
                    "Desktop": "px",
                    "Tablet": "px",
                    "Mobile": "px"
                }
            },
            "isStyle": true
        },
        "descPadding": {
            "type": "object",
            "default": {
                "Desktop": {
                    "top": 15,
                    "right": 15,
                    "bottom": 15,
                    "left": 15
                },
                "Tablet": {
                    "top": "",
                    "right": "",
                    "bottom": "",
                    "left": ""
                },
                "Mobile": {
                    "top": "",
                    "right": "",
                    "bottom": "",
                    "left": ""
                },
                "unit": {
                    "Desktop": "px",
                    "Tablet": "px",
                    "Mobile": "px"
                },
                "link": true
            },
            "isStyle": true
        },
        "titleBorder": {
            "type": "object",
            "default": {
                "borderType": "",
                "borderColor": "",
                "borderWidth": {
                    "Desktop": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "Tablet": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "Mobile": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "link": true
                },
                "borderRadius": {
                    "Desktop": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "Tablet": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "Mobile": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "link": true
                }
            },
            "isStyle": true
        },
        "descBorder": {
            "type": "object",
            "default": {
                "borderType": "",
                "borderColor": "",
                "borderWidth": {
                    "Desktop": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "Tablet": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "Mobile": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "link": true
                },
                "borderRadius": {
                    "Desktop": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "Tablet": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "Mobile": {
                        "top": "",
                        "right": "",
                        "bottom": "",
                        "left": ""
                    },
                    "link": true
                }
            },
            "isStyle": true
        },
        "titleTypography": {
            "type": "object",
            "default": {
                "fontWeight": "Default",
                "fontStyle": "",
                "textTransform": "",
                "fontFamily": "Default",
                "textDecoration": "",
                "fontSize": {
                    "Desktop": "",
                    "Tablet": "",
                    "Mobile": "",
                    "unit": {
                        "Desktop": "px",
                        "Tablet": "px",
                        "Mobile": "px"
                    }
                },
                "lineHeight": {
                    "Desktop": "",
                    "Tablet": "",
                    "Mobile": "",
                    "unit": "px"
                },
                "letterSpacing": {
                    "Desktop": "",
                    "Tablet": "",
                    "Mobile": "",
                    "unit": "px"
                }
            },
            "isStyle": true
        },
        "descTypography": {
            "type": "object",
            "default": {
                "fontWeight": "Default",
                "fontStyle": "",
                "textTransform": "",
                "fontFamily": "Default",
                "textDecoration": "",
                "fontSize": {
                    "Desktop": "",
                    "Tablet": "",
                    "Mobile": "",
                    "unit": {
                        "Desktop": "px",
                        "Tablet": "px",
                        "Mobile": "px"
                    }
                },
                "lineHeight": {
                    "Desktop": "",
                    "Tablet": "",
                    "Mobile": "",
                    "unit": "px"
                },
                "letterSpacing": {
                    "Desktop": "",
                    "Tablet": "",
                    "Mobile": "",
                    "unit": "px"
                }
            },
            "isStyle": true
        },
        "titleTextShadow": {
            "type": "object",
            "default": {
                "color": "transparent",
                "blur": "10",
                "horizontal": "0",
                "vertical": "0"
            },
            "isStyle": true
        },
        "textShadow": {
            "type": "object",
            "default": {
                "color": "transparent",
                "blur": "10",
                "horizontal": "0",
                "vertical": "0"
            },
            "isStyle": true
        },
        "collapseOthers": {
            "type": "boolean",
            "default": true
        },
        "expandFirstItem": {
            "type": "boolean",
            "default": true
        },
        "titleHoverColor": {
            "type": "string",
            "default": ""
        },
        "titleHoverBack": {
            "type": "string",
            "default": ""
        },
        "titleActiveColor": {
            "type": "string",
            "default": ""
        },
        "titleActiveBack": {
            "type": "string",
            "default": ""
        },
        "arrowHoverColor": {
            "type": "string",
            "default": ""
        },
        "arrowHoverBack": {
            "type": "string",
            "default": ""
        },
        "arrowActiveColor": {
            "type": "string",
            "default": ""
        },
        "arrowActiveBack": {
            "type": "string",
            "default": ""
        },
        "faqSchema": {
            "type": "boolean",
            "default": false
        }
    },
    "editorScript": "pbg-blocks-js",
    "editorStyle": "premium-blocks-editor-css",
    "providesContext": {
        "titleTag": "titleTag",
        "contentType": "contentType",
        "direction": "direction",
        "arrowStyles": "arrowStyles",
        "collapseOthers": "collapseOthers",
        "expandFirstItem": "expandFirstItem"
    }
}
