{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "cozy-block/accordion",
  "version": "1.0.0",
  "title": "Accordion",
  "description": "A flexible FAQ/accordion block that supports both manually-added default content and dynamically fetched content from a Custom Post Type (e.g., FAQs).",
  "category": "cozy-block",
  "keywords": [
    "accordion",
    "faq"
  ],
  "textdomain": "cozy-addons",
  "attributes": {
    "cover": {
      "type": "string",
      "default": ""
    },
    "blockClientId": {
      "type": "string",
      "default": ""
    },
    "source": {
      "type": "string",
      "default": ""
    },
    "layout": {
      "type": "object",
      "default": {
        "search": true,
        "category": true,
        "count": true,
        "orientation": "stack",
        "gap": "16px",
        "width": "240px",
        "justify": "center"
      }
    },
    "generateSchema": {
      "type": "boolean",
      "default": false
    },
    "query": {
      "type": "object",
      "default": {
        "perPage": 5,
        "offset": 0,
        "order": "desc",
        "orderBy": "date",
        "category": []
      }
    },
    "rowGap": {
      "type": "number",
      "default": 26
    },
    "titleTag": {
      "type": "string",
      "default": "h3"
    },
    "titleJustify": {
      "type": "string",
      "default": "space-between"
    },
    "icon": {
      "type": "object",
      "default": {
        "viewBox": {
          "vx": 0,
          "vy": 0,
          "vw": 22,
          "vh": 22
        },
        "gap": "6px",
        "path": "M9.71429 21.8571V12.1429H0V9.71429H9.71429V0H12.1429V9.71429H21.8571V12.1429H12.1429V21.8571H9.71429Z",
        "activePath": "M0 2.83333V0H17V2.83333H0Z",
        "activeViewBox": {
          "vx": 0,
          "vy": 0,
          "vw": 17,
          "vh": 3
        },
        "view": "default",
        "position": "right",
        "layout": "fill",
        "size": 16,
        "color": "#000",
        "colorHover": "",
        "opacity": 1,
        "rotate": 0,
        "rotateActive": 0
      }
    },
    "iconBoxStyles": {
      "type": "object",
      "default": {
        "desktop": {
          "padding": {
            "top": "0px",
            "right": "0px",
            "bottom": "0px",
            "left": "0px"
          },
          "width": "",
          "height": ""
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "100px",
        "borderColorHover": "",
        "bgColor": "",
        "bgColorHover": ""
      }
    },
    "containerStyles": {
      "type": "object",
      "default": {
        "desktop": {
          "padding": {
            "top": "0px",
            "right": "0px",
            "bottom": "0px",
            "left": "0px"
          }
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "",
        "bgColor": ""
      }
    },
    "accordionStyles": {
      "type": "object",
      "default": {
        "desktop": {
          "padding": {
            "top": "0px",
            "right": "0px",
            "bottom": "0px",
            "left": "0px"
          }
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "",
        "bgColor": "",
        "borderColorActive": ""
      }
    },
    "search": {
      "type": "object",
      "default": {
        "placeholder": "Look for answers...",
        "width": "560px",
        "margin": {
          "top": "",
          "bottom": ""
        },
        "border": {
          "width": "1px",
          "style": "solid",
          "color": "#878787"
        },
        "radius": "100px",
        "desktop": {
          "font": {
            "size": "16px"
          }
        },
        "font": {
          "weight": "",
          "family": ""
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "text": "",
          "textActive": "",
          "bg": "",
          "bgActive": "",
          "borderActive": "#0c50ff"
        }
      }
    },
    "category": {
      "type": "object",
      "default": {
        "allTab": true,
        "allTabPlaceholder": "All",
        "order": "desc",
        "orderby": "count",
        "notFoundText": "We couldn’t find any items matching your request. Try adjusting your search or check back later for new content.",
        "gap": "12px",
        "margin": {
          "top": "16px",
          "bottom": "44px"
        },
        "padding": {
          "top": "5px",
          "right": "16px",
          "bottom": "5px",
          "left": "16px"
        },
        "border": {
          "width": "",
          "style": "",
          "color": ""
        },
        "borderActive": {
          "width": "",
          "style": "",
          "color": ""
        },
        "radius": "100px",
        "desktop": {
          "font": {
            "size": "14px"
          }
        },
        "font": {
          "weight": "",
          "family": ""
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": {
          "text": "#010101",
          "bg": "#f3f3f3",
          "textActive": "#fffffe",
          "bgActive": "#0c50ff"
        }
      }
    },
    "titleTypography": {
      "type": "object",
      "default": {
        "margin": {
          "top": "",
          "bottom": ""
        },
        "desktop": {
          "font": {
            "size": "20px"
          }
        },
        "font": {
          "weight": "",
          "family": ""
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": "",
        "colorActive": ""
      }
    },
    "typography": {
      "type": "object",
      "default": {
        "desktop": {
          "font": {
            "size": ""
          }
        },
        "font": {
          "weight": "",
          "family": ""
        },
        "letterCase": "none",
        "decoration": "none",
        "lineHeight": "",
        "letterSpacing": "",
        "color": ""
      }
    }
  },
  "providesContext": {
    "icon": "icon",
    "titleTag": "titleTag",
    "titleJustify": "titleJustify"
  },
  "supports": {
    "html": false
  },
  "editorScript": [
    "file:./index.js",
    "file:../index.js"
  ],
  "editorStyle": "file:./index.css",
  "style": [
    "file:./style-index.css",
    "cozy-block--global-block-styles"
  ],
  "viewScript": [
    "cozy-block--accordion--frontend-script"
  ],
  "render": "file:./render.php"
}