block.json
47 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 2, |
| 4 | "name": "jet-forms/form-block", |
| 5 | "title": "JetForm", |
| 6 | "keywords": [ |
| 7 | "jetform", |
| 8 | "form", |
| 9 | "builder", |
| 10 | "crocoblock" |
| 11 | ], |
| 12 | "textdomain": "jet-form-builder", |
| 13 | "supports": { |
| 14 | "html": false, |
| 15 | "className": true |
| 16 | }, |
| 17 | "editorScript": "jet-form-builder/form", |
| 18 | "editorStyle": "jet-form-builder-others", |
| 19 | "category": "layout", |
| 20 | "icon": "<svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"42\" height=\"2\" rx=\"1\" fill=\"#162B40\"/><path d=\"M0 5C0 4.44772 0.447715 4 1 4H20C20.5523 4 21 4.44772 21 5C21 5.55228 20.5523 6 20 6H1C0.447715 6 0 5.55228 0 5Z\" fill=\"#162B40\"/><rect x=\"1\" y=\"2\" width=\"62\" height=\"61\" rx=\"3\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"7\" y=\"19\" width=\"50\" height=\"11\" rx=\"2\" fill=\"#6F8CFF\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"7\" y=\"35\" width=\"50\" height=\"11\" rx=\"2\" fill=\"#4AF3BA\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"39\" y=\"51\" width=\"18\" height=\"7\" rx=\"2\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/></svg>", |
| 21 | "attributes": { |
| 22 | "form_id": { |
| 23 | "type": "number", |
| 24 | "default": 0 |
| 25 | }, |
| 26 | "submit_type": { |
| 27 | "type": "string", |
| 28 | "default": "" |
| 29 | }, |
| 30 | "required_mark": { |
| 31 | "type": "string", |
| 32 | "default": "" |
| 33 | }, |
| 34 | "fields_layout": { |
| 35 | "type": "string", |
| 36 | "default": "" |
| 37 | }, |
| 38 | "enable_progress": { |
| 39 | "type": "boolean", |
| 40 | "default": false |
| 41 | }, |
| 42 | "fields_label_tag": { |
| 43 | "type": "string", |
| 44 | "default": "" |
| 45 | } |
| 46 | } |
| 47 | } |