| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\DesignSystemSync\Classes; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
class Sync_Typography_Props { |
| 10 |
const PROP_MAP = [ |
| 11 |
'font-family' => 'typography_font_family', |
| 12 |
'font-size' => 'typography_font_size', |
| 13 |
'font-weight' => 'typography_font_weight', |
| 14 |
'font-style' => 'typography_font_style', |
| 15 |
'text-decoration' => 'typography_text_decoration', |
| 16 |
'line-height' => 'typography_line_height', |
| 17 |
'letter-spacing' => 'typography_letter_spacing', |
| 18 |
'word-spacing' => 'typography_word_spacing', |
| 19 |
'text-transform' => 'typography_text_transform', |
| 20 |
]; |
| 21 |
|
| 22 |
const RESPONSIVE_V3_PROPS = [ |
| 23 |
'typography_font_size', |
| 24 |
'typography_line_height', |
| 25 |
'typography_letter_spacing', |
| 26 |
'typography_word_spacing', |
| 27 |
]; |
| 28 |
|
| 29 |
public static function get_css_props(): array { |
| 30 |
return array_keys( self::PROP_MAP ); |
| 31 |
} |
| 32 |
} |
| 33 |
|