block.json
47 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "jet-forms/conditional-block", |
| 4 | "category": "jet-form-builder-elements", |
| 5 | "keywords": [ |
| 6 | "jetformbuilder", |
| 7 | "block", |
| 8 | "conditonal" |
| 9 | ], |
| 10 | "textdomain": "jet-form-builder", |
| 11 | "supports": { |
| 12 | "customClassName": false, |
| 13 | "html": false |
| 14 | }, |
| 15 | "title": "Conditional Block", |
| 16 | "icon": "<svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"1\" y=\"12\" width=\"18\" height=\"18\" rx=\"2\" fill=\"#ffffff\" stroke=\"#0F172A\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><rect x=\"1\" y=\"34\" width=\"18\" height=\"18\" rx=\"2\" fill=\"#4AF3BA\" stroke=\"#0F172A\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><rect x=\"45\" y=\"12\" width=\"18\" height=\"18\" rx=\"2\" fill=\"#4AF3BA\" stroke=\"#0F172A\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><rect x=\"45\" y=\"34\" width=\"18\" height=\"18\" rx=\"2\" fill=\"#ffffff\" stroke=\"#0F172A\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40 17L44 21L40 25V22H36.7004L28.9398 43.3417C28.7961 43.7369 28.4205 44 28 44H19V42H27.2996L35.0602 20.6583C35.2039 20.2631 35.5795 20 36 20H40V17Z\" fill=\"#0F172A\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M30.9359 26.1477L28.9398 20.6583C28.7961 20.2631 28.4205 20 28 20H19V22H27.2996L29.8719 29.0739L30.9359 26.1477ZM33.0641 37.8524L35.0602 43.3417C35.2039 43.7369 35.5795 44 36 44H40V47L44 43L40 39V42H36.7004L34.1281 34.9262L33.0641 37.8524Z\" fill=\"#0F172A\"/></svg>", |
| 17 | "attributes": { |
| 18 | "name": { |
| 19 | "type": "string", |
| 20 | "default": "" |
| 21 | }, |
| 22 | "last_page_name": { |
| 23 | "type": "string", |
| 24 | "default": "" |
| 25 | }, |
| 26 | "func_type": { |
| 27 | "type": "string", |
| 28 | "default": "" |
| 29 | }, |
| 30 | "func_settings": { |
| 31 | "type": "object", |
| 32 | "default": {} |
| 33 | }, |
| 34 | "conditions": { |
| 35 | "type": "array", |
| 36 | "default": [] |
| 37 | }, |
| 38 | "className": { |
| 39 | "type": "string", |
| 40 | "default": "" |
| 41 | } |
| 42 | }, |
| 43 | "providesContext": { |
| 44 | "jet-forms/conditional-block--name": "name", |
| 45 | "jet-forms/conditional-block--last_page_name": "last_page_name" |
| 46 | } |
| 47 | } |