← All changes
|
modules/atomic-widgets/styles/style-schema.php
+7
-20
4.3.0-beta3
→
4.1.4
View file →
| @@ -10,15 +10,13 @@ | ||
| 10 | 10 | use Elementor\Modules\AtomicWidgets\PropTypes\Border_Radius_Prop_Type; |
| 11 | 11 | use Elementor\Modules\AtomicWidgets\PropTypes\Border_Width_Prop_Type; |
| 12 | 12 | use Elementor\Modules\AtomicWidgets\PropTypes\Color_Prop_Type; |
| 13 | 13 | use Elementor\Modules\AtomicWidgets\PropTypes\Dimensions_Prop_Type; |
| 14 | -use Elementor\Modules\AtomicWidgets\PropTypes\Font_Family_Prop_Type; | |
| 15 | 14 | use Elementor\Modules\AtomicWidgets\PropTypes\Filters\Backdrop_Filter_Prop_Type; |
| 16 | 15 | use Elementor\Modules\AtomicWidgets\PropTypes\Filters\Filter_Prop_Type; |
| 17 | 16 | use Elementor\Modules\AtomicWidgets\PropTypes\Layout_Direction_Prop_Type; |
| 18 | 17 | use Elementor\Modules\AtomicWidgets\PropTypes\Position_Prop_Type; |
| 19 | 18 | use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\Number_Prop_Type; |
| 20 | -use Elementor\Modules\AtomicWidgets\PropTypes\Grid_Track_Size_Prop_Type; | |
| 21 | 19 | use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type; |
| 22 | 20 | use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type; |
| 23 | 21 | use Elementor\Modules\AtomicWidgets\PropTypes\Stroke_Prop_Type; |
| 24 | 22 | use Elementor\Modules\AtomicWidgets\PropTypes\Transform\Transform_Prop_Type; |
| @@ -132,10 +130,9 @@ | ||
| 132 | 130 | } |
| 133 | 131 | |
| 134 | 132 | private static function get_typography_props() { |
| 135 | 133 | return [ |
| 136 | - 'font-family' => Font_Family_Prop_Type::make() | |
| 137 | - ->description( 'The font family of the text content.' ), | |
| 134 | + 'font-family' => String_Prop_Type::make()->description( 'The font family of the text content.' ), | |
| 138 | 135 | 'font-weight' => String_Prop_Type::make()->enum( [ |
| 139 | 136 | '100', |
| 140 | 137 | '200', |
| 141 | 138 | '300', |
| @@ -345,29 +342,19 @@ | ||
| 345 | 342 | 'nowrap', |
| 346 | 343 | 'wrap-reverse', |
| 347 | 344 | ] )->description( 'Specifies whether the flex items should wrap or not. CSS values: wrap, nowrap, wrap-reverse' ), |
| 348 | 345 | 'flex' => Flex_Prop_Type::make(), |
| 349 | - 'grid-template-columns' => Union_Prop_Type::make() | |
| 350 | - ->add_prop_type( String_Prop_Type::make() ) | |
| 351 | - ->add_prop_type( Grid_Track_Size_Prop_Type::make()->units( Size_Constants::grid_track() ) ), | |
| 352 | - 'grid-template-rows' => Union_Prop_Type::make() | |
| 353 | - ->add_prop_type( String_Prop_Type::make() ) | |
| 354 | - ->add_prop_type( Grid_Track_Size_Prop_Type::make()->units( Size_Constants::grid_track() ) ), | |
| 346 | + 'grid-template-columns' => String_Prop_Type::make() | |
| 347 | + ->description( 'Defines the columns of a grid container. Accepts any valid CSS grid-template-columns value, e.g. repeat(3, 1fr) or 100px 200px auto.' ), | |
| 348 | + 'grid-template-rows' => String_Prop_Type::make() | |
| 349 | + ->description( 'Defines the rows of a grid container. Accepts any valid CSS grid-template-rows value, e.g. repeat(3, 1fr) or 100px 200px auto.' ), | |
| 355 | 350 | 'grid-auto-flow' => String_Prop_Type::make() |
| 356 | 351 | ->enum( [ 'row', 'column', 'row dense', 'column dense' ] ) |
| 357 | 352 | ->description( 'Controls how auto-placed items flow in the grid. CSS values: row, column, row dense, column dense.' ), |
| 358 | - 'grid-auto-rows' => Size_Prop_Type::make() | |
| 359 | - ->units( Size_Constants::grid_auto_track() ) | |
| 360 | - ->default_unit( Size_Constants::UNIT_FR ), | |
| 361 | - 'grid-auto-columns' => Size_Prop_Type::make() | |
| 362 | - ->units( Size_Constants::grid_auto_track() ) | |
| 363 | - ->default_unit( Size_Constants::UNIT_FR ), | |
| 364 | 353 | 'grid-column' => Span_Prop_Type::make() |
| 365 | - ->regex( '/^(?!.*https?:\/\/)(?!.*;).*$/' ) | |
| 366 | - ->description( 'Defines a grid item column placement. Accepts values like span N or any valid CSS grid-column value. Disallows URLs and semicolons.' ), | |
| 354 | + ->description( 'Defines a grid item column placement. Accepts values like span N or any valid CSS grid-column value.' ), | |
| 367 | 355 | 'grid-row' => Span_Prop_Type::make() |
| 368 | - ->regex( '/^(?!.*https?:\/\/)(?!.*;).*$/' ) | |
| 369 | - ->description( 'Defines a grid item row placement. Accepts values like span N or any valid CSS grid-row value. Disallows URLs and semicolons.' ), | |
| 356 | + ->description( 'Defines a grid item row placement. Accepts values like span N or any valid CSS grid-row value.' ), | |
| 370 | 357 | ]; |
| 371 | 358 | } |
| 372 | 359 | |
| 373 | 360 | private static function get_alignment_props() { |