deprecated
2 weeks ago
block.json
1 day ago
component.js
2 weeks ago
edit.js
1 day ago
icon.svg
2 months ago
index.js
2 weeks ago
index.php
2 months ago
save.js
2 weeks ago
style.scss
2 weeks ago
transforms.js
2 months ago
block.json
152 lines
| 1 | { |
| 2 | "apiVersion": 3, |
| 3 | "name": "vk-blocks/button", |
| 4 | "title": "Button", |
| 5 | "category": "vk-blocks-cat", |
| 6 | "attributes": { |
| 7 | "content": { |
| 8 | "type": "string", |
| 9 | "source": "html", |
| 10 | "selector": "span", |
| 11 | "role": "content" |
| 12 | }, |
| 13 | "subCaption": { |
| 14 | "type": "string", |
| 15 | "role": "content" |
| 16 | }, |
| 17 | "buttonUrl": { |
| 18 | "type": "string", |
| 19 | "role": "content" |
| 20 | }, |
| 21 | "buttonTarget": { |
| 22 | "type": "boolean", |
| 23 | "default": false, |
| 24 | "role": "content" |
| 25 | }, |
| 26 | "relAttribute": { |
| 27 | "type": "string", |
| 28 | "default": "", |
| 29 | "role": "content" |
| 30 | }, |
| 31 | "linkToPost": { |
| 32 | "type": "boolean", |
| 33 | "default": false |
| 34 | }, |
| 35 | "buttonSize": { |
| 36 | "type": "string", |
| 37 | "default": "md", |
| 38 | "enum": ["xs", "sm", "md", "lg", "xl"] |
| 39 | }, |
| 40 | "buttonType": { |
| 41 | "type": "string", |
| 42 | "default": "0", |
| 43 | "enum": ["0", "1", "2"] |
| 44 | }, |
| 45 | "buttonEffect": { |
| 46 | "type": "string", |
| 47 | "default": "" |
| 48 | }, |
| 49 | "buttonColor": { |
| 50 | "type": "string", |
| 51 | "default": "primary", |
| 52 | "enum": [ |
| 53 | "primary", |
| 54 | "secondary", |
| 55 | "success", |
| 56 | "info", |
| 57 | "warning", |
| 58 | "danger", |
| 59 | "light", |
| 60 | "dark", |
| 61 | "custom" |
| 62 | ] |
| 63 | }, |
| 64 | "buttonTextColorCustom": { |
| 65 | "type": "string" |
| 66 | }, |
| 67 | "buttonColorCustom": { |
| 68 | "type": "string" |
| 69 | }, |
| 70 | "buttonAlign": { |
| 71 | "type": "string", |
| 72 | "default": "left", |
| 73 | "enum": ["left", "center", "right", "wide", "block"] |
| 74 | }, |
| 75 | "buttonWidthMobile": { |
| 76 | "type": "number", |
| 77 | "default": 0, |
| 78 | "enum": [0, 25, 50, 75, 100] |
| 79 | }, |
| 80 | "buttonWidthTablet": { |
| 81 | "type": "number", |
| 82 | "default": 0, |
| 83 | "enum": [0, 25, 50, 75, 100] |
| 84 | }, |
| 85 | "buttonWidth": { |
| 86 | "type": "number", |
| 87 | "default": 0, |
| 88 | "enum": [0, 25, 50, 75, 100] |
| 89 | }, |
| 90 | "outerGap": { |
| 91 | "type": "string", |
| 92 | "default": null |
| 93 | }, |
| 94 | "fontAwesomeIconBefore": { |
| 95 | "type": "string" |
| 96 | }, |
| 97 | "fontAwesomeIconAfter": { |
| 98 | "type": "string" |
| 99 | }, |
| 100 | "iconSizeBefore": { |
| 101 | "type": "string", |
| 102 | "default": null |
| 103 | }, |
| 104 | "iconSizeAfter": { |
| 105 | "type": "string", |
| 106 | "default": null |
| 107 | }, |
| 108 | "borderRadius": { |
| 109 | "type": "string", |
| 110 | "default": null |
| 111 | }, |
| 112 | "fontSizeValue": { |
| 113 | "type": "string", |
| 114 | "default": null |
| 115 | }, |
| 116 | "clientId": { |
| 117 | "type": "string" |
| 118 | }, |
| 119 | "buttonHoverBgColorCustom": { |
| 120 | "type": "string" |
| 121 | }, |
| 122 | "buttonHoverTextColorCustom": { |
| 123 | "type": "string" |
| 124 | }, |
| 125 | "blockId": { |
| 126 | "type": "string" |
| 127 | }, |
| 128 | "old_1_31_0": { |
| 129 | "type": "string", |
| 130 | "default": true |
| 131 | } |
| 132 | }, |
| 133 | "description": "A button link that can display icons before and after.", |
| 134 | "textdomain": "vk-blocks", |
| 135 | "supports": { |
| 136 | "className": true, |
| 137 | "anchor": true, |
| 138 | "typography": { |
| 139 | "__experimentalFontFamily": true, |
| 140 | "__experimentalTextTransform": true, |
| 141 | "__experimentalLetterSpacing": true |
| 142 | }, |
| 143 | "spacing": { |
| 144 | "padding": true, |
| 145 | "__experimentalDefaultControls": { |
| 146 | "padding": true |
| 147 | } |
| 148 | } |
| 149 | }, |
| 150 | "usesContext": ["queryId"] |
| 151 | } |
| 152 |