PluginProbe
Elementor Website Builder – more than just a page builder / 3.29.0-beta4
Elementor Website Builder – more than just a page builder v3.29.0-beta4
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
← All changes | modules/atomic-widgets/styles/style-schema.php +90 -239 4.1.0-dev2 → 3.29.0-beta4 View file →
@@ -1,11 +1,7 @@
1 1 <?php
2 -
3 2 namespace Elementor\Modules\AtomicWidgets\Styles;
4 3
5 -use Elementor\Modules\AtomicWidgets\DynamicTags\Dynamic_Prop_Types_Mapping;
6 -use Elementor\Modules\AtomicWidgets\PropTypes\Background_Image_Overlay_Prop_Type;
7 -use Elementor\Modules\AtomicWidgets\PropTypes\Background_Overlay_Prop_Type;
8 4 use Elementor\Modules\AtomicWidgets\PropTypes\Background_Prop_Type;
9 5 use Elementor\Modules\AtomicWidgets\PropTypes\Box_Shadow_Prop_Type;
10 6 use Elementor\Modules\AtomicWidgets\PropTypes\Border_Radius_Prop_Type;
11 7 use Elementor\Modules\AtomicWidgets\PropTypes\Border_Width_Prop_Type;
@@ -10,22 +6,14 @@
10 6 use Elementor\Modules\AtomicWidgets\PropTypes\Border_Radius_Prop_Type;
11 7 use Elementor\Modules\AtomicWidgets\PropTypes\Border_Width_Prop_Type;
12 8 use Elementor\Modules\AtomicWidgets\PropTypes\Color_Prop_Type;
13 9 use Elementor\Modules\AtomicWidgets\PropTypes\Dimensions_Prop_Type;
14 -use Elementor\Modules\AtomicWidgets\PropTypes\Filters\Backdrop_Filter_Prop_Type;
15 -use Elementor\Modules\AtomicWidgets\PropTypes\Filters\Filter_Prop_Type;
16 10 use Elementor\Modules\AtomicWidgets\PropTypes\Layout_Direction_Prop_Type;
17 -use Elementor\Modules\AtomicWidgets\PropTypes\Position_Prop_Type;
18 11 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\Number_Prop_Type;
19 12 use Elementor\Modules\AtomicWidgets\PropTypes\Size_Prop_Type;
20 13 use Elementor\Modules\AtomicWidgets\PropTypes\Primitives\String_Prop_Type;
21 14 use Elementor\Modules\AtomicWidgets\PropTypes\Stroke_Prop_Type;
22 -use Elementor\Modules\AtomicWidgets\PropTypes\Transform\Transform_Prop_Type;
23 -use Elementor\Modules\AtomicWidgets\PropTypes\Transition_Prop_Type;
24 15 use Elementor\Modules\AtomicWidgets\PropTypes\Union_Prop_Type;
25 -use Elementor\Modules\AtomicWidgets\PropTypes\Flex_Prop_Type;
26 -use Elementor\Modules\AtomicWidgets\PropDependencies\Manager as Dependency_Manager;
27 -use Elementor\Modules\AtomicWidgets\PropTypes\Span_Prop_Type;
28 16
29 17 if ( ! defined( 'ABSPATH' ) ) {
30 18 exit; // Exit if accessed directly.
31 19 }
@@ -45,95 +33,64 @@
45 33 self::get_background_props(),
46 34 self::get_effects_props(),
47 35 self::get_layout_props(),
48 36 self::get_alignment_props(),
49 - self::get_special_props(),
50 37 );
51 38 }
52 39
53 40 private static function get_size_props() {
54 41 return [
55 - 'width' => Size_Prop_Type::make()->description( 'The width of the element' ),
56 - 'height' => Size_Prop_Type::make()->description( 'The height of the element' ),
57 - 'min-width' => Size_Prop_Type::make()->description( 'The minimum width of the element' ),
58 - 'min-height' => Size_Prop_Type::make()->description( 'The minimum height of the element' ),
59 - 'max-width' => Size_Prop_Type::make()->description( 'The maximum width of the element' ),
60 - 'max-height' => Size_Prop_Type::make()->description( 'The maximum height of the element' ),
61 - 'overflow' => String_Prop_Type::make()->enum( [
42 + 'width' => Union_Prop_Type::make()
43 + ->add_prop_type( Size_Prop_Type::make() )
44 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
45 + 'height' => Union_Prop_Type::make()
46 + ->add_prop_type( Size_Prop_Type::make() )
47 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
48 + 'min-width' => Union_Prop_Type::make()
49 + ->add_prop_type( Size_Prop_Type::make() )
50 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
51 + 'min-height' => Union_Prop_Type::make()
52 + ->add_prop_type( Size_Prop_Type::make() )
53 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
54 + 'max-width' => Size_Prop_Type::make(),
55 + 'max-height' => Size_Prop_Type::make(),
56 + 'overflow' => String_Prop_Type::make()->enum([
62 57 'visible',
63 58 'hidden',
64 59 'auto',
65 - ] )->description( 'The overflow CSS property. CSS values: visible, hidden, auto' ),
66 - 'aspect-ratio' => String_Prop_Type::make()->description( 'Equivalent to CSS aspect-ration property' ),
67 - 'object-fit' => String_Prop_Type::make()->enum( [
68 - 'fill',
69 - 'cover',
70 - 'contain',
71 - 'none',
72 - 'scale-down',
73 - ] )->description( 'The object-fit CSS. CSS values: fill, cover, contain, none, scale-down' ),
74 - 'object-position' => Union_Prop_Type::make()
75 - ->add_prop_type( String_Prop_Type::make()->enum( Position_Prop_Type::get_position_enum_values() ) )
76 - ->add_prop_type( Position_Prop_Type::make() )
77 - ->set_dependencies(
78 - Dependency_Manager::make( Dependency_Manager::RELATION_AND )
79 - ->where( [
80 - 'operator' => 'ne',
81 - 'path' => [ 'object-fit' ],
82 - 'value' => 'fill',
83 - ] )
84 - ->where( [
85 - 'operator' => 'exists',
86 - 'path' => [ 'object-fit' ],
87 - ] )
88 - ->get()
89 - ),
60 + ]),
90 61 ];
91 62 }
92 63
93 64 private static function get_position_props() {
94 - $non_static_dependency = Dependency_Manager::make( Dependency_Manager::RELATION_AND )
95 - ->where( [
96 - 'operator' => 'exists',
97 - 'path' => [ 'position' ],
98 - ] )
99 - ->where( [
100 - 'operator' => 'ne',
101 - 'path' => [ 'position' ],
102 - 'value' => 'static',
103 - ] )
104 - ->get();
105 -
106 65 return [
107 - 'position' => String_Prop_Type::make()->enum( [
66 + 'position' => String_Prop_Type::make()->enum([
108 67 'static',
109 68 'relative',
110 69 'absolute',
111 70 'fixed',
112 71 'sticky',
113 - ] )->description( 'The CSS position property specifies the type of positioning method used for an element (static, relative, absolute, fixed, or sticky).' ),
114 - 'inset-block-start' => Size_Prop_Type::make()
115 - ->description( 'Size PropType for the inset-block-start CSS property' )
116 - ->set_dependencies( $non_static_dependency ),
117 - 'inset-inline-end' => Size_Prop_Type::make()
118 - ->description( 'Size PropType for the inset-inline-end CSS property' )
119 - ->set_dependencies( $non_static_dependency ),
120 - 'inset-block-end' => Size_Prop_Type::make()
121 - ->description( 'Size PropType for the inset-block-end CSS property' )
122 - ->set_dependencies( $non_static_dependency ),
123 - 'inset-inline-start' => Size_Prop_Type::make()
124 - ->description( 'Size PropType for the inset-inline-start CSS property' )
125 - ->set_dependencies( $non_static_dependency ),
126 - 'z-index' => Number_Prop_Type::make()
127 - ->description( 'The z-index CSS property sets the z-order of a positioned element and its descendants or flex items. It specifies the stack order of elements.' ),
128 - 'scroll-margin-top' => Size_Prop_Type::make()->units( Size_Constants::anchor_offset() ),
72 + ]),
73 + 'inset-block-start' => Union_Prop_Type::make()
74 + ->add_prop_type( Size_Prop_Type::make() )
75 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
76 + 'inset-inline-end' => Union_Prop_Type::make()
77 + ->add_prop_type( Size_Prop_Type::make() )
78 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
79 + 'inset-block-end' => Union_Prop_Type::make()
80 + ->add_prop_type( Size_Prop_Type::make() )
81 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
82 + 'inset-inline-start' => Union_Prop_Type::make()
83 + ->add_prop_type( Size_Prop_Type::make() )
84 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
85 + 'z-index' => Number_Prop_Type::make(),
129 86 ];
130 87 }
131 88
132 89 private static function get_typography_props() {
133 90 return [
134 - 'font-family' => String_Prop_Type::make()->description( 'The font family of the text content.' ),
135 - 'font-weight' => String_Prop_Type::make()->enum( [
91 + 'font-family' => String_Prop_Type::make(),
92 + 'font-weight' => String_Prop_Type::make()->enum([
136 93 '100',
137 94 '200',
138 95 '300',
139 96 '400',
@@ -145,66 +102,48 @@
145 102 'normal',
146 103 'bold',
147 104 'bolder',
148 105 'lighter',
149 - ] )
150 - ->description( 'The weight (or boldness) of the font. Values should match css font-weight specifications.' ),
151 - 'font-size' => Size_Prop_Type::make()->units( Size_Constants::typography() )->description( 'The font size in Size PropType Format' ),
152 - 'color' => Color_Prop_Type::make()
153 - ->description( 'The text color, specified as a hex code, rgb(a), hsl(a), or a standard css color name.' ),
154 - 'letter-spacing' => Size_Prop_Type::make()->units( Size_Constants::typography() )->description( 'The spacing between letters in Size PropType format' ),
155 - 'word-spacing' => Size_Prop_Type::make()->units( Size_Constants::typography() )->description( 'The spacing between words in Size PropType format' ),
156 - 'column-count' => Number_Prop_Type::make()->description( 'The number of columns the text content should be divided into.' ),
157 - 'column-gap' => Size_Prop_Type::make()
158 - ->set_dependencies(
159 - Dependency_Manager::make()
160 - ->where( [
161 - 'operator' => 'gte',
162 - 'path' => [ 'column-count' ],
163 - 'value' => 1,
164 - ] )
165 - ->get()
166 - ),
167 - 'line-height' => Size_Prop_Type::make()->units( Size_Constants::typography() )->description( 'The line height of the text content in Size PropType format' ),
168 - 'text-align' => String_Prop_Type::make()->enum( [
106 + ]),
107 + 'font-size' => Size_Prop_Type::make(),
108 + 'color' => Color_Prop_Type::make(),
109 + 'letter-spacing' => Size_Prop_Type::make(),
110 + 'word-spacing' => Size_Prop_Type::make(),
111 + 'line-height' => Size_Prop_Type::make(),
112 + 'text-align' => String_Prop_Type::make()->enum([
169 113 'start',
170 114 'center',
171 115 'end',
172 116 'justify',
173 - ] )
174 - ->description( 'The horizontal alignment of the text content. Allowed values: start, center, end, justify.' ),
175 - 'font-style' => String_Prop_Type::make()->enum( [
117 + ]),
118 + 'font-style' => String_Prop_Type::make()->enum([
176 119 'normal',
177 120 'italic',
178 121 'oblique',
179 - ] )
180 - ->description( 'The font style of the text content. CSS values: normal, italic, oblique' ),
122 + ]),
181 123 // TODO: validate text-decoration in more specific way [EDS-524]
182 - 'text-decoration' => String_Prop_Type::make()
183 - ->description( 'The text decoration style. CSS values like: none, underline, overline, line-through, blink, etc.' ),
184 - 'text-transform' => String_Prop_Type::make()->enum( [
124 + 'text-decoration' => String_Prop_Type::make(),
125 + 'text-transform' => String_Prop_Type::make()->enum([
185 126 'none',
186 127 'capitalize',
187 128 'uppercase',
188 129 'lowercase',
189 - ] )
190 - ->description( 'Controls the capitalization of text. CSS values: none, capitalize, uppercase, lowercase' ),
191 - 'direction' => String_Prop_Type::make()->enum( [
130 + ]),
131 + 'direction' => String_Prop_Type::make()->enum([
192 132 'ltr',
193 133 'rtl',
194 - ] )->description( 'The text direction. CSS values: ltr (left to right), rtl (right to left)' ),
134 + ]),
195 135 'stroke' => Stroke_Prop_Type::make(),
196 - 'all' => String_Prop_Type::make()->enum( [
136 + 'all' => String_Prop_Type::make()->enum([
197 137 'initial',
198 138 'inherit',
199 139 'unset',
200 140 'revert',
201 141 'revert-layer',
202 - ] )->description( 'The all CSS property. CSS values: initial, inherit, unset, revert, revert-layer' ),
203 - 'cursor' => String_Prop_Type::make()->enum( [
142 + ]),
143 + 'cursor' => String_Prop_Type::make()->enum([
204 144 'pointer',
205 - ] )
206 - ->description( 'The type of cursor to be displayed when pointing over the element. E.g., pointer.' ),
145 + ]),
207 146 ];
208 147 }
209 148
210 149 private static function get_spacing_props() {
@@ -209,21 +148,14 @@
209 148
210 149 private static function get_spacing_props() {
211 150 return [
212 151 'padding' => Union_Prop_Type::make()
213 - ->add_prop_type( Dimensions_Prop_Type::make_with_units( Size_Constants::spacing() ) )
214 - ->add_prop_type(
215 - Size_Prop_Type::make()
216 - ->units( Size_Constants::spacing() )
217 - ->description( 'Padding css in Size PropType format' )
218 - ),
152 + ->add_prop_type( Dimensions_Prop_Type::make() )
153 + ->add_prop_type( Size_Prop_Type::make() ),
219 154 'margin' => Union_Prop_Type::make()
220 - ->add_prop_type( Dimensions_Prop_Type::make_with_units( Size_Constants::spacing_margin() ) )
221 - ->add_prop_type(
222 - Size_Prop_Type::make()
223 - ->units( Size_Constants::spacing_margin() )
224 - ->description( 'Margin css in Size PropType format' )
225 - ),
155 + ->add_prop_type( Dimensions_Prop_Type::make() )
156 + ->add_prop_type( Size_Prop_Type::make() )
157 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
226 158 ];
227 159 }
228 160
229 161 private static function get_border_props() {
@@ -228,15 +160,15 @@
228 160
229 161 private static function get_border_props() {
230 162 return [
231 163 'border-radius' => Union_Prop_Type::make()
232 - ->add_prop_type( Border_Radius_Prop_Type::make() )
233 - ->add_prop_type( Size_Prop_Type::make()->units( Size_Constants::border() ) ),
164 + ->add_prop_type( Size_Prop_Type::make() )
165 + ->add_prop_type( Border_Radius_Prop_Type::make() ),
234 166 'border-width' => Union_Prop_Type::make()
235 - ->add_prop_type( Border_Width_Prop_Type::make() )
236 - ->add_prop_type( Size_Prop_Type::make()->units( Size_Constants::border() ) ),
237 - 'border-color' => Color_Prop_Type::make()->description( 'The border color, specified as a hex code, rgb(a), hsl(a), or a standard css color name.' ),
238 - 'border-style' => String_Prop_Type::make()->enum( [
167 + ->add_prop_type( Size_Prop_Type::make() )
168 + ->add_prop_type( Border_Width_Prop_Type::make() ),
169 + 'border-color' => Color_Prop_Type::make(),
170 + 'border-style' => String_Prop_Type::make()->enum([
239 171 'none',
240 172 'hidden',
241 173 'dotted',
242 174 'dashed',
@@ -245,77 +177,27 @@
245 177 'groove',
246 178 'ridge',
247 179 'inset',
248 180 'outset',
249 - ] )
250 - ->description( 'The border style in CSS values' ),
251 - 'outline-width' => Size_Prop_Type::make()
252 - ->units( Size_Constants::border() )
253 - ->description( 'The width of the outline in Size PropType format' ),
254 - 'outline-color' => Color_Prop_Type::make()->description( 'The color of the outline, specified as a hex code, rgb(a), hsl(a), or a standard css color name.' ),
255 - 'outline-style' => String_Prop_Type::make()->enum( [
256 - 'none',
257 - 'hidden',
258 - 'dotted',
259 - 'dashed',
260 - 'solid',
261 - 'double',
262 - 'groove',
263 - 'ridge',
264 - 'inset',
265 - 'outset',
266 - ] )->description( 'The outline style in CSS values' ),
267 - 'outline-offset' => Size_Prop_Type::make()->units( Size_Constants::border() )->description( 'The offset of the outline, specified as a length in Size PropType format' ),
268 -
181 + ]),
269 182 ];
270 183 }
271 184
272 185 private static function get_background_props() {
273 - // Background image overlay as an exception
274 - $background_prop_type = Background_Prop_Type::make();
275 - $bg_overlay_prop_type = $background_prop_type->get_shape_field( Background_Overlay_Prop_Type::get_key() );
276 - $bg_image_overlay_prop_type = $bg_overlay_prop_type->get_item_type()->get_prop_type( Background_Image_Overlay_Prop_Type::get_key() );
277 - Dynamic_Prop_Types_Mapping::make()->get_extended_schema( $bg_image_overlay_prop_type->get_shape() );
278 186 return [
279 - 'background' => $background_prop_type,
187 + 'background' => Background_Prop_Type::make(),
280 188 ];
281 189 }
282 190
283 191 private static function get_effects_props() {
284 192 return [
285 - 'mix-blend-mode' => String_Prop_Type::make()->enum( [
286 - 'normal',
287 - 'multiply',
288 - 'screen',
289 - 'overlay',
290 - 'darken',
291 - 'lighten',
292 - 'color-dodge',
293 - 'saturation',
294 - 'color',
295 - 'difference',
296 - 'exclusion',
297 - 'hue',
298 - 'luminosity',
299 - 'soft-light',
300 - 'hard-light',
301 - 'color-burn',
302 - ] )->description( 'Applied as mix-blend mode css effect.' ),
303 193 'box-shadow' => Box_Shadow_Prop_Type::make(),
304 - 'opacity' => Size_Prop_Type::make()
305 - ->description( 'The opacity of the element, specified as a percentage between 0 (fully transparent) and 100 (fully opaque).' )
306 - ->units( Size_Constants::opacity() )
307 - ->default_unit( Size_Constants::UNIT_PERCENT ),
308 - 'filter' => Filter_Prop_Type::make(),
309 - 'backdrop-filter' => Backdrop_Filter_Prop_Type::make(),
310 - 'transform' => Transform_Prop_Type::make(),
311 - 'transition' => Transition_Prop_Type::make(),
312 194 ];
313 195 }
314 196
315 197 private static function get_layout_props() {
316 198 return [
317 - 'display' => String_Prop_Type::make()->enum( [
199 + 'display' => String_Prop_Type::make()->enum([
318 200 'block',
319 201 'inline',
320 202 'inline-block',
321 203 'flex',
@@ -324,43 +206,34 @@
324 206 'inline-grid',
325 207 'flow-root',
326 208 'none',
327 209 'contents',
328 - ] )->description( 'The CSS display property defines the display behavior (the type of rendering box) of an element.' ),
329 - 'flex-direction' => String_Prop_Type::make()
330 - ->description( 'The direction of the contained items.' )
331 - ->enum( [
332 - 'row',
333 - 'row-reverse',
334 - 'column',
335 - 'column-reverse',
336 - ] ),
210 + ]),
211 + 'flex-direction' => String_Prop_Type::make()->enum([
212 + 'row',
213 + 'row-reverse',
214 + 'column',
215 + 'column-reverse',
216 + ]),
337 217 'gap' => Union_Prop_Type::make()
338 218 ->add_prop_type( Layout_Direction_Prop_Type::make() )
339 - ->add_prop_type( Size_Prop_Type::make()->units( Size_Constants::layout() ) ),
340 - 'flex-wrap' => String_Prop_Type::make()->enum( [
219 + ->add_prop_type( Size_Prop_Type::make() ),
220 + 'flex-wrap' => String_Prop_Type::make()->enum([
341 221 'wrap',
342 222 'nowrap',
343 223 'wrap-reverse',
344 - ] )->description( 'Specifies whether the flex items should wrap or not. CSS values: wrap, nowrap, wrap-reverse' ),
345 - 'flex' => Flex_Prop_Type::make(),
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.' ),
350 - 'grid-auto-flow' => String_Prop_Type::make()
351 - ->enum( [ 'row', 'column', 'row dense', 'column dense' ] )
352 - ->description( 'Controls how auto-placed items flow in the grid. CSS values: row, column, row dense, column dense.' ),
353 - 'grid-column' => Span_Prop_Type::make()
354 - ->description( 'Defines a grid item column placement. Accepts values like span N or any valid CSS grid-column value.' ),
355 - 'grid-row' => Span_Prop_Type::make()
356 - ->description( 'Defines a grid item row placement. Accepts values like span N or any valid CSS grid-row value.' ),
224 + ]),
225 + 'flex-grow' => Number_Prop_Type::make(),
226 + 'flex-shrink' => Number_Prop_Type::make(),
227 + 'flex-basis' => Union_Prop_Type::make()
228 + ->add_prop_type( Size_Prop_Type::make() )
229 + ->add_prop_type( String_Prop_Type::make()->enum( [ 'auto' ] ) ),
357 230 ];
358 231 }
359 232
360 233 private static function get_alignment_props() {
361 234 return [
362 - 'justify-content' => String_Prop_Type::make()->enum( [
235 + 'justify-content' => String_Prop_Type::make()->enum([
363 236 'center',
364 237 'start',
365 238 'end',
366 239 'flex-start',
@@ -371,32 +244,18 @@
371 244 'space-between',
372 245 'space-around',
373 246 'space-evenly',
374 247 'stretch',
375 - ] )
376 - ->description( 'Defines how the browser distributes space between and around content items along the main-axis of a flex container. CSS values: center, start, end, flex-start, flex-end, left, right, normal, space-between, space-around, space-evenly, stretch' ),
377 - 'justify-items' => String_Prop_Type::make()->enum( [
378 - 'normal',
379 - 'stretch',
248 + ]),
249 + 'align-content' => String_Prop_Type::make()->enum([
380 250 'center',
381 251 'start',
382 252 'end',
383 - 'flex-start',
384 - 'flex-end',
385 - 'left',
386 - 'right',
387 - 'anchor-center',
388 - ] )->description( 'Defines how the browser distributes space between and around content items along the inline axis of a grid container. CSS values: center, start, end, flex-start, flex-end, left, right' ),
389 - 'align-content' => String_Prop_Type::make()->enum( [
390 - 'center',
391 - 'start',
392 - 'end',
393 253 'space-between',
394 254 'space-around',
395 255 'space-evenly',
396 - ] )
397 - ->description( 'Aligns a flex container\'s lines within when there is extra space in the cross-axis. CSS values: center, start, end, space-between, space-around, space-evenly' ),
398 - 'align-items' => String_Prop_Type::make()->enum( [
256 + ]),
257 + 'align-items' => String_Prop_Type::make()->enum([
399 258 'normal',
400 259 'stretch',
401 260 'center',
402 261 'start',
@@ -405,10 +264,10 @@
405 264 'flex-end',
406 265 'self-start',
407 266 'self-end',
408 267 'anchor-center',
409 - ] )->description( 'Defines the default behavior for how flex items are laid out along the cross axis on the current line. CSS values: normal, stretch, center, start, end, flex-start, flex-end, self-start, self-end, anchor-center' ),
410 - 'align-self' => String_Prop_Type::make()->enum( [
268 + ]),
269 + 'align-self' => String_Prop_Type::make()->enum([
411 270 'auto',
412 271 'normal',
413 272 'center',
414 273 'start',
@@ -421,17 +280,9 @@
421 280 'baseline',
422 281 'first baseline',
423 282 'last baseline',
424 283 'stretch',
425 - ] )->description( 'Allows the default alignment (or the one specified by align-items) to be overridden for individual flex items. CSS values: auto, normal, center, start, end, self-start, self-end, flex-start, flex-end, anchor-center, baseline, first baseline, last baseline, stretch' ),
426 - 'order' => Number_Prop_Type::make()->description( 'Specifies the order of the flex items. Items with lower order values are displayed first.' ),
427 - ];
428 - }
429 -
430 - private static function get_special_props() {
431 - return [
432 - 'content' => String_Prop_Type::make()->description( 'The string content for pseudo-element content property' ),
433 - 'appearance' => String_Prop_Type::make()->enum( [ 'none', 'auto' ] )->description( 'The appearance of the element. CSS values: none, auto' ),
434 - 'clip-path' => String_Prop_Type::make()->description( 'The clip-path CSS property defines a shape to be used as clipping region.' ),
284 + ]),
285 + 'order' => Number_Prop_Type::make(),
435 286 ];
436 287 }
437 288 }