{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "title": "Material UI Alert",
  "apiVersion": 3,
  "name": "mediaron/alerts-dlx-material",
  "category": "alertsdlx",
  "icon": "<svg version='1.1' viewBox='0 0 600 477' xmlns='http://www.w3.org/2000/svg'><g><path d='m0 260v-260l225 130v86.6l-150-86.6v173z' fill='#1EA0FF'/><path d='m225 130 225-130v260l-150 86.6-75-43.3 150-86.6v-86.6l-150 86.6z' fill='#156DC1'/><path d='m225 303v86.6l150 86.6v-86.6z' fill='#1EA0FF'/><path d='m375 476 225-130v-173l-75 43.3v86.6l-150 86.6zm150-346v-86.6l75-43.3v86.6z' fill='#156DC1'/></g></svg>",
  "description": "An alert and notification block inspired by Material UI.",
  "keywords": [
    "alert",
    "info",
    "hint",
    "success",
    "error",
    "notice",
    "notification",
    "warning",
    "material"
  ],
  "version": "1.0.0",
  "textdomain": "alerts-dlx",
  "attributes": {
    "align": {
      "type": "string",
      "default": "center"
    },
    "alertType": {
      "type": "string",
      "default": "success"
    },
    "alertTitle": {
      "type": "string",
      "default": ""
    },
    "alertDescription": {
      "type": "string",
      "default": ""
    },
    "descriptionEnabled": {
      "type": "boolean",
      "default": true
    },
    "titleEnabled": {
      "type": "boolean",
      "default": true
    },
    "buttonEnabled": {
      "type": "boolean",
      "default": false
    },
    "iconEnabled": {
      "type": "boolean",
      "default": true
    },
    "buttonText": {
      "type": "string",
      "default": ""
    },
    "buttonUrl": {
      "type": "string",
      "default": ""
    },
    "buttonHasUrl": {
      "type": "boolean",
      "default": false
    },
    "buttonTarget": {
      "type": "boolean",
      "default": false
    },
    "buttonRelNoFollow": {
      "type": "boolean",
      "default": false
    },
    "buttonRelSponsored": {
      "type": "boolean",
      "default": false
    },
    "maximumWidthUnit": {
      "type": "string",
      "default": "px"
    },
    "maximumWidth": {
      "type": "string",
      "default": "650"
    },
    "baseFontSize": {
      "type": "number",
      "default": 18
    },
    "icon": {
      "type": "string",
      "default": "<svg xmlns='http://www.w3.org/2000/svg' height='48' width='48' viewBox='0 0 48 48'><path d='M24 44q-4.25 0-7.9-1.525-3.65-1.525-6.35-4.225-2.7-2.7-4.225-6.35Q4 28.25 4 24q0-4.2 1.525-7.85Q7.05 12.5 9.75 9.8q2.7-2.7 6.35-4.25Q19.75 4 24 4q3.75 0 7 1.2t5.85 3.3l-2.15 2.15q-2.2-1.75-4.9-2.7Q27.1 7 24 7q-7.25 0-12.125 4.875T7 24q0 7.25 4.875 12.125T24 41q7.25 0 12.125-4.875T41 24q0-1.5-.225-2.925-.225-1.425-.675-2.775l2.3-2.3q.8 1.85 1.2 3.85.4 2 .4 4.15 0 4.25-1.55 7.9-1.55 3.65-4.25 6.35-2.7 2.7-6.35 4.225Q28.2 44 24 44Zm-2.95-10.9-8.25-8.3 2.25-2.25 6 6 20.7-20.7 2.3 2.25Z'/></svg>"
    },
    "enableCustomFonts": {
      "type": "boolean",
      "default": true
    },
    "variant": {
      "type": "string",
      "default": "default"
    },
    "mode": {
      "type": "string",
      "default": "light"
    },
    "enableDropShadow": {
      "type": "boolean",
      "default": false
    },
    "iconVerticalAlignment": {
      "type": "string",
      "default": "top"
    },
    "uniqueId": {
      "type": "string",
      "default": ""
    },
    "alertGroup": {
      "type": "string",
      "default": "material"
    },
    "closeButtonEnabled": {
      "type": "boolean",
      "default": false
    },
    "closeButtonExpiration": {
      "type": "number",
      "default": 0
    },
    "innerBlocksEnabled": {
      "type": "boolean",
      "default": false
    },
    "colorPrimary": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-primary, #014361)"
    },
    "colorBorder": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-border, #014361)"
    },
    "colorAccent": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-accent, #3182ce)"
    },
    "colorAlt": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-alt, #2d76bb)"
    },
    "colorAltHover": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-alt-hover, #2d76bb)"
    },
    "colorAltText": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-alt-text, #ffffff)"
    },
    "colorAltTextHover": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-alt-text-hover, #ffffff)"
    },
    "colorBold": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-bold, #2d76bb)"
    },
    "colorLight": {
      "type": "string",
      "default": "var(--alerts-dlx-material-color-light, #bee3f8)"
    },
    "isBlockEditorialOnly": {
      "type": "boolean",
      "default": false
    },
    "isBlockReadOnly": {
      "type": "boolean",
      "default": false
    },
    "iconSource": {
      "type": "string",
      "default": "icon"
    },
    "imageUrl": {
      "type": "string",
      "default": ""
    },
    "imageId": {
      "type": "number",
      "default": 0
    }
  },
  "example": {
    "attributes": {
      "alertType": "info",
      "alertTitle": "Sample alert title",
      "alertDescription": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>",
      "buttonEnabled": true,
      "baseFontSize": 14,
      "buttonText": "Learn More",
      "icon": "<svg xmlns='http://www.w3.org/2000/svg' height='48' width='48' viewBox='0 0 48 48'><path d='M22.65 34h3V22h-3ZM24 18.3q.7 0 1.175-.45.475-.45.475-1.15t-.475-1.2Q24.7 15 24 15q-.7 0-1.175.5-.475.5-.475 1.2t.475 1.15q.475.45 1.175.45ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 23.95q0-4.1 1.575-7.75 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24.05 4q4.1 0 7.75 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm.05-3q7.05 0 12-4.975T41 23.95q0-7.05-4.95-12T24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24.05 41ZM24 24Z' /></svg>"
    }
  },
  "styles": [
    {
      "name": "success",
      "label": "Success",
      "isDefault": true
    },
    {
      "name": "info",
      "label": "Info"
    },
    {
      "name": "warning",
      "label": "Warning"
    },
    {
      "name": "error",
      "label": "Error"
    },
    {
      "name": "custom",
      "label": "Custom"
    }
  ],
  "supports": {
    "anchor": true,
    "align": true,
    "className": true
  },
  "editorScript": "alerts-dlx-block",
  "editorStyle": [
    "alerts-dlx-block-editor-styles",
    "alerts-dlx-material-styles",
    "alerts-dlx-block-editor-styles-lato"
  ]
}