text: /**
   * Copyright 2020 Google LLC
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *      http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  /**
   * WordPress dependencies
   */
  import { __ } from '@wordpress/i18n';
  
  /**
   * Internal dependencies
   */
  import BlockIcon from './block-icon';
  import edit from '../common/components/text-input-edit';
  import save from '../common/components/text-input-save';
  
  export const name = 'material/email-input-field';
  
  export const settings = {
  	title: __( 'Email', 'material-design' ),
  	description: __(
  		'An input field for people to add their email address.',
  		'material-design'
  	),
  	parent: [ 'material/contact-form' ],
  	category: 'material',
  	icon: BlockIcon,
  	attributes: {
  		id: {
  			type: 'string',
  		},
  		inputType: {
  			type: 'string',
  			default: 'email',
  		},
  		inputRole: {
  			type: 'string',
  			default: 'email',
  		},
  		label: {
  			type: 'string',
  			default: __( 'Email', 'material-design' ),
  		},
  		inputValue: {
  			type: 'string',
  		},
  		isRequired: {
  			type: 'boolean',
  			default: true,
  		},
  		outlined: {
  			type: 'boolean',
  			default: false,
  		},
  		fullWidth: {
  			type: 'boolean',
  			default: true,
  		},
  		displayLabel: {
  			type: 'boolean',
  			default: true,
  		},
  	},
  	edit,
  	save,
  };
  