{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "giraforms/text-field",
	"title": "Text Field",
	"category": "giraforms",
	"icon": "text",
	"description": "A simple text field for your form.",
	"keywords": ["form", "text", "input"],
	"textdomain": "giraforms",
	"parent": ["giraforms/form-container", "core/column"],
	"supports": {
		"html": false,
		"className": true
	},
	"attributes": {
		"fieldId": {
			"type": "string",
			"default": ""
		},
		"label": {
			"type": "string",
			"default": "Text Field"
		},
		"placeholder": {
			"type": "string",
			"default": ""
		},
		"required": {
			"type": "boolean",
			"default": false
		},
		"requiredMessage": {
			"type": "string",
			"default": ""
		},
		"helpText": {
			"type": "string",
			"default": ""
		},
		"minLength": {
			"type": "number",
			"default": 0
		},
		"maxLength": {
			"type": "number",
			"default": 0
		},
		"conditionalRules": {
			"type": "object",
			"default": {
				"enabled": false,
				"logic": "and",
				"conditions": []
			}
		}
	},
	"editorScript": "file:./index.js",
	"editorStyle": "file:./editor.css",
	"style": "file:./style.css"
}
