UNPKG

@wordpress/block-library

Version:
57 lines (56 loc) • 1.99 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); let _wordpress_i18n = require("@wordpress/i18n"); let _wordpress_components = require("@wordpress/components"); let react_jsx_runtime = require("react/jsx-runtime"); // packages/block-library/src/terms-query/variations.jsx const titleDate = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.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__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.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: (0, _wordpress_i18n.__)("Name"), description: (0, _wordpress_i18n.__)("Display the terms' names."), attributes: {}, icon: titleDate, scope: ["block"], innerBlocks: [[ "core/term-template", {}, [termName] ]] }, { name: "name-count", title: (0, _wordpress_i18n.__)("Name & Count"), description: (0, _wordpress_i18n.__)("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"]] ]] ]] }]; exports.default = variations; exports.titleDate = titleDate; exports.titleExcerpt = titleExcerpt; //# sourceMappingURL=variations.cjs.map