PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.8.2
GenerateBlocks v1.8.2
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / extend / inspector-control / controls / typography / options.js
generateblocks / src / extend / inspector-control / controls / typography Last commit date
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