| @@ -2,10 +2,10 @@ | ||
| 2 | 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | 3 | "apiVersion": 3, |
| 4 | 4 | "name": "b-blocks/whatsapp-chat", |
| 5 | 5 | "version": "0.1.0", |
| 6 | - "title": "WhatsApp Chat Block", | |
| 7 | - "category": "b-blocks", | |
| 6 | + "title": "WhatsApp Chat", | |
| 7 | + "category": "bBlocks", | |
| 8 | 8 | "description": "Add a fully customizable WhatsApp Chat button to turn visitor hesitation into customer confidence.", |
| 9 | 9 | "example": { |
| 10 | 10 | "attributes": { |
| 11 | 11 | "phoneNumber": "", |
| @@ -96,24 +96,125 @@ | ||
| 96 | 96 | "pulseAnimation": { |
| 97 | 97 | "type": "boolean", |
| 98 | 98 | "default": false |
| 99 | 99 | }, |
| 100 | - "padding": { | |
| 100 | + "styles": { | |
| 101 | 101 | "type": "object", |
| 102 | 102 | "default": { |
| 103 | - "top": "", | |
| 104 | - "right": "", | |
| 105 | - "bottom": "", | |
| 106 | - "left": "" | |
| 107 | - } | |
| 108 | - }, | |
| 109 | - "margin": { | |
| 110 | - "type": "object", | |
| 111 | - "default": { | |
| 112 | - "top": "", | |
| 113 | - "right": "", | |
| 114 | - "bottom": "", | |
| 115 | - "left": "" | |
| 103 | + "desktop": { | |
| 104 | + "padding": { | |
| 105 | + "type": "object", | |
| 106 | + "default": { | |
| 107 | + "top": "", | |
| 108 | + "right": "", | |
| 109 | + "bottom": "", | |
| 110 | + "left": "" | |
| 111 | + } | |
| 112 | + }, | |
| 113 | + "margin": { | |
| 114 | + "type": "object", | |
| 115 | + "default": { | |
| 116 | + "top": "", | |
| 117 | + "right": "", | |
| 118 | + "bottom": "", | |
| 119 | + "left": "" | |
| 120 | + } | |
| 121 | + } | |
| 122 | + }, | |
| 123 | + "tablet": { | |
| 124 | + "padding": { | |
| 125 | + "type": "object", | |
| 126 | + "default": { | |
| 127 | + "top": "", | |
| 128 | + "right": "", | |
| 129 | + "bottom": "", | |
| 130 | + "left": "" | |
| 131 | + } | |
| 132 | + }, | |
| 133 | + "margin": { | |
| 134 | + "type": "object", | |
| 135 | + "default": { | |
| 136 | + "top": "", | |
| 137 | + "right": "", | |
| 138 | + "bottom": "", | |
| 139 | + "left": "" | |
| 140 | + } | |
| 141 | + } | |
| 142 | + }, | |
| 143 | + "mobile": { | |
| 144 | + "padding": { | |
| 145 | + "type": "object", | |
| 146 | + "default": { | |
| 147 | + "top": "", | |
| 148 | + "right": "", | |
| 149 | + "bottom": "", | |
| 150 | + "left": "" | |
| 151 | + } | |
| 152 | + }, | |
| 153 | + "margin": { | |
| 154 | + "type": "object", | |
| 155 | + "default": { | |
| 156 | + "top": "", | |
| 157 | + "right": "", | |
| 158 | + "bottom": "", | |
| 159 | + "left": "" | |
| 160 | + } | |
| 161 | + } | |
| 162 | + }, | |
| 163 | + "typo": { | |
| 164 | + "fontSize": { | |
| 165 | + "desktop": "", | |
| 166 | + "tablet": "", | |
| 167 | + "mobile": "" | |
| 168 | + } | |
| 169 | + }, | |
| 170 | + "pulseColor": "#25d36680", | |
| 171 | + "normal": { | |
| 172 | + "bg": { | |
| 173 | + "color": "#25D366" | |
| 174 | + }, | |
| 175 | + "color": "#ffffff", | |
| 176 | + "border": {}, | |
| 177 | + "radius": { | |
| 178 | + "top": "50px", | |
| 179 | + "right": "50px", | |
| 180 | + "bottom": "50px", | |
| 181 | + "left": "50px" | |
| 182 | + }, | |
| 183 | + "shadow": {} | |
| 184 | + }, | |
| 185 | + "hover": { | |
| 186 | + "bg": {}, | |
| 187 | + "color": "", | |
| 188 | + "border": {}, | |
| 189 | + "radius": { | |
| 190 | + "top": "50px", | |
| 191 | + "right": "50px", | |
| 192 | + "bottom": "50px", | |
| 193 | + "left": "50px" | |
| 194 | + }, | |
| 195 | + "shadow": {}, | |
| 196 | + "transition": 0.3 | |
| 197 | + }, | |
| 198 | + "icon": { | |
| 199 | + "size": "16px", | |
| 200 | + "normal": { | |
| 201 | + "color": "#ffffff" | |
| 202 | + }, | |
| 203 | + "hover": { | |
| 204 | + "color": "#ffffff" | |
| 205 | + } | |
| 206 | + }, | |
| 207 | + "status": { | |
| 208 | + "size": "10px", | |
| 209 | + "color": { | |
| 210 | + "color": "#4cff50" | |
| 211 | + }, | |
| 212 | + "position": { | |
| 213 | + "x": "", | |
| 214 | + "y": "" | |
| 215 | + } | |
| 216 | + } | |
| 116 | 217 | } |
| 117 | 218 | } |
| 118 | 219 | }, |
| 119 | 220 | "supports": { |