{
  "apiVersion": 2,
  "name": "btn/button",
  "title": "Button",
  "description": "Implement multi-functional button.",
  "version": "1.2.4",
  "category": "widgets",
  "keywords": [
    "multi-functional button",
    "download button",
    "link button",
    "popup button"
  ],
  "textdomain": "button-block",
  "attributes": {
    "align": {
      "type": "string",
      "default": ""
    },
    "cPostId": {
      "type": "number",
      "default": ""
    },
    "text": {
      "type": "string",
      "default": "Button"
    },
    "actionType": {
      "type": "string",
      "default": "link"
    },
    "security": {
      "type": "string",
      "default": "none"
    },
    "securityPassword": {
      "type": "string",
      "default": ""
    },
    "securityRole": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "default": ""
    },
    "tooltip": {
      "type": "string",
      "default": ""
    },
    "tooltipPos": {
      "type": "string",
      "default": "top"
    },
    "target": {
      "type": "string",
      "default": "_self"
    },
    "attrs": {
      "type": "object",
      "default": {
        "rel": "noreferrer",
        "referrerpolicy": "no-referrer"
      }
    },
    "hideOn": {
      "type": "object",
      "default": {
        "desktop": false,
        "tablet": false,
        "mobile": false
      }
    },
    "isDownload": {
      "type": "boolean",
      "default": false
    },
    "downloadFileName": {
      "type": "string",
      "default": ""
    },
    "isUpIcon": {
      "type": "boolean",
      "default": false
    },
    "icon": {
      "type": "object",
      "default": {
        "svg": "<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z'/></svg>"
      }
    },
    "upIcon": {
      "type": "object",
      "default": {
        "id": null,
        "url": "",
        "alt": "",
        "title": ""
      }
    },
    "iconPos": {
      "type": "string",
      "default": "left"
    },
    "type": {
      "type": "string",
      "default": "flat"
    },
    "isFullWidth": {
      "type": "boolean",
      "default": false
    },
    "size": {
      "type": "string",
      "default": "medium"
    },
    "popup": {
      "type": "object",
      "default": {
        "type": "image",
        "content": "",
        "caption": "",
        "width": ""
      }
    },
    "animationType": {
      "type": "string",
      "default": ""
    },
    "animationDuration": {
      "type": "number",
      "default": 0.4
    },
    "addID": {
      "type": "string",
      "default": ""
    },
    "addCSS": {
      "type": "string",
      "default": ""
    },
    "alignment": {
      "type": "string",
      "default": "center"
    },
    "typography": {
      "type": "object",
      "default": {
        "fontSize": {
          "desktop": "16px"
        },
        "fontWeight": 600,
        "textDecoration": "none"
      }
    },
    "colors": {
      "type": "object",
      "default": {
        "color": "#fff",
        "bg": "#146EF5"
      }
    },
    "hovColors": {
      "type": "object",
      "default": {
        "color": "#fff",
        "bg": "#FF7A00"
      }
    },
    "padding": {
      "type": "object",
      "default": {
        "vertical": "12px",
        "horizontal": "24px"
      }
    },
    "border": {
      "type": "object",
      "default": {
        "radius": "5px"
      }
    },
    "shadow": {
      "type": "array",
      "default": []
    }
  },
  "supports": {
    "align": [
      "wide",
      "full"
    ],
    "html": false
  },
  "example": {
    "attributes": {
      "preview": true
    }
  },
  "editorScript": [
    "file:./index.js",
    "aos",
    "wp-api",
    "wp-api-request"
  ],
  "editorStyle": [
    "file:./index.css",
    "font-awesome-7",
    "aos"
  ],
  "style": "file:./view.css",
  "render": "file:./render.php",
  "viewScript": [
    "file:./view.js",
    "wp-util"
  ]
}