| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | { |
| 2 | 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | - "apiVersion": 2, | |
| 3 | + "apiVersion": 3, | |
| 4 | 4 | "name": "srfm/form", |
| 5 | 5 | "title": "Form", |
| 6 | 6 | "description": "Collect and Manage data effortlessly with customizable SureForms.", |
| 7 | 7 | "category": "sureforms", |
| @@ -11,8 +11,11 @@ | ||
| 11 | 11 | "reusable": false, |
| 12 | 12 | "html": false |
| 13 | 13 | }, |
| 14 | 14 | "attributes": { |
| 15 | + "blockId": { | |
| 16 | + "type": "string" | |
| 17 | + }, | |
| 15 | 18 | "isPreview": { |
| 16 | 19 | "type": "boolean", |
| 17 | 20 | "default": false |
| 18 | 21 | }, |
| @@ -35,7 +38,119 @@ | ||
| 35 | 38 | "choice_type": { |
| 36 | 39 | "type": "string", |
| 37 | 40 | "enum": [ "all", "checkbox", "radio" ], |
| 38 | 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" | |
| 39 | 154 | } |
| 40 | 155 | } |
| 41 | 156 | } |