{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "create-block/content-toggle-block",
  "version": "0.1.0",
  "title": "Content Toggle (Free)",
  "category": "adaire-blocks-free",
  "icon": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\r\n<rect width=\"24\" height=\"24\" rx=\"5\" fill=\"#F0F0F1\"/>\r\n<path d=\"M19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3Z\" fill=\"#F0F0F1\" stroke=\"#D52940\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n<path d=\"M12 9.25V3.75\" stroke=\"#D52940\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n<path d=\"M3.75 9.25H20.25\" stroke=\"#D52940\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n<path d=\"M19 13H5\" stroke=\"#D52940\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n<path d=\"M19 18L5 18\" stroke=\"#D52940\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\r\n</svg>",
  "description": "Display content with pill-style toggles for switching between different states.",
  "supports": {
    "html": false,
    "anchor": true,
    "align": [
      "wide",
      "full"
    ],
    "customClassName": true
  },
  "textdomain": "content-toggle-block",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "attributes": {
    "blockId": {
      "type": "string",
      "default": ""
    },
    "containerMode": {
      "type": "string",
      "default": "constrained"
    },
    "containerMaxWidth": {
      "type": "object",
      "default": {
        "desktop": {
          "value": 1200,
          "unit": "px"
        },
        "tablet": {
          "value": 100,
          "unit": "%"
        },
        "mobile": {
          "value": 100,
          "unit": "%"
        }
      }
    },
    "toggles": {
      "type": "array",
      "default": [
        {
          "id": "toggle-1",
          "label": "Services"
        },
        {
          "id": "toggle-2",
          "label": "Approach"
        },
        {
          "id": "toggle-3",
          "label": "Outcomes"
        }
      ]
    },
    "activeToggle": {
      "type": "number",
      "default": 0
    },
    "pillStyle": {
      "type": "string",
      "default": "default"
    },
    "pillBackgroundColor": {
      "type": "string",
      "default": "transparent"
    },
    "pillActiveBackgroundColor": {
      "type": "string",
      "default": "#3b82f6"
    },
    "pillTextColor": {
      "type": "string",
      "default": "#94a3b8"
    },
    "pillActiveTextColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "pillBorderColor": {
      "type": "string",
      "default": "#475569"
    },
    "pillActiveBorderColor": {
      "type": "string",
      "default": "#3b82f6"
    },
    "pillBorderRadius": {
      "type": "number",
      "default": 24
    },
    "pillPadding": {
      "type": "object",
      "default": {
        "top": 12,
        "right": 24,
        "bottom": 12,
        "left": 24
      }
    },
    "pillGap": {
      "type": "number",
      "default": 16
    },
    "pillFontSize": {
      "type": "number",
      "default": 16
    },
    "pillFontWeight": {
      "type": "string",
      "default": "500"
    },
    "pillActiveFontWeight": {
      "type": "string",
      "default": "600"
    },
    "contentBackgroundColor": {
      "type": "string",
      "default": "#0a0e27"
    },
    "contentPadding": {
      "type": "object",
      "default": {
        "top": 40,
        "right": 40,
        "bottom": 40,
        "left": 40
      }
    },
    "contentBorderRadius": {
      "type": "number",
      "default": 16
    },
    "contentWidth": {
      "type": "object",
      "default": {
        "desktop": {
          "value": 100,
          "unit": "%"
        },
        "tablet": {
          "value": 100,
          "unit": "%"
        },
        "mobile": {
          "value": 100,
          "unit": "%"
        }
      }
    },
    "togglePosition": {
      "type": "string",
      "default": "top"
    },
    "wrapperBackgroundColor": {
      "type": "string",
      "default": "transparent"
    },
    "wrapperPadding": {
      "type": "object",
      "default": {
        "desktop": {
          "top": 0,
          "right": 0,
          "bottom": 0,
          "left": 0
        },
        "tablet": {
          "top": 0,
          "right": 0,
          "bottom": 0,
          "left": 0
        },
        "mobile": {
          "top": 0,
          "right": 0,
          "bottom": 0,
          "left": 0
        }
      }
    },
    "pillAlign": {
      "type": "string",
      "default": "flex-start"
    },
    "animationDuration": {
      "type": "number",
      "default": 0.5
    },
    "animationEase": {
      "type": "string",
      "default": "power2.out"
    }
  }
}