{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "designsetgo/form-text-field",
  "version": "1.0.0",
  "title": "Text Field",
  "category": "designsetgo",
  "description": "Single-line text input field for forms.",
  "keywords": [
    "form",
    "input",
    "text",
    "field"
  ],
  "textdomain": "designsetgo",
  "icon": "edit",
  "parent": [
    "designsetgo/form-builder"
  ],
  "attributes": {
    "fieldName": {
      "type": "string",
      "default": ""
    },
    "label": {
      "type": "string",
      "default": "Text Field"
    },
    "placeholder": {
      "type": "string",
      "default": ""
    },
    "helpText": {
      "type": "string",
      "default": ""
    },
    "required": {
      "type": "boolean",
      "default": false
    },
    "defaultValue": {
      "type": "string",
      "default": ""
    },
    "minLength": {
      "type": "number",
      "default": 0
    },
    "maxLength": {
      "type": "number",
      "default": 0
    },
    "validation": {
      "type": "string",
      "default": "none",
      "enum": [
        "none",
        "letters",
        "numbers",
        "alphanumeric",
        "custom"
      ]
    },
    "validationPattern": {
      "type": "string",
      "default": ""
    },
    "validationMessage": {
      "type": "string",
      "default": ""
    },
    "fieldWidth": {
      "type": "string",
      "default": "100"
    }
  },
  "usesContext": [
    "designsetgo/form/fieldLabelColor",
    "designsetgo/form/fieldBorderColor",
    "designsetgo/form/fieldBackgroundColor",
    "designsetgo/form/fieldSpacing",
    "designsetgo/form/formId"
  ],
  "supports": {
    "html": false,
    "reusable": false,
    "inserter": true
  },
  "editorScript": "file:./index.js",
  "editorStyle": "file:./index.css",
  "style": "file:./index.css"
}