{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "bloqra/comparison-table",
  "version": "1.0.0",
  "title": "Comparison Table",
  "category": "bloqra",
  "icon": "editor-table",
  "description": "Compare plans, products or services feature by feature. Check, cross and dash marks per cell, a highlighted column with a badge, row headers for feature names, and a sticky header row for long tables.",
  "keywords": [
    "comparison",
    "compare",
    "versus",
    "pricing",
    "features",
    "plans",
    "table"
  ],
  "example": {
    "attributes": {
      "highlightedColumn": 2,
      "highlightLabel": "Popular",
      "head": [
        {
          "cells": [
            {
              "content": "",
              "tag": "th"
            },
            {
              "content": "Basic",
              "tag": "th"
            },
            {
              "content": "Pro",
              "tag": "th"
            }
          ]
        }
      ],
      "body": [
        {
          "cells": [
            {
              "content": "Projects",
              "tag": "td"
            },
            {
              "content": "3",
              "tag": "td"
            },
            {
              "content": "Unlimited",
              "tag": "td"
            }
          ]
        },
        {
          "cells": [
            {
              "content": "Support",
              "tag": "td"
            },
            {
              "content": "",
              "tag": "td",
              "mark": "cross"
            },
            {
              "content": "",
              "tag": "td",
              "mark": "check"
            }
          ]
        },
        {
          "cells": [
            {
              "content": "Analytics",
              "tag": "td"
            },
            {
              "content": "",
              "tag": "td",
              "mark": "dash"
            },
            {
              "content": "",
              "tag": "td",
              "mark": "check"
            }
          ]
        }
      ]
    }
  },
  "styles": [
    {
      "name": "default",
      "label": "Default",
      "isDefault": true
    },
    {
      "name": "stripes",
      "label": "Stripes"
    },
    {
      "name": "bordered",
      "label": "Bordered"
    },
    {
      "name": "minimal",
      "label": "Minimal"
    }
  ],
  "attributes": {
    "hasFixedLayout": {
      "type": "boolean",
      "default": true
    },
    "stickyHeader": {
      "type": "boolean",
      "default": false
    },
    "stickyOffset": {
      "type": "string",
      "default": ""
    },
    "stickyFirstColumn": {
      "type": "boolean",
      "default": false
    },
    "firstColumnHeader": {
      "type": "boolean",
      "default": true
    },
    "highlightedColumn": {
      "type": "number",
      "default": -1
    },
    "highlightLabel": {
      "type": "string",
      "default": ""
    },
    "headerBgColor": {
      "type": "string",
      "default": ""
    },
    "highlightColor": {
      "type": "string",
      "default": ""
    },
    "checkColor": {
      "type": "string",
      "default": ""
    },
    "crossColor": {
      "type": "string",
      "default": ""
    },
    "caption": {
      "type": "rich-text",
      "source": "rich-text",
      "selector": "figcaption",
      "role": "content"
    },
    "head": {
      "type": "array",
      "default": [],
      "source": "query",
      "selector": "thead tr",
      "query": {
        "cells": {
          "type": "array",
          "default": [],
          "source": "query",
          "selector": "td,th",
          "query": {
            "content": {
              "type": "rich-text",
              "source": "rich-text",
              "role": "content"
            },
            "tag": {
              "type": "string",
              "default": "td",
              "source": "tag"
            },
            "scope": {
              "type": "string",
              "source": "attribute",
              "attribute": "scope"
            },
            "align": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-align"
            },
            "mark": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-mark"
            },
            "colspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "colspan"
            },
            "rowspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "rowspan"
            }
          }
        }
      }
    },
    "body": {
      "type": "array",
      "default": [],
      "source": "query",
      "selector": "tbody tr",
      "query": {
        "cells": {
          "type": "array",
          "default": [],
          "source": "query",
          "selector": "td,th",
          "query": {
            "content": {
              "type": "rich-text",
              "source": "rich-text",
              "role": "content"
            },
            "tag": {
              "type": "string",
              "default": "td",
              "source": "tag"
            },
            "scope": {
              "type": "string",
              "source": "attribute",
              "attribute": "scope"
            },
            "align": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-align"
            },
            "mark": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-mark"
            },
            "colspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "colspan"
            },
            "rowspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "rowspan"
            }
          }
        }
      }
    },
    "foot": {
      "type": "array",
      "default": [],
      "source": "query",
      "selector": "tfoot tr",
      "query": {
        "cells": {
          "type": "array",
          "default": [],
          "source": "query",
          "selector": "td,th",
          "query": {
            "content": {
              "type": "rich-text",
              "source": "rich-text",
              "role": "content"
            },
            "tag": {
              "type": "string",
              "default": "td",
              "source": "tag"
            },
            "scope": {
              "type": "string",
              "source": "attribute",
              "attribute": "scope"
            },
            "align": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-align"
            },
            "mark": {
              "type": "string",
              "source": "attribute",
              "attribute": "data-mark"
            },
            "colspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "colspan"
            },
            "rowspan": {
              "type": "string",
              "source": "attribute",
              "attribute": "rowspan"
            }
          }
        }
      }
    }
  },
  "supports": {
    "anchor": true,
    "align": true,
    "color": {
      "__experimentalSkipSerialization": true,
      "gradients": true,
      "__experimentalDefaultControls": {
        "background": true,
        "text": true
      }
    },
    "spacing": {
      "margin": true,
      "padding": true,
      "__experimentalDefaultControls": {
        "margin": false,
        "padding": false
      }
    },
    "typography": {
      "fontSize": true,
      "lineHeight": true,
      "__experimentalFontFamily": true,
      "__experimentalFontStyle": true,
      "__experimentalFontWeight": true,
      "__experimentalLetterSpacing": true,
      "__experimentalTextTransform": true,
      "__experimentalTextDecoration": true,
      "__experimentalDefaultControls": {
        "fontSize": true
      }
    },
    "__experimentalBorder": {
      "__experimentalSkipSerialization": true,
      "color": true,
      "style": true,
      "width": true,
      "__experimentalDefaultControls": {
        "color": true,
        "style": true,
        "width": true
      }
    }
  },
  "selectors": {
    "root": ".wp-block-bloqra-comparison-table > table",
    "spacing": ".wp-block-bloqra-comparison-table"
  },
  "textdomain": "bloqra",
  "editorScript": [
    "bloqra-icons",
    "file:./index.js"
  ],
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css"
}