components
2 years ago
attributes.js
2 years ago
editor.scss
3 years ago
google-fonts.json
2 years ago
index.js
2 years ago
options.js
2 years ago
options.js
52 lines
| 1 | import { __ } from '@wordpress/i18n'; |
| 2 | import { alignLeft, alignCenter, alignRight, alignJustify } from '@wordpress/icons'; |
| 3 | |
| 4 | const typographyOptions = { |
| 5 | fontFamily: generateBlocksInfo.typographyFontFamilyList, |
| 6 | fontWeight: [ |
| 7 | { value: '', label: __( 'Default', 'generateblocks' ) }, |
| 8 | { value: 'normal', label: __( 'Normal', 'generateblocks' ) }, |
| 9 | { value: 'bold', label: __( 'Bold', 'generateblocks' ) }, |
| 10 | { value: '100', label: __( '100 - Thin', 'generateblocks' ) }, |
| 11 | { value: '200', label: __( '200 - Extra light', 'generateblocks' ) }, |
| 12 | { value: '300', label: __( '300 - Light', 'generateblocks' ) }, |
| 13 | { value: '400', label: __( '400 - Normal', 'generateblocks' ) }, |
| 14 | { value: '500', label: __( '500 - Medium', 'generateblocks' ) }, |
| 15 | { value: '600', label: __( '600 - Semi bold', 'generateblocks' ) }, |
| 16 | { value: '700', label: __( '700 - Bold', 'generateblocks' ) }, |
| 17 | { value: '800', label: __( '800 - Extra bold', 'generateblocks' ) }, |
| 18 | { value: '900', label: __( '900 - Black', 'generateblocks' ) }, |
| 19 | ], |
| 20 | textTransform: [ |
| 21 | { value: '', label: __( 'Default', 'generateblocks' ) }, |
| 22 | { value: 'uppercase', label: __( 'Uppercase', 'generateblocks' ) }, |
| 23 | { value: 'lowercase', label: __( 'Lowercase', 'generateblocks' ) }, |
| 24 | { value: 'capitalize', label: __( 'Capitalize', 'generateblocks' ) }, |
| 25 | { value: 'initial', label: __( 'Normal', 'generateblocks' ) }, |
| 26 | ], |
| 27 | alignments: [ |
| 28 | { |
| 29 | icon: alignLeft, |
| 30 | title: __( 'Align text left', 'generateblocks' ), |
| 31 | align: 'left', |
| 32 | }, |
| 33 | { |
| 34 | icon: alignCenter, |
| 35 | title: __( 'Align text center', 'generateblocks' ), |
| 36 | align: 'center', |
| 37 | }, |
| 38 | { |
| 39 | icon: alignRight, |
| 40 | title: __( 'Align text right', 'generateblocks' ), |
| 41 | align: 'right', |
| 42 | }, |
| 43 | { |
| 44 | icon: alignJustify, |
| 45 | title: __( 'Justify text', 'generateblocks' ), |
| 46 | align: 'justify', |
| 47 | }, |
| 48 | ], |
| 49 | }; |
| 50 | |
| 51 | export default typographyOptions; |
| 52 |