deprecated
2 months ago
block.json
13 hours ago
edit.js
2 months ago
heading-level-dropdown.js
2 months ago
heading-level-icon.js
2 months ago
icon.svg
2 months ago
index.js
2 months ago
index.php
2 months ago
save.js
2 months ago
style.scss
2 months ago
transforms.js
2 months ago
index.js
46 lines
| 1 | /** |
| 2 | * heading block type |
| 3 | * |
| 4 | */ |
| 5 | import { ReactComponent as Icon } from './icon.svg'; |
| 6 | import { iconUser, title, baseColor } from '@vkblocks/utils/example-data'; |
| 7 | |
| 8 | import deprecated from './deprecated/'; |
| 9 | import edit from './edit'; |
| 10 | import metadata from './block.json'; |
| 11 | import save from './save'; |
| 12 | import transforms from './transforms.js'; |
| 13 | |
| 14 | const { name } = metadata; |
| 15 | |
| 16 | export { metadata, name }; |
| 17 | |
| 18 | export const settings = { |
| 19 | icon: <Icon />, |
| 20 | category: 'vk-blocks-cat', |
| 21 | example: { |
| 22 | attributes: { |
| 23 | anchor: '', |
| 24 | level: 2, |
| 25 | align: 'center', |
| 26 | titleStyle: 'default', |
| 27 | outerMarginBottom: 0, |
| 28 | title, |
| 29 | titleColor: baseColor, |
| 30 | titleSize: 2, |
| 31 | titleMarginBottom: 1, |
| 32 | subText: title, |
| 33 | subTextFlag: 'on', |
| 34 | subTextColor: baseColor, |
| 35 | subTextSize: 1.2, |
| 36 | fontAwesomeIconBefore: iconUser, |
| 37 | fontAwesomeIconAfter: '', |
| 38 | fontAwesomeIconColor: baseColor, |
| 39 | }, |
| 40 | }, |
| 41 | edit, |
| 42 | save, |
| 43 | transforms, |
| 44 | deprecated, |
| 45 | }; |
| 46 |