block.json
157 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "srfm/form", |
| 5 | "title": "Form", |
| 6 | "description": "Collect and Manage data effortlessly with customizable SureForms.", |
| 7 | "category": "sureforms", |
| 8 | "keywords": [ "form", "sureforms", "form" ], |
| 9 | "textdomain": "sureforms", |
| 10 | "supports": { |
| 11 | "reusable": false, |
| 12 | "html": false |
| 13 | }, |
| 14 | "attributes": { |
| 15 | "blockId": { |
| 16 | "type": "string" |
| 17 | }, |
| 18 | "isPreview": { |
| 19 | "type": "boolean", |
| 20 | "default": false |
| 21 | }, |
| 22 | "showTitle": { |
| 23 | "type": "boolean", |
| 24 | "default": false |
| 25 | }, |
| 26 | "id": { |
| 27 | "type": "number" |
| 28 | }, |
| 29 | "title": { |
| 30 | "type": "string" |
| 31 | }, |
| 32 | "choices": { |
| 33 | "type": "array" |
| 34 | }, |
| 35 | "template": { |
| 36 | "type": "string" |
| 37 | }, |
| 38 | "choice_type": { |
| 39 | "type": "string", |
| 40 | "enum": [ "all", "checkbox", "radio" ], |
| 41 | "default": "all" |
| 42 | }, |
| 43 | "formTheme": { |
| 44 | "type": "string", |
| 45 | "default": "inherit" |
| 46 | }, |
| 47 | "primaryColor": { |
| 48 | "type": "string", |
| 49 | "default": "#111C44" |
| 50 | }, |
| 51 | "textColor": { |
| 52 | "type": "string", |
| 53 | "default": "#1E1E1E" |
| 54 | }, |
| 55 | "textOnPrimaryColor": { |
| 56 | "type": "string", |
| 57 | "default": "#FFFFFF" |
| 58 | }, |
| 59 | "bgType": { |
| 60 | "type": "string", |
| 61 | "enum": [ "color", "gradient", "image" ], |
| 62 | "default": "color" |
| 63 | }, |
| 64 | "bgColor": { |
| 65 | "type": "string", |
| 66 | "default": "#FFFFFF" |
| 67 | }, |
| 68 | "bgGradient": { |
| 69 | "type": "string", |
| 70 | "default": "linear-gradient(90deg, #FFC9B2 0%, #C7CBFF 100%)" |
| 71 | }, |
| 72 | "bgImage": { |
| 73 | "type": "string", |
| 74 | "default": "" |
| 75 | }, |
| 76 | "bgImageId": { |
| 77 | "type": "number" |
| 78 | }, |
| 79 | "bgImagePosition": { |
| 80 | "type": "object", |
| 81 | "default": { "x": 0.5, "y": 0.5 } |
| 82 | }, |
| 83 | "bgImageSize": { |
| 84 | "type": "string", |
| 85 | "default": "cover" |
| 86 | }, |
| 87 | "bgImageRepeat": { |
| 88 | "type": "string", |
| 89 | "default": "no-repeat" |
| 90 | }, |
| 91 | "bgImageAttachment": { |
| 92 | "type": "string", |
| 93 | "default": "scroll" |
| 94 | }, |
| 95 | "formPaddingTop": { |
| 96 | "type": "number", |
| 97 | "default": 0 |
| 98 | }, |
| 99 | "formPaddingRight": { |
| 100 | "type": "number", |
| 101 | "default": 0 |
| 102 | }, |
| 103 | "formPaddingBottom": { |
| 104 | "type": "number", |
| 105 | "default": 0 |
| 106 | }, |
| 107 | "formPaddingLeft": { |
| 108 | "type": "number", |
| 109 | "default": 0 |
| 110 | }, |
| 111 | "formPaddingUnit": { |
| 112 | "type": "string", |
| 113 | "enum": [ "px", "em", "rem", "%", "vw", "vh" ], |
| 114 | "default": "px" |
| 115 | }, |
| 116 | "formPaddingLink": { |
| 117 | "type": "boolean", |
| 118 | "default": true |
| 119 | }, |
| 120 | "formBorderRadiusTop": { |
| 121 | "type": "number", |
| 122 | "default": 0 |
| 123 | }, |
| 124 | "formBorderRadiusRight": { |
| 125 | "type": "number", |
| 126 | "default": 0 |
| 127 | }, |
| 128 | "formBorderRadiusBottom": { |
| 129 | "type": "number", |
| 130 | "default": 0 |
| 131 | }, |
| 132 | "formBorderRadiusLeft": { |
| 133 | "type": "number", |
| 134 | "default": 0 |
| 135 | }, |
| 136 | "formBorderRadiusUnit": { |
| 137 | "type": "string", |
| 138 | "enum": [ "px", "em", "rem", "%", "vw", "vh" ], |
| 139 | "default": "px" |
| 140 | }, |
| 141 | "formBorderRadiusLink": { |
| 142 | "type": "boolean", |
| 143 | "default": true |
| 144 | }, |
| 145 | "fieldSpacing": { |
| 146 | "type": "string", |
| 147 | "enum": [ "small", "medium", "large" ], |
| 148 | "default": "medium" |
| 149 | }, |
| 150 | "buttonAlignment": { |
| 151 | "type": "string", |
| 152 | "enum": [ "left", "center", "right", "justify" ], |
| 153 | "default": "left" |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 |