Skip to content

Commit 69ff365

Browse files
committed
move phone-input out of beta after some not optimal rebase
1 parent bfb31a6 commit 69ff365

File tree

1 file changed

+35
-38
lines changed

1 file changed

+35
-38
lines changed

projects/packages/forms/src/blocks/contact-form/class-contact-form-block.php

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,41 @@ public static function register_child_blocks() {
227227
)
228228
);
229229

230+
Blocks::jetpack_register_block(
231+
'jetpack/phone-input',
232+
array(
233+
'supports' => array(
234+
'__experimentalBorder' => array(
235+
'color' => true,
236+
'radius' => true,
237+
'style' => true,
238+
'width' => true,
239+
),
240+
'color' => array(
241+
'text' => true,
242+
'background' => true,
243+
'gradients' => false,
244+
),
245+
'typography' => array(
246+
'fontSize' => true,
247+
'lineHeight' => true,
248+
'__experimentalFontFamily' => true,
249+
'__experimentalFontWeight' => true,
250+
'__experimentalFontStyle' => true,
251+
'__experimentalTextTransform' => true,
252+
'__experimentalTextDecoration' => true,
253+
'__experimentalLetterSpacing' => true,
254+
),
255+
),
256+
'uses_context' => array(
257+
'jetpack/field-share-attributes',
258+
'jetpack/field-prefix-options',
259+
'jetpack/field-prefix-default',
260+
'jetpack/field-prefix-onChange',
261+
),
262+
)
263+
);
264+
230265
if ( Blocks::get_variation() === 'experimental' ) {
231266
Blocks::jetpack_register_block(
232267
'jetpack/input-rating',
@@ -265,44 +300,6 @@ public static function register_child_blocks() {
265300
);
266301
}
267302

268-
if ( Blocks::get_variation() === 'beta' ) {
269-
270-
Blocks::jetpack_register_block(
271-
'jetpack/phone-input',
272-
array(
273-
'supports' => array(
274-
'__experimentalBorder' => array(
275-
'color' => true,
276-
'radius' => true,
277-
'style' => true,
278-
'width' => true,
279-
),
280-
'color' => array(
281-
'text' => true,
282-
'background' => true,
283-
'gradients' => false,
284-
),
285-
'typography' => array(
286-
'fontSize' => true,
287-
'lineHeight' => true,
288-
'__experimentalFontFamily' => true,
289-
'__experimentalFontWeight' => true,
290-
'__experimentalFontStyle' => true,
291-
'__experimentalTextTransform' => true,
292-
'__experimentalTextDecoration' => true,
293-
'__experimentalLetterSpacing' => true,
294-
),
295-
),
296-
'uses_context' => array(
297-
'jetpack/field-share-attributes',
298-
'jetpack/field-prefix-options',
299-
'jetpack/field-prefix-default',
300-
'jetpack/field-prefix-onChange',
301-
),
302-
)
303-
);
304-
}
305-
306303
// Field render methods.
307304
Blocks::jetpack_register_block(
308305
'jetpack/field-text',

0 commit comments

Comments
 (0)