/** * External dependencies */ import classnames from 'classnames'; import { registerBlockType, __, PanelBody, SelectControl, PanelColorSettings, InspectorControls, RichText, ColorPalette, omit, merge, Fragment, } from '../../wp-imports' import { PenciIcon } from '../../icons' registerBlockType( 'penci-gutenberg/text-padding', { title: __( 'Penci: text-padding' ), icon: PenciIcon, category: 'penci-blocks', edit( { className, attributes, setAttributes } ) { const paddingOptions = [ { value: 'penci-tpadding-1', label: __( 'Text ⇠' ) }, { value: 'penci-tpadding-2', label: __( '⇢ Text' ) }, { value: 'penci-tpadding-3', label: __( '⇢ Text ⇠' ) }, { value: 'penci-tpadding-4', label: __( '⇢ Text ⇠⇠' ) }, { value: 'penci-tpadding-5', label: __( '⇢⇢ Text ⇠' ) }, { value: 'penci-tpadding-6', label: __( '⇢⇢ Text ⇠⇠' ) }, { value: 'penci-tpadding-7', label: __( '⇢⇢⇢ Text ⇠⇠⇠' ) }, ]; const classStylePre = className + ' ' + attributes.classstyle; return ( ( { value: value, label: label, } ) ) } onChange={ ( newSize ) => { setAttributes( { classstyle: newSize } ) } } /> setAttributes( { content } ) } /> ); }, save( { attributes } ) { return ; } } ); xWindows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586