| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockspare/search", |
| 5 |
"title": "Search", |
| 6 |
"category": "blockspare", |
| 7 |
"description": "Add a customizable search bar to help users easily find content on your site.", |
| 8 |
"attributes": { |
| 9 |
"sectionTag": { |
| 10 |
"type": "string", |
| 11 |
"default": "section" |
| 12 |
}, |
| 13 |
"align": { |
| 14 |
"type": "string", |
| 15 |
"default": "center" |
| 16 |
}, |
| 17 |
"searchStyle": { |
| 18 |
"type": "string", |
| 19 |
"default": "form" |
| 20 |
}, |
| 21 |
"searchIcon": { |
| 22 |
"type": "string", |
| 23 |
"default": "fas fa-search" |
| 24 |
}, |
| 25 |
"iconSize": { |
| 26 |
"type": "number", |
| 27 |
"default": 18 |
| 28 |
}, |
| 29 |
"iconOption": { |
| 30 |
"type": "string", |
| 31 |
"default": "dropdown" |
| 32 |
}, |
| 33 |
"buttonType": { |
| 34 |
"type": "string", |
| 35 |
"default": "icon" |
| 36 |
}, |
| 37 |
"buttonIcon": { |
| 38 |
"type": "string", |
| 39 |
"default": "fas fa-search" |
| 40 |
}, |
| 41 |
"placeholder": { |
| 42 |
"type": "string", |
| 43 |
"default": "Search" |
| 44 |
}, |
| 45 |
"sectionAlign": { |
| 46 |
"type": "string", |
| 47 |
"default": "left" |
| 48 |
}, |
| 49 |
"borderRadius": { |
| 50 |
"type": "number", |
| 51 |
"default": 0 |
| 52 |
}, |
| 53 |
"buttonLabel": { |
| 54 |
"type": "string", |
| 55 |
"default": "Search" |
| 56 |
}, |
| 57 |
"height": { |
| 58 |
"type": "number", |
| 59 |
"default": 45 |
| 60 |
}, |
| 61 |
"placeholderFontSize": { |
| 62 |
"type": "number", |
| 63 |
"default": 14 |
| 64 |
}, |
| 65 |
"placeholderFontFamily": { |
| 66 |
"type": "string", |
| 67 |
"default": "Default" |
| 68 |
}, |
| 69 |
"placeholderFontWeight": { |
| 70 |
"type": "string", |
| 71 |
"default": "" |
| 72 |
}, |
| 73 |
"placeholderFontSubset": { |
| 74 |
"type": "string" |
| 75 |
}, |
| 76 |
"placeholderFontSizeType": { |
| 77 |
"type": "string", |
| 78 |
"default": "px" |
| 79 |
}, |
| 80 |
"placeholderFontSizeMobile": { |
| 81 |
"type": "number", |
| 82 |
"default": 14 |
| 83 |
}, |
| 84 |
"placeholderFontSizeTablet": { |
| 85 |
"type": "number", |
| 86 |
"default": 14 |
| 87 |
}, |
| 88 |
"placeholderLoadGoogleFonts": { |
| 89 |
"type": "boolean", |
| 90 |
"default": false |
| 91 |
}, |
| 92 |
"searchFontSize": { |
| 93 |
"type": "number", |
| 94 |
"default": 16 |
| 95 |
}, |
| 96 |
"searchFontFamily": { |
| 97 |
"type": "string", |
| 98 |
"default": "Default" |
| 99 |
}, |
| 100 |
"searchFontWeight": { |
| 101 |
"type": "string", |
| 102 |
"default": "" |
| 103 |
}, |
| 104 |
"searchFontSubset": { |
| 105 |
"type": "string" |
| 106 |
}, |
| 107 |
"searchFontSizeType": { |
| 108 |
"type": "string", |
| 109 |
"default": "px" |
| 110 |
}, |
| 111 |
"searchFontSizeMobile": { |
| 112 |
"type": "number", |
| 113 |
"default": 14 |
| 114 |
}, |
| 115 |
"searchFontSizeTablet": { |
| 116 |
"type": "number", |
| 117 |
"default": 14 |
| 118 |
}, |
| 119 |
"searchLoadGoogleFonts": { |
| 120 |
"type": "boolean", |
| 121 |
"default": false |
| 122 |
}, |
| 123 |
"inputFontSize": { |
| 124 |
"type": "number", |
| 125 |
"default": 14 |
| 126 |
}, |
| 127 |
"inputFontFamily": { |
| 128 |
"type": "string", |
| 129 |
"default": "Default" |
| 130 |
}, |
| 131 |
"inputFontWeight": { |
| 132 |
"type": "string", |
| 133 |
"default": "" |
| 134 |
}, |
| 135 |
"inputFontSubset": { |
| 136 |
"type": "string" |
| 137 |
}, |
| 138 |
"inputFontSizeType": { |
| 139 |
"type": "string", |
| 140 |
"default": "px" |
| 141 |
}, |
| 142 |
"inputFontSizeMobile": { |
| 143 |
"type": "number", |
| 144 |
"default": 14 |
| 145 |
}, |
| 146 |
"inputFontSizeTablet": { |
| 147 |
"type": "number", |
| 148 |
"default": 14 |
| 149 |
}, |
| 150 |
"inputLoadGoogleFonts": { |
| 151 |
"type": "boolean", |
| 152 |
"default": false |
| 153 |
}, |
| 154 |
"iconColor": { |
| 155 |
"type": "string", |
| 156 |
"default": "#000" |
| 157 |
}, |
| 158 |
"formIconColor": { |
| 159 |
"type": "string", |
| 160 |
"default": "#fff" |
| 161 |
}, |
| 162 |
"closeIconColor": { |
| 163 |
"type": "string", |
| 164 |
"default": "#fff" |
| 165 |
}, |
| 166 |
"bgColor": { |
| 167 |
"type": "string", |
| 168 |
"default": "#fff" |
| 169 |
}, |
| 170 |
"buttonBgColor": { |
| 171 |
"type": "string", |
| 172 |
"default": "#bb1919" |
| 173 |
}, |
| 174 |
"buttonTextColor": { |
| 175 |
"type": "string", |
| 176 |
"default": "#fff" |
| 177 |
}, |
| 178 |
"placeholderTextColor": { |
| 179 |
"type": "string", |
| 180 |
"default": "#64696F" |
| 181 |
}, |
| 182 |
"inputTextColor": { |
| 183 |
"type": "string", |
| 184 |
"default": "#2c3338" |
| 185 |
}, |
| 186 |
"marginTop": { |
| 187 |
"type": "number", |
| 188 |
"default": 0 |
| 189 |
}, |
| 190 |
"marginBottom": { |
| 191 |
"type": "number", |
| 192 |
"default": 0 |
| 193 |
}, |
| 194 |
"marginRight": { |
| 195 |
"type": "number", |
| 196 |
"default": 0 |
| 197 |
}, |
| 198 |
"marginLeft": { |
| 199 |
"type": "number", |
| 200 |
"default": 0 |
| 201 |
}, |
| 202 |
"paddingTop": { |
| 203 |
"type": "number", |
| 204 |
"default": 0 |
| 205 |
}, |
| 206 |
"paddingBottom": { |
| 207 |
"type": "number", |
| 208 |
"default": 0 |
| 209 |
}, |
| 210 |
"paddingRight": { |
| 211 |
"type": "number", |
| 212 |
"default": 0 |
| 213 |
}, |
| 214 |
"paddingLeft": { |
| 215 |
"type": "number", |
| 216 |
"default": 0 |
| 217 |
}, |
| 218 |
"toggleIconPaddingTop": { |
| 219 |
"type": "number", |
| 220 |
"default": 0 |
| 221 |
}, |
| 222 |
"toggleIconPaddingBottom": { |
| 223 |
"type": "number", |
| 224 |
"default": 0 |
| 225 |
}, |
| 226 |
"toggleIconPaddingRight": { |
| 227 |
"type": "number", |
| 228 |
"default": 0 |
| 229 |
}, |
| 230 |
"toggleIconPaddingLeft": { |
| 231 |
"type": "number", |
| 232 |
"default": 0 |
| 233 |
}, |
| 234 |
"searchFormPaddingTop": { |
| 235 |
"type": "number", |
| 236 |
"default": 10 |
| 237 |
}, |
| 238 |
"searchFormPaddingBottom": { |
| 239 |
"type": "number", |
| 240 |
"default": 10 |
| 241 |
}, |
| 242 |
"searchFormPaddingRight": { |
| 243 |
"type": "number", |
| 244 |
"default": 10 |
| 245 |
}, |
| 246 |
"searchFormPaddingLeft": { |
| 247 |
"type": "number", |
| 248 |
"default": 10 |
| 249 |
}, |
| 250 |
"searchInputPaddingRight": { |
| 251 |
"type": "number", |
| 252 |
"default": 8 |
| 253 |
}, |
| 254 |
"searchInputPaddingLeft": { |
| 255 |
"type": "number", |
| 256 |
"default": 8 |
| 257 |
}, |
| 258 |
"toggleSearch": { |
| 259 |
"type": "boolean", |
| 260 |
"default": false |
| 261 |
}, |
| 262 |
"animation": { |
| 263 |
"type": "string", |
| 264 |
"default": "" |
| 265 |
}, |
| 266 |
"uniqueClass": { |
| 267 |
"type": "string", |
| 268 |
"default": "" |
| 269 |
}, |
| 270 |
"blockHoverEffect": { |
| 271 |
"type": "string", |
| 272 |
"default": "" |
| 273 |
} |
| 274 |
}, |
| 275 |
"editorScript": "file:./index.js", |
| 276 |
"editorStyle": "file:./index.css", |
| 277 |
"style": "file:./style-index.css", |
| 278 |
"viewScript": "file:./view.js", |
| 279 |
"render": "file:./render.php" |
| 280 |
} |