 {
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "flexa/pricing-table",
  "version": "1.0.0",
  "title": "Pricing Table",
  "category": "flexa",
  "description": "Side-by-side pricing plans — each column carries a name, price, billing period, feature list, a highlighted \"most popular\" flag and a call-to-action, with an optional monthly/yearly toggle, per-device typography and light/dark colours.",
  "keywords": [
    "flexa",
    "pricing",
    "plans",
    "price",
    "subscription",
    "table"
  ],
  "textdomain": "flexa-block",
  "example": {
    "attributes": {
      "isExamplePreview": true
    },
    "viewportWidth": 800
  },
  "attributes": {
    "isExamplePreview": {
      "type": "boolean",
      "default": false
    },
    "blockId": {
      "type": "string"
    },
    "htmlTag": {
      "type": "string",
      "default": "div"
    },
    "items": {
      "type": "array",
      "default": [
        {
          "name": "Starter",
          "priceMonthly": "$9",
          "priceYearly": "$90",
          "periodMonthly": "/month",
          "periodYearly": "/year",
          "features": "1 project\nCommunity support\n1 GB storage",
          "ctaText": "Choose plan",
          "ctaUrl": "#",
          "highlighted": false,
          "badge": ""
        },
        {
          "name": "Pro",
          "priceMonthly": "$29",
          "priceYearly": "$290",
          "periodMonthly": "/month",
          "periodYearly": "/year",
          "features": "Unlimited projects\nPriority support\n50 GB storage\nAdvanced analytics",
          "ctaText": "Choose plan",
          "ctaUrl": "#",
          "highlighted": true,
          "badge": "Most popular"
        },
        {
          "name": "Business",
          "priceMonthly": "$79",
          "priceYearly": "$790",
          "periodMonthly": "/month",
          "periodYearly": "/year",
          "features": "Everything in Pro\nDedicated manager\n500 GB storage\nSLA guarantee",
          "ctaText": "Contact us",
          "ctaUrl": "#",
          "highlighted": false,
          "badge": ""
        }
      ]
    },
    "billingToggle": {
      "type": "boolean",
      "default": false
    },
    "containerType": {
      "type": "string",
      "default": "full-width",
      "enum": [
        "boxed",
        "full-width"
      ]
    },
    "widthBoxed": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "widthFullWidth": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "columns": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "gap": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "nameTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "nameColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "priceTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "priceColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "periodColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "featureTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "featureColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "highlightColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "badgeBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "badgeColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "badgeTypography": {
      "type": "object",
      "default": {
        "desktop": {},
        "tablet": {},
        "mobile": {}
      }
    },
    "buttonTextColor": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonTextColorHover": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonBackgroundType": {
      "type": "string",
      "default": "color",
      "enum": [
        "color",
        "gradient"
      ]
    },
    "buttonBackground": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonBackgroundGradient": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonBackgroundHoverType": {
      "type": "string",
      "default": "color",
      "enum": [
        "color",
        "gradient"
      ]
    },
    "buttonBackgroundHover": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonBackgroundHoverGradient": {
      "type": "object",
      "default": {
        "light": "",
        "dark": ""
      }
    },
    "buttonRadius": {
      "type": "object",
      "default": {}
    },
    "buttonPadding": {
      "type": "object",
      "default": {}
    },
    "buttonWidth": {
      "type": "string",
      "default": "auto",
      "enum": [
        "auto",
        "full"
      ]
    },
    "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"
}