UNPKG

@wordpress/block-library

Version:
99 lines (98 loc) 2.02 kB
// packages/block-library/src/table/index.js import { __ } from "@wordpress/i18n"; import { blockTable as icon } from "@wordpress/icons"; 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"; var { name } = metadata; var 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\xE9s"), tag: "td" }, { content: __("December 6, 2018"), tag: "td" } ] } ] }, viewportWidth: 450 }, transforms, edit, save, deprecated }; var init = () => initBlock({ name, metadata, settings }); export { init, metadata, name, settings }; //# sourceMappingURL=index.js.map