{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "gutengrow/dynamic-table",
  "version": "1.0.0",
  "title": "Dynamic Table",
  "category": "gutengrow-blocks",
  "icon": "editor-table",
  "description": "Create responsive, interactive tables with 6 modern Tailwind CSS variants including pagination and search functionality.",
  "example": {},
  "supports": {
    "html": false,
    "anchor": true,
    "spacing": {
      "margin": true,
      "padding": true
    }
  },
  "textdomain": "gutengrow-blocks",
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "viewScript": "file:./view.js",
  "attributes": {
    "tableData": {
      "type": "array",
      "default": [
        [
          "Member Name",
          "Role",
          "Status",
          "Last Activity",
          "Actions"
        ],
        [
          "<div class=\"flex items-center\"><div class=\"flex-shrink-0 h-10 w-10\"><img class=\"h-10 w-10 rounded-full object-cover\" src=\"https://placehold.co/100x100/9333ea/ffffff?text=AV\" alt=\"Avatar\"></div><div class=\"ml-4\"><div class=\"font-medium text-gray-900\">Alicia Vissar</div><div class=\"text-gray-500\">alicia.vissar@example.com</div></div></div>",
          "Project Manager",
          "<span class=\"px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800\">Active</span>",
          "2 hours ago",
          "<a href=\"#\" class=\"text-blue-600 hover:text-blue-800\">Edit</a><span class=\"mx-2 text-gray-300\">|</span><a href=\"#\" class=\"text-red-600 hover:text-red-800\">Delete</a>"
        ],
        [
          "<div class=\"flex items-center\"><div class=\"flex-shrink-0 h-10 w-10\"><img class=\"h-10 w-10 rounded-full object-cover\" src=\"https://placehold.co/100x100/10b981/ffffff?text=BH\" alt=\"Avatar\"></div><div class=\"ml-4\"><div class=\"font-medium text-gray-900\">Benjamin Hayes</div><div class=\"text-gray-500\">ben.hayes@example.com</div></div></div>",
          "Lead Developer",
          "<span class=\"px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800\">Active</span>",
          "5 hours ago",
          "<a href=\"#\" class=\"text-blue-600 hover:text-blue-800\">Edit</a><span class=\"mx-2 text-gray-300\">|</span><a href=\"#\" class=\"text-red-600 hover:text-red-800\">Delete</a>"
        ],
        [
          "<div class=\"flex items-center\"><div class=\"flex-shrink-0 h-10 w-10\"><img class=\"h-10 w-10 rounded-full object-cover\" src=\"https://placehold.co/100x100/f59e0b/ffffff?text=CG\" alt=\"Avatar\"></div><div class=\"ml-4\"><div class=\"font-medium text-gray-900\">Clara Garcia</div><div class=\"text-gray-500\">clara.garcia@example.com</div></div></div>",
          "UI/UX Designer",
          "<span class=\"px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800\">On Leave</span>",
          "3 days ago",
          "<a href=\"#\" class=\"text-blue-600 hover:text-blue-800\">Edit</a><span class=\"mx-2 text-gray-300\">|</span><a href=\"#\" class=\"text-red-600 hover:text-red-800\">Delete</a>"
        ],
        [
          "<div class=\"flex items-center\"><div class=\"flex-shrink-0 h-10 w-10\"><img class=\"h-10 w-10 rounded-full object-cover\" src=\"https://placehold.co/100x100/ef4444/ffffff?text=DR\" alt=\"Avatar\"></div><div class=\"ml-4\"><div class=\"font-medium text-gray-900\">David Reed</div><div class=\"text-gray-500\">david.reed@example.com</div></div></div>",
          "DevOps Engineer",
          "<span class=\"px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800\">Inactive</span>",
          "1 week ago",
          "<a href=\"#\" class=\"text-blue-600 hover:text-blue-800\">Edit</a><span class=\"mx-2 text-gray-300\">|</span><a href=\"#\" class=\"text-red-600 hover:text-red-800\">Delete</a>"
        ]
      ]
    },
    "tableVariant": {
      "type": "string",
      "default": "clean-minimalist",
      "enum": [
        "clean-minimalist",
        "dark-sleek",
        "modern-colorful",
        "professional-grid",
        "modern-card",
        "searchable-paginated"
      ]
    },
    "hasHeader": {
      "type": "boolean",
      "default": true
    },
    "hasFooter": {
      "type": "boolean",
      "default": false
    },
    "enablePagination": {
      "type": "boolean",
      "default": true
    },
    "rowsPerPage": {
      "type": "number",
      "default": 5
    },
    "enableSearch": {
      "type": "boolean",
      "default": false
    },
    "searchPlaceholder": {
      "type": "string",
      "default": "Search for products..."
    },
    "tableTitle": {
      "type": "string",
      "default": ""
    },
    "showTitle": {
      "type": "boolean",
      "default": false
    },
    "isResponsive": {
      "type": "boolean",
      "default": true
    },
    "enableHover": {
      "type": "boolean",
      "default": true
    },
    "enableAnimation": {
      "type": "boolean",
      "default": true
    },
    "customHeaderBg": {
      "type": "string",
      "default": ""
    },
    "customHeaderText": {
      "type": "string",
      "default": ""
    },
    "customBodyBg": {
      "type": "string",
      "default": ""
    },
    "customBodyText": {
      "type": "string",
      "default": ""
    },
    "customBorderColor": {
      "type": "string",
      "default": ""
    },
    "customHoverColor": {
      "type": "string",
      "default": ""
    },
    "tableWidth": {
      "type": "string",
      "default": "full",
      "enum": [
        "full",
        "auto",
        "fixed"
      ]
    },
    "alignment": {
      "type": "string",
      "default": "left",
      "enum": [
        "left",
        "center",
        "right"
      ]
    },
    "fontSize": {
      "type": "string",
      "default": "sm",
      "enum": [
        "xs",
        "sm",
        "base",
        "lg"
      ]
    },
    "headerFontWeight": {
      "type": "string",
      "default": "medium",
      "enum": [
        "normal",
        "medium",
        "semibold",
        "bold"
      ]
    },
    "bodyFontWeight": {
      "type": "string",
      "default": "normal",
      "enum": [
        "normal",
        "medium",
        "semibold"
      ]
    },
    "borderRadius": {
      "type": "string",
      "default": "lg",
      "enum": [
        "none",
        "sm",
        "md",
        "lg",
        "xl"
      ]
    },
    "shadowSize": {
      "type": "string",
      "default": "sm",
      "enum": [
        "none",
        "sm",
        "md",
        "lg",
        "xl"
      ]
    }
  }
}