{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "flexa/post-filter",
  "version": "1.0.0",
  "title": "Post Filter",
  "category": "flexa",
  "description": "A filter bar for a Post Grid — drop in a search box, category and tag filters and a reset link, pick the grid they drive, and visitors narrow the results without leaving the page.",
  "keywords": [
    "flexa",
    "filter",
    "search",
    "category",
    "tag",
    "taxonomy",
    "post grid"
  ],
  "textdomain": "flexa-block",
  "example": {
    "attributes": {
      "isExamplePreview": true
    },
    "viewportWidth": 800
  },
  "providesContext": {
    "flexa/filterTarget": "targetGridId"
  },
  "attributes": {
    "isExamplePreview": {
      "type": "boolean",
      "default": false
    },
    "blockId": {
      "type": "string"
    },
    "targetGridId": {
      "type": "string",
      "default": ""
    },
    "formLabel": {
      "type": "string",
      "default": "Filter posts"
    },
    "submitText": {
      "type": "string",
      "default": "Filter"
    },
    "direction": {
      "type": "string",
      "default": "row",
      "enum": [
        "row",
        "column"
      ]
    },
    "gap": {
      "type": "object",
      "default": {
        "desktop": {
          "value": "12",
          "unit": "px"
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "align": {
      "type": "string",
      "default": "flex-start",
      "enum": [
        "flex-start",
        "center",
        "flex-end",
        "stretch"
      ]
    },
    "labelTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "labelColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "controlTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "controlColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "controlPlaceholderColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "controlBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "controlBorder": {
      "type": "object",
      "default": {
        "style": "",
        "width": {
          "top": "",
          "right": "",
          "bottom": "",
          "left": "",
          "unit": "px"
        },
        "color": {
          "light": "",
          "dark": ""
        },
        "radius": {
          "topLeft": "",
          "topRight": "",
          "bottomRight": "",
          "bottomLeft": "",
          "unit": "px"
        }
      }
    },
    "controlBorderFocus": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "controlPadding": {
      "type": "object",
      "default": {}
    },
    "buttonColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonColorHover": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonBackgroundHover": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonPadding": {
      "type": "object",
      "default": {}
    },
    "buttonRadius": {
      "type": "object",
      "default": {}
    },
    "spacing": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "background": {
      "type": "object",
      "default": {
        "type": "none",
        "color": {
          "light": "",
          "dark": ""
        },
        "gradient": {
          "light": "",
          "dark": ""
        },
        "image": {
          "url": "",
          "id": null,
          "position": "center center",
          "repeat": "no-repeat",
          "size": "cover",
          "attachment": "scroll"
        },
        "lazyLoad": false
      }
    },
    "border": {
      "type": "object",
      "default": {
        "desktop": {
          "style": "",
          "width": {
            "top": "",
            "right": "",
            "bottom": "",
            "left": "",
            "unit": "px"
          },
          "color": {
            "light": "",
            "dark": ""
          },
          "radius": {
            "topLeft": "",
            "topRight": "",
            "bottomRight": "",
            "bottomLeft": "",
            "unit": "px"
          }
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "boxShadow": {
      "type": "object",
      "default": {
        "horizontal": "0",
        "vertical": "4",
        "blur": "12",
        "spread": "0",
        "color": {
          "light": "rgba(0,0,0,0.1)",
          "dark": ""
        },
        "inset": false,
        "enabled": false
      }
    },
    "advancedLayout": {
      "type": "object",
      "default": {
        "desktop": {
          "zIndex": "",
          "overflow": "",
          "position": ""
        },
        "tablet": {},
        "mobile": {}
      }
    },
    "responsiveVisibility": {
      "type": "object",
      "default": {
        "hideOnDesktop": false,
        "hideOnTablet": false,
        "hideOnMobile": false
      }
    },
    "animation": {
      "type": "object",
      "default": {
        "type": "none",
        "duration": "normal",
        "delay": ""
      }
    },
    "htmlAttributes": {
      "type": "object",
      "default": {
        "customAttributes": []
      }
    }
  },
  "supports": {
    "anchor": true,
    "className": true,
    "html": false,
    "align": false
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "render": "file:./render.php"
}