| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/file-download", |
| 5 |
"title": "File Download", |
| 6 |
"category": "bkbg-media", |
| 7 |
"icon": "download", |
| 8 |
"description": "Styled file download card with icon, file name, size, description, and call-to-action button.", |
| 9 |
"keywords": [ |
| 10 |
"download", |
| 11 |
"file", |
| 12 |
"attachment", |
| 13 |
"document", |
| 14 |
"pdf" |
| 15 |
], |
| 16 |
"textdomain": "blockenberg", |
| 17 |
"editorScript": "bkbg-file-download-editor", |
| 18 |
"editorStyle": "bkbg-file-download-style", |
| 19 |
"style": "bkbg-file-download-style", |
| 20 |
"viewScript": "bkbg-file-download-frontend", |
| 21 |
"supports": { |
| 22 |
"html": false, |
| 23 |
"anchor": true, |
| 24 |
"className": true, |
| 25 |
"align": [ |
| 26 |
"wide" |
| 27 |
] |
| 28 |
}, |
| 29 |
"attributes": { |
| 30 |
"fileUrl": { |
| 31 |
"type": "string", |
| 32 |
"default": "" |
| 33 |
}, |
| 34 |
"fileId": { |
| 35 |
"type": "number", |
| 36 |
"default": 0 |
| 37 |
}, |
| 38 |
"fileName": { |
| 39 |
"type": "string", |
| 40 |
"default": "Annual Report 2025.pdf" |
| 41 |
}, |
| 42 |
"fileSize": { |
| 43 |
"type": "string", |
| 44 |
"default": "2.4 MB" |
| 45 |
}, |
| 46 |
"fileType": { |
| 47 |
"type": "string", |
| 48 |
"default": "PDF" |
| 49 |
}, |
| 50 |
"description": { |
| 51 |
"type": "string", |
| 52 |
"default": "Download and review our complete annual report for the year 2025." |
| 53 |
}, |
| 54 |
"btnLabel": { |
| 55 |
"type": "string", |
| 56 |
"default": "Download" |
| 57 |
}, |
| 58 |
"showIcon": { |
| 59 |
"type": "boolean", |
| 60 |
"default": true |
| 61 |
}, |
| 62 |
"iconStyle": { |
| 63 |
"type": "string", |
| 64 |
"default": "color" |
| 65 |
}, |
| 66 |
"layoutStyle": { |
| 67 |
"type": "string", |
| 68 |
"default": "card" |
| 69 |
}, |
| 70 |
"cardBg": { |
| 71 |
"type": "string", |
| 72 |
"default": "#ffffff" |
| 73 |
}, |
| 74 |
"cardBorder": { |
| 75 |
"type": "string", |
| 76 |
"default": "#e5e7eb" |
| 77 |
}, |
| 78 |
"cardRadius": { |
| 79 |
"type": "number", |
| 80 |
"default": 12 |
| 81 |
}, |
| 82 |
"cardShadow": { |
| 83 |
"type": "boolean", |
| 84 |
"default": true |
| 85 |
}, |
| 86 |
"iconBg": { |
| 87 |
"type": "string", |
| 88 |
"default": "#ede9fc" |
| 89 |
}, |
| 90 |
"iconColor": { |
| 91 |
"type": "string", |
| 92 |
"default": "#6c3fb5" |
| 93 |
}, |
| 94 |
"iconSize": { |
| 95 |
"type": "number", |
| 96 |
"default": 48 |
| 97 |
}, |
| 98 |
"nameColor": { |
| 99 |
"type": "string", |
| 100 |
"default": "#1f2937" |
| 101 |
}, |
| 102 |
"metaColor": { |
| 103 |
"type": "string", |
| 104 |
"default": "#6b7280" |
| 105 |
}, |
| 106 |
"descColor": { |
| 107 |
"type": "string", |
| 108 |
"default": "#4b5563" |
| 109 |
}, |
| 110 |
"btnBg": { |
| 111 |
"type": "string", |
| 112 |
"default": "#6c3fb5" |
| 113 |
}, |
| 114 |
"btnColor": { |
| 115 |
"type": "string", |
| 116 |
"default": "#ffffff" |
| 117 |
}, |
| 118 |
"btnRadius": { |
| 119 |
"type": "number", |
| 120 |
"default": 8 |
| 121 |
}, |
| 122 |
"badgeEnabled": { |
| 123 |
"type": "boolean", |
| 124 |
"default": true |
| 125 |
}, |
| 126 |
"badgeBg": { |
| 127 |
"type": "string", |
| 128 |
"default": "#6c3fb5" |
| 129 |
}, |
| 130 |
"badgeColor": { |
| 131 |
"type": "string", |
| 132 |
"default": "#ffffff" |
| 133 |
}, |
| 134 |
"openInNew": { |
| 135 |
"type": "boolean", |
| 136 |
"default": false |
| 137 |
}, |
| 138 |
"nameFontSize": { "type": "number", "default": 16 }, |
| 139 |
"nameFontWeight": { "type": "string", "default": "700" }, |
| 140 |
"descFontSize": { "type": "number", "default": 14 }, |
| 141 |
"descFontWeight": { "type": "string", "default": "400" }, |
| 142 |
"descLineHeight": { "type": "number", "default": 1.5 }, |
| 143 |
"btnFontSize": { "type": "number", "default": 14 }, |
| 144 |
"btnFontWeight": { "type": "string", "default": "600" }, |
| 145 |
"typoName": { "type": "object", "default": {} }, |
| 146 |
"typoDesc": { "type": "object", "default": {} }, |
| 147 |
"typoMeta": { "type": "object", "default": {} }, |
| 148 |
"typoBadge": { "type": "object", "default": {} }, |
| 149 |
"typoBtn": { "type": "object", "default": {} } |
| 150 |
} |
| 151 |
} |
| 152 |
|