{
	"$schema": "https://raw.githubusercontent.com/WordPress/gutenberg/trunk/schemas/json/block.json",
	"apiVersion": 3,
	"name": "jet-forms/text-field",
	"category": "jet-form-builder-fields",
	"keywords": [
		"jetformbuilder",
		"field",
		"text"
	],
	"textdomain": "jet-form-builder",
	"supports": {
		"customClassName": false,
		"html": false,
		"jetFBSanitizeValue": true
	},
	"title": "Text Field",
	"icon": "<svg width=\"65\" height=\"64\" viewBox=\"0 0 65 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M47.0543 36.9615C47.3714 36.083 48.6094 36.0822 48.9277 36.9603L53.0978 48.4645C53.3342 49.1167 52.8529 49.8063 52.1613 49.8063H43.8379C43.1469 49.8063 42.6656 49.1177 42.901 48.4657L47.0543 36.9615ZM47.3616 42L45.2654 47.8063H50.7319L48.6272 42H47.3616Z\" fill=\"currentColor\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M56.9746 42H60C62.2091 42 64 40.2091 64 38V18C64 15.7909 62.2091 14 60 14H4C1.79086 14 0 15.7909 0 18V38C0 40.2091 1.79086 42 4 42H39.0133L32.197 59.933C31.4543 61.8868 32.8889 64 34.9976 64H37.3175C38.5853 64 39.7112 63.2022 40.1375 62.0143L42.5157 55.3874H53.4698L55.8875 62.0274C56.3175 63.2086 57.4401 64 58.7028 64H61.0027C63.1121 64 64.5467 61.8854 63.8026 59.9313L56.9746 42ZM60 16H4C2.89543 16 2 16.8954 2 18V38C2 39.1046 2.89543 40 4 40H39.7735L43.9801 28.933C44.4213 27.7724 45.5336 27 46.7807 27H49.1983C50.4448 27 51.5567 27.7716 51.9983 28.9313L56.2131 40H60C61.1046 40 62 39.1046 62 38V18C62 16.8954 61.1046 16 60 16ZM61.9335 60.6431C62.1828 61.2977 61.7011 62 61.0027 62H58.7028C58.2843 62 57.9104 61.7376 57.7668 61.3432L55.1092 54.0442C54.9656 53.6497 54.5917 53.3874 54.1732 53.3874H41.8088C41.3886 53.3874 41.0136 53.6518 40.8712 54.0486L38.2551 61.3388C38.1127 61.7355 37.7377 62 37.3175 62H34.9976C34.2994 62 33.8177 61.2982 34.0665 60.6436L45.8496 29.6436C45.9969 29.2561 46.3674 29 46.7807 29H49.1983C49.6115 29 49.9817 29.2558 50.1292 29.6431L61.9335 60.6431Z\" fill=\"currentColor\"/>\n</svg>",
	"attributes": {
		"showEye": {
			"type": "boolean",
			"default": false
		},
		"value": {
			"type": "object",
			"default": {
				"groups": []
			}
		},
		"validation": {
			"type": "object",
			"default": {}
		},
		"field_type": {
			"type": "string",
			"default": "text"
		},
		"autocomplete": {
			"type": "string",
			"default": "off"
		},
		"enable_input_mask": {
			"type": "boolean",
			"default": false
		},
		"clear_on_submit": {
			"type": "boolean",
			"default": false
		},
		"mask_type": {
			"type": "string",
			"default": ""
		},
		"input_mask": {
			"type": "string",
			"default": ""
		},
		"mask_visibility": {
			"type": "string",
			"default": "always"
		},
		"mask_placeholder": {
			"type": "string",
			"default": "_"
		},
		"minlength": {
			"type": [
				"number",
				"string"
			],
			"default": "",
			"jfb": {
				"rich": true
			}
		},
		"maxlength": {
			"type": [
				"number",
				"string"
			],
			"default": "",
			"jfb": {
				"rich": true
			}
		},
		"label": {
			"type": "string",
			"default": "",
			"jfb": {
				"rich": true
			}
		},
		"name": {
			"type": "string",
			"default": "field_name"
		},
		"desc": {
			"type": "string",
			"default": "",
			"jfb": {
				"rich": true
			}
		},
		"default": {
			"type": "string",
			"default": "",
			"jfb": {
				"rich-no-preset": true
			}
		},
		"placeholder": {
			"type": "string",
			"default": ""
		},
		"required": {
			"type": "boolean",
			"default": false
		},
		"add_prev": {
			"type": "boolean",
			"default": false
		},
		"prev_label": {
			"type": "string",
			"default": "",
			"jfb": {
				"rich": true
			}
		},
		"visibility": {
			"type": "string",
			"default": ""
		},
		"class_name": {
			"type": "string",
			"default": ""
		},
		"className": {
			"type": "string",
			"default": ""
		},
		"isPreview": {
			"type": "boolean",
			"default": false
		}
	},
	"usesContext": [
		"jet-forms/repeater-field--name",
		"jet-forms/repeater-row--default",
		"jet-forms/repeater-row--current-index"
	],
	"viewScript": "jet-fb-blocks-v2-text-field",
	"viewStyle": "jet-fb-blocks-v2-text-field"
}