UNPKG

@wordpress/block-library

Version:
103 lines (97 loc) 1.65 kB
/** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { blockTable as icon } from '@wordpress/icons'; /** * Internal dependencies */ import initBlock from '../utils/init-block'; import deprecated from './deprecated'; import edit from './edit'; import metadata from './block.json'; import save from './save'; import transforms from './transforms'; const { name } = metadata; export { metadata, name }; export const settings = { icon, example: { attributes: { head: [ { cells: [ { content: __( 'Version' ), tag: 'th', }, { content: __( 'Jazz Musician' ), tag: 'th', }, { content: __( 'Release Date' ), tag: 'th', }, ], }, ], body: [ { cells: [ { content: '5.2', tag: 'td', }, { content: __( 'Jaco Pastorius' ), tag: 'td', }, { content: __( 'May 7, 2019' ), tag: 'td', }, ], }, { cells: [ { content: '5.1', tag: 'td', }, { content: __( 'Betty Carter' ), tag: 'td', }, { content: __( 'February 21, 2019' ), tag: 'td', }, ], }, { cells: [ { content: '5.0', tag: 'td', }, { content: __( 'Bebo Valdés' ), tag: 'td', }, { content: __( 'December 6, 2018' ), tag: 'td', }, ], }, ], }, viewportWidth: 450, }, transforms, edit, save, deprecated, }; export const init = () => initBlock( { name, metadata, settings } );