{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "designsetgo/form-phone-field",
  "version": "1.0.0",
  "title": "Phone Field",
  "category": "designsetgo",
  "description": "A phone number input field for forms.",
  "keywords": [
    "form",
    "phone",
    "telephone",
    "tel",
    "mobile"
  ],
  "parent": [
    "designsetgo/form-builder"
  ],
  "textdomain": "designsetgo",
  "icon": "phone",
  "supports": {
    "html": false,
    "anchor": false,
    "customClassName": false,
    "reusable": false
  },
  "usesContext": [
    "designsetgo/form/fieldLabelColor",
    "designsetgo/form/fieldBorderColor",
    "designsetgo/form/fieldBackgroundColor",
    "designsetgo/form/fieldSpacing",
    "designsetgo/form/formId"
  ],
  "attributes": {
    "fieldName": {
      "type": "string",
      "default": ""
    },
    "label": {
      "type": "string",
      "default": "Phone Number"
    },
    "placeholder": {
      "type": "string",
      "default": ""
    },
    "helpText": {
      "type": "string",
      "default": ""
    },
    "required": {
      "type": "boolean",
      "default": false
    },
    "defaultValue": {
      "type": "string",
      "default": ""
    },
    "phoneFormat": {
      "type": "string",
      "default": "any",
      "enum": [
        "any",
        "us",
        "international"
      ]
    },
    "showCountryCode": {
      "type": "boolean",
      "default": true
    },
    "countryCode": {
      "type": "string",
      "default": "+1"
    },
    "autoFormat": {
      "type": "boolean",
      "default": true
    },
    "fieldWidth": {
      "type": "string",
      "default": "100"
    }
  },
  "editorScript": "file:./index.js",
  "viewScript": "file:./view.js",
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "render": "file:./render.php"
}