| 1 |
{ |
| 2 |
"apiVersion": "1", |
| 3 |
"name": "ctb/countdown-time", |
| 4 |
"title": "Countdown Time", |
| 5 |
"description": "Display events date into a timer.", |
| 6 |
"category": "CTBlock", |
| 7 |
"keywords": [ |
| 8 |
"countdown timer block", |
| 9 |
"countdown ceremony time", |
| 10 |
"countdown events time" |
| 11 |
], |
| 12 |
"textdomain": "countdown-time", |
| 13 |
"attributes": { |
| 14 |
"align": { |
| 15 |
"type": "string", |
| 16 |
"default": "" |
| 17 |
}, |
| 18 |
"cId": { |
| 19 |
"type": "string", |
| 20 |
"default": "" |
| 21 |
}, |
| 22 |
"destDate": { |
| 23 |
"type": "string", |
| 24 |
"default": "" |
| 25 |
}, |
| 26 |
"layout": { |
| 27 |
"type": "string", |
| 28 |
"default": "default" |
| 29 |
}, |
| 30 |
"isResponsive": { |
| 31 |
"type": "boolean", |
| 32 |
"default": true |
| 33 |
}, |
| 34 |
"boxIsInline": { |
| 35 |
"type": "boolean", |
| 36 |
"default": false |
| 37 |
}, |
| 38 |
"boxPosition": { |
| 39 |
"type": "string", |
| 40 |
"default": "center" |
| 41 |
}, |
| 42 |
"isLabels": { |
| 43 |
"type": "boolean", |
| 44 |
"default": true |
| 45 |
}, |
| 46 |
"isDays": { |
| 47 |
"type": "boolean", |
| 48 |
"default": true |
| 49 |
}, |
| 50 |
"daysLabel": { |
| 51 |
"type": "string", |
| 52 |
"default": "Days" |
| 53 |
}, |
| 54 |
"isHours": { |
| 55 |
"type": "boolean", |
| 56 |
"default": true |
| 57 |
}, |
| 58 |
"hoursLabel": { |
| 59 |
"type": "string", |
| 60 |
"default": "Hours" |
| 61 |
}, |
| 62 |
"isMinutes": { |
| 63 |
"type": "boolean", |
| 64 |
"default": true |
| 65 |
}, |
| 66 |
"minutesLabel": { |
| 67 |
"type": "string", |
| 68 |
"default": "Minutes" |
| 69 |
}, |
| 70 |
"isSeconds": { |
| 71 |
"type": "boolean", |
| 72 |
"default": true |
| 73 |
}, |
| 74 |
"secondsLabel": { |
| 75 |
"type": "string", |
| 76 |
"default": "Seconds" |
| 77 |
}, |
| 78 |
"isExpired": { |
| 79 |
"type": "boolean", |
| 80 |
"default": false |
| 81 |
}, |
| 82 |
"hideOn0": { |
| 83 |
"type": "boolean", |
| 84 |
"default": false |
| 85 |
}, |
| 86 |
"hideOnMobile": { |
| 87 |
"type": "boolean", |
| 88 |
"default": false |
| 89 |
}, |
| 90 |
"hideOnTablet": { |
| 91 |
"type": "boolean", |
| 92 |
"default": false |
| 93 |
}, |
| 94 |
"prefixSuffixDirection": { |
| 95 |
"type": "string", |
| 96 |
"default": "row" |
| 97 |
}, |
| 98 |
"prefixText": { |
| 99 |
"type": "string", |
| 100 |
"default": "" |
| 101 |
}, |
| 102 |
"suffixButtonText": { |
| 103 |
"type": "string", |
| 104 |
"default": "" |
| 105 |
}, |
| 106 |
"suffixButtonUrl": { |
| 107 |
"type": "string", |
| 108 |
"default": "#" |
| 109 |
}, |
| 110 |
"addID": { |
| 111 |
"type": "string", |
| 112 |
"default": "" |
| 113 |
}, |
| 114 |
"addClass": { |
| 115 |
"type": "string", |
| 116 |
"default": "" |
| 117 |
}, |
| 118 |
"addCSS": { |
| 119 |
"type": "string", |
| 120 |
"default": "" |
| 121 |
}, |
| 122 |
"width": { |
| 123 |
"type": "string", |
| 124 |
"default": "0px" |
| 125 |
}, |
| 126 |
"background": { |
| 127 |
"type": "object", |
| 128 |
"default": { |
| 129 |
"color": "#0000" |
| 130 |
} |
| 131 |
}, |
| 132 |
"padding": { |
| 133 |
"type": "object", |
| 134 |
"default": { |
| 135 |
"vertical": "10px", |
| 136 |
"horizontal": "15px" |
| 137 |
} |
| 138 |
}, |
| 139 |
"shadow": { |
| 140 |
"type": "object", |
| 141 |
"default": {} |
| 142 |
}, |
| 143 |
"alignment": { |
| 144 |
"type": "string", |
| 145 |
"default": "center" |
| 146 |
}, |
| 147 |
"boxBG": { |
| 148 |
"type": "object", |
| 149 |
"default": { |
| 150 |
"type": "gradient", |
| 151 |
"color": "#4527a4", |
| 152 |
"gradient": "linear-gradient(135deg, #4527a4, #8344c5)" |
| 153 |
} |
| 154 |
}, |
| 155 |
"boxWidth": { |
| 156 |
"type": "string", |
| 157 |
"default": "170px" |
| 158 |
}, |
| 159 |
"boxHeight": { |
| 160 |
"type": "string", |
| 161 |
"default": "120px" |
| 162 |
}, |
| 163 |
"boxSpace": { |
| 164 |
"type": "string", |
| 165 |
"default": "30px" |
| 166 |
}, |
| 167 |
"boxBorder": { |
| 168 |
"type": "object", |
| 169 |
"default": { |
| 170 |
"radius": "5%" |
| 171 |
} |
| 172 |
}, |
| 173 |
"boxShadow": { |
| 174 |
"type": "object", |
| 175 |
"default": {} |
| 176 |
}, |
| 177 |
"digitTypo": { |
| 178 |
"type": "object", |
| 179 |
"default": { |
| 180 |
"fontSize": { |
| 181 |
"desktop": 48, |
| 182 |
"tablet": 40, |
| 183 |
"mobile": 32 |
| 184 |
} |
| 185 |
} |
| 186 |
}, |
| 187 |
"digitColor": { |
| 188 |
"type": "string", |
| 189 |
"default": "#fff" |
| 190 |
}, |
| 191 |
"labelTypo": { |
| 192 |
"type": "object", |
| 193 |
"default": { |
| 194 |
"fontSize": { |
| 195 |
"desktop": 18, |
| 196 |
"tablet": 17, |
| 197 |
"mobile": 16 |
| 198 |
} |
| 199 |
} |
| 200 |
}, |
| 201 |
"labelColor": { |
| 202 |
"type": "string", |
| 203 |
"default": "#fff" |
| 204 |
}, |
| 205 |
"isDaysSingleStyle": { |
| 206 |
"type": "boolean", |
| 207 |
"default": false |
| 208 |
}, |
| 209 |
"daysBG": { |
| 210 |
"type": "object", |
| 211 |
"default": { |
| 212 |
"type": "gradient", |
| 213 |
"color": "#4527a4", |
| 214 |
"gradient": "linear-gradient(135deg, #4527a4, #8344c5)" |
| 215 |
} |
| 216 |
}, |
| 217 |
"daysDigitColor": { |
| 218 |
"type": "string", |
| 219 |
"default": "#fff" |
| 220 |
}, |
| 221 |
"daysLabelColor": { |
| 222 |
"type": "string", |
| 223 |
"default": "#fff" |
| 224 |
}, |
| 225 |
"isHoursSingleStyle": { |
| 226 |
"type": "boolean", |
| 227 |
"default": false |
| 228 |
}, |
| 229 |
"hoursBG": { |
| 230 |
"type": "object", |
| 231 |
"default": { |
| 232 |
"type": "gradient", |
| 233 |
"color": "#4527a4", |
| 234 |
"gradient": "linear-gradient(135deg, #4527a4, #8344c5)" |
| 235 |
} |
| 236 |
}, |
| 237 |
"hoursDigitColor": { |
| 238 |
"type": "string", |
| 239 |
"default": "#fff" |
| 240 |
}, |
| 241 |
"hoursLabelColor": { |
| 242 |
"type": "string", |
| 243 |
"default": "#fff" |
| 244 |
}, |
| 245 |
"isMinutesSingleStyle": { |
| 246 |
"type": "boolean", |
| 247 |
"default": false |
| 248 |
}, |
| 249 |
"minutesBG": { |
| 250 |
"type": "object", |
| 251 |
"default": { |
| 252 |
"type": "gradient", |
| 253 |
"color": "#4527a4", |
| 254 |
"gradient": "linear-gradient(135deg, #4527a4, #8344c5)" |
| 255 |
} |
| 256 |
}, |
| 257 |
"minutesDigitColor": { |
| 258 |
"type": "string", |
| 259 |
"default": "#fff" |
| 260 |
}, |
| 261 |
"minutesLabelColor": { |
| 262 |
"type": "string", |
| 263 |
"default": "#fff" |
| 264 |
}, |
| 265 |
"isSecondsSingleStyle": { |
| 266 |
"type": "boolean", |
| 267 |
"default": false |
| 268 |
}, |
| 269 |
"secondsBG": { |
| 270 |
"type": "object", |
| 271 |
"default": { |
| 272 |
"type": "gradient", |
| 273 |
"color": "#4527a4", |
| 274 |
"gradient": "linear-gradient(135deg, #4527a4, #8344c5)" |
| 275 |
} |
| 276 |
}, |
| 277 |
"secondsDigitColor": { |
| 278 |
"type": "string", |
| 279 |
"default": "#fff" |
| 280 |
}, |
| 281 |
"secondsLabelColor": { |
| 282 |
"type": "string", |
| 283 |
"default": "#fff" |
| 284 |
}, |
| 285 |
"isSep": { |
| 286 |
"type": "boolean", |
| 287 |
"default": false |
| 288 |
}, |
| 289 |
"sepType": { |
| 290 |
"type": "string", |
| 291 |
"default": ":" |
| 292 |
}, |
| 293 |
"sepSize": { |
| 294 |
"type": "number", |
| 295 |
"default": 52 |
| 296 |
}, |
| 297 |
"sepColor": { |
| 298 |
"type": "string", |
| 299 |
"default": "#4527a4" |
| 300 |
}, |
| 301 |
"prefixTextTypo": { |
| 302 |
"type": "object", |
| 303 |
"default": { |
| 304 |
"fontSize": { |
| 305 |
"desktop": 15, |
| 306 |
"tablet": 15, |
| 307 |
"mobile": 15 |
| 308 |
} |
| 309 |
} |
| 310 |
}, |
| 311 |
"prefixTextColor": { |
| 312 |
"type": "string", |
| 313 |
"default": "#222" |
| 314 |
}, |
| 315 |
"suffixButtonTypo": { |
| 316 |
"type": "object", |
| 317 |
"default": { |
| 318 |
"fontSize": { |
| 319 |
"desktop": 16, |
| 320 |
"tablet": 16, |
| 321 |
"mobile": 16 |
| 322 |
} |
| 323 |
} |
| 324 |
}, |
| 325 |
"suffixButtonColors": { |
| 326 |
"type": "object", |
| 327 |
"default": { |
| 328 |
"color": "#fff", |
| 329 |
"bg": "#222" |
| 330 |
} |
| 331 |
}, |
| 332 |
"suffixButtonPadding": { |
| 333 |
"type": "object", |
| 334 |
"default": { |
| 335 |
"vertical": "14px", |
| 336 |
"horizontal": "28px" |
| 337 |
} |
| 338 |
}, |
| 339 |
"isDismiss": { |
| 340 |
"type": "boolean", |
| 341 |
"default": false |
| 342 |
}, |
| 343 |
"dismissColor": { |
| 344 |
"type": "string", |
| 345 |
"default": "#333" |
| 346 |
} |
| 347 |
}, |
| 348 |
"supports": { |
| 349 |
"align": [ |
| 350 |
"wide", |
| 351 |
"full" |
| 352 |
], |
| 353 |
"html": false |
| 354 |
}, |
| 355 |
"example": { |
| 356 |
"attributes": { |
| 357 |
"preview": true, |
| 358 |
"boxWidth": "120px", |
| 359 |
"boxHeight": "100px", |
| 360 |
"boxSpace": "15px", |
| 361 |
"destDate": "Dec 22 2022" |
| 362 |
} |
| 363 |
}, |
| 364 |
"editorScript": "file:../dist/editor.js" |
| 365 |
} |