UNPKG

@wordpress/block-library

Version:
50 lines (49 loc) • 1.52 kB
import { __ } from "@wordpress/i18n"; import { Path, SVG } from "@wordpress/components"; import { jsx } from "react/jsx-runtime"; // packages/block-library/src/terms-query/variations.jsx const titleDate = /* @__PURE__ */ jsx(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", children: /* @__PURE__ */ jsx(Path, { d: "M 41,9 H 7 v 3 h 34 z m 0,9 H 7 v 3 h 34 z m 0,18 H 7 v 3 h 34 z m 0,-9 H 7 v 3 h 34 z" }) }); const titleExcerpt = /* @__PURE__ */ jsx(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", children: /* @__PURE__ */ jsx(Path, { d: "m 36,36 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 h -5 z m 0,-9 h 5 v 3 H 36 Z M 31,9 H 7 v 3 h 24 z m 0,9 H 7 v 3 h 24 z m 0,18 H 7 v 3 h 24 z m 0,-9 H 7 v 3 h 24 z" }) }); const termName = ["core/term-name", { isLink: true }]; const variations = [{ name: "name", title: __("Name"), description: __("Display the terms' names."), attributes: {}, icon: titleDate, scope: ["block"], innerBlocks: [[ "core/term-template", {}, [termName] ]] }, { name: "name-count", title: __("Name & Count"), description: __("Display the terms' names and number of posts assigned to each term."), attributes: {}, icon: titleExcerpt, scope: ["block"], innerBlocks: [[ "core/term-template", {}, [[ "core/group", { layout: { type: "flex", flexWrap: "nowrap" } }, [termName, ["core/term-count"]] ]] ]] }]; export { variations as default, titleDate, titleExcerpt }; //# sourceMappingURL=variations.mjs.map