{
	"$schema": "https://schemas.wp.org/trunk/block.json",
	"apiVersion": 3,
	"name": "rooster/action",
	"version": "2.0.0",
	"title": "Call to action",
	"category": "theme",
	"icon": "megaphone",
	"description": "A call to action: a dark panel with the family's glow (a band or centred), the brand's soft wash, the ink with large buttons; or a row of large buttons with its small print.",
	"keywords": [
		"cta",
		"call to action",
		"buttons",
		"panel"
	],
	"textdomain": "ai-eshop-optimizer",
	"attributes": {
		"variant": {
			"type": "string",
			"enum": [
				"panel",
				"buttons"
			],
			"default": "panel"
		},
		"layout": {
			"type": "string",
			"enum": [
				"",
				"band",
				"center",
				"wash",
				"ink"
			],
			"default": ""
		},
		"tone": {
			"type": "string",
			"default": ""
		},
		"icon": {
			"type": "string",
			"default": ""
		},
		"eyebrow": {
			"type": "string",
			"default": ""
		},
		"heading": {
			"type": "string",
			"default": ""
		},
		"text": {
			"type": "string",
			"default": ""
		},
		"items": {
			"type": "string",
			"default": ""
		},
		"buttons": {
			"type": "string",
			"default": ""
		},
		"note": {
			"type": "string",
			"default": ""
		},
		"level": {
			"type": "integer",
			"default": 2
		},
		"justify": {
			"type": "string",
			"enum": [
				"center",
				"left"
			],
			"default": "center"
		}
	},
	"supports": {
		"html": false,
		"anchor": true,
		"align": [
			"wide"
		],
		"spacing": {
			"margin": [
				"top",
				"bottom"
			]
		},
		"rooster": {
			"defer": {
				"allowed": false
			}
		}
	},
	"rooster": {
		"variants": [
			"panel",
			"buttons"
		],
		"ui": {
			"variant": {
				"label": "Variant (the look)"
			},
			"layout": {
				"label": "Layout inside the variant (empty: the variant's first)"
			},
			"tone": {
				"label": "Tone: A family's accent (zero, one, lms, panel, code, docs, kb, credits, lrs) or neutral, success, warning, danger; empty: the page's (wash: the tone's wash, rule and accents; empty: the brand's)"
			},
			"icon": {
				"label": "panel: Icon before the eyebrow or the heading, in a chip of the tone (a Lucide slug; empty: none)"
			},
			"eyebrow": {
				"label": "panel: Eyebrow"
			},
			"heading": {
				"label": "panel: Heading"
			},
			"text": {
				"control": "textarea",
				"label": "panel: Text (wash: paragraphs by a blank line, **bold** allowed)"
			},
			"items": {
				"control": "textarea",
				"label": "panel: Ticked items, one per line"
			},
			"buttons": {
				"control": "textarea",
				"label": "panel: Buttons, one per line: Text | link | primary or secondary (ink: Text | link | download, dark or light | second line | icon); buttons: Buttons, one per line: Text | link | download, dark or light | second line | icon"
			},
			"note": {
				"control": "textarea",
				"label": "panel: Small print under the buttons (ink; **bold** allowed)"
			},
			"level": {
				"label": "panel: Heading level (2 to 4)"
			},
			"justify": {
				"label": "buttons: Place"
			}
		}
	},
	"render": "file:./render.php"
}
