{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "formello/input",
  "title": "Text Input",
  "description": "A text input field",
  "ancestor": [
    "formello/form"
  ],
  "usesContext": [
    "formello/requiredText"
  ],
  "category": "formello",
  "textdomain": "formello",
  "attributes": {
    "type": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "type",
      "default": "text"
    },
    "id": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "id"
    },
    "name": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "name"
    },
    "label": {
      "type": "string",
      "source": "html",
      "selector": "label span:not(.required)",
      "default": "Label",
      "role": "content"
    },
    "hideLabel": {
      "type": "boolean",
      "selector": "label.hide",
      "default": false
    },
    "placeholder": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "placeholder",
      "role": "content"
    },
    "value": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "value"
    },
    "validation": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "data-bouncer-message",
      "default": ""
    },
    "enableMismatch": {
      "type": "boolean",
      "default": false
    },
    "mismatchMessage": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "data-bouncer-mismatch-message",
      "default": ""
    },
    "match": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "data-bouncer-match"
    },
    "required": {
      "type": "boolean",
      "source": "attribute",
      "selector": "input",
      "attribute": "required",
      "default": false
    },
    "requiredText": {
      "type": "string",
      "source": "text",
      "selector": "label span.required",
      "default": "*"
    },
    "enableAutoComplete": {
      "type": "boolean",
      "default": false
    },
    "autocomplete": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "autocomplete",
      "default": "off"
    },
    "disabled": {
      "type": "boolean",
      "source": "attribute",
      "selector": "input",
      "attribute": "disabled",
      "default": false
    },
    "readonly": {
      "type": "boolean",
      "source": "attribute",
      "selector": "input",
      "attribute": "readonly",
      "default": false
    },
    "checked": {
      "type": "boolean",
      "source": "attribute",
      "selector": "input",
      "attribute": "checked",
      "default": false
    },
    "multiple": {
      "type": "boolean",
      "source": "attribute",
      "selector": "input",
      "attribute": "multiple",
      "default": false
    },
    "showHelp": {
      "type": "boolean",
      "default": false
    },
    "help": {
      "type": "string",
      "default": ""
    },
    "minlength": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "minlength"
    },
    "maxlength": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "maxlength"
    },
    "pattern": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "pattern"
    },
    "min": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "min"
    },
    "max": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "max"
    },
    "noWrapper": {
      "type": "boolean",
      "default": false
    },
    "step": {
      "type": "string",
      "source": "attribute",
      "selector": "input",
      "attribute": "step"
    },
    "flatpickr": {
      "type": "object",
      "default": {
        "allowInput": true
      }
    },
    "advanced": {
      "type": "boolean"
    }
  },
  "supports": {
    "lock": false,
    "anchor": false,
    "html": false,
    "inserter": true,
    "className": true,
    "reusable": false,
    "color": {
      "background": true,
      "text": true,
      "__experimentalSkipSerialization": true,
      "__experimentalSelector": "input"
    },
    "spacing": {
      "padding": true,
      "__experimentalSkipSerialization": true
    },
    "__experimentalBorder": {
      "color": true,
      "radius": true,
      "style": true,
      "width": true,
      "__experimentalSkipSerialization": true,
      "__experimentalDefaultControls": {
        "color": true,
        "radius": true,
        "style": true,
        "width": true
      }
    }
  },
  "selectors": {
    "root": ".wp-block-formello-input",
    "color": {
      "background": ".wp-block-formello-input > input",
      "text": ".wp-block-formello-input"
    },
    "spacing": {
      "root": ".wp-block-formello-input",
      "padding": ".wp-block-formello-input > input"
    },
    "border": {
      "root": ".wp-block-formello-input > input"
    }
  },
  "example": {
    "attributes": {
      "label": "Name"
    }
  },
  "editorStyle": "file:./index.css",
  "style": "file:./style-index.css",
  "editorScript": "file:./index.js",
  "render": "file:./render.php"
}