UNPKG

@wordpress/block-library

Version:
113 lines (112 loc) • 5.04 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); let _wordpress_components = require("@wordpress/components"); let _wordpress_i18n = require("@wordpress/i18n"); let react_jsx_runtime = require("react/jsx-runtime"); // packages/block-library/src/columns/variations.jsx /** @typedef {import('@wordpress/blocks').WPBlockVariation} WPBlockVariation */ /** * Template option choices for predefined columns layouts. * * @type {WPBlockVariation[]} */ const variations = [ { name: "one-column-full", title: (0, _wordpress_i18n.__)("100"), description: (0, _wordpress_i18n.__)("One column"), icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.SVG, { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.Path, { d: "M0 10a2 2 0 0 1 2-2h44a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Z" }) }), innerBlocks: [["core/column"]], scope: ["block"] }, { name: "two-columns-equal", title: (0, _wordpress_i18n.__)("50 / 50"), description: (0, _wordpress_i18n.__)("Two columns; equal split"), icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.SVG, { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.Path, { d: "M0 10a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm25 0a2 2 0 0 1 2-2h19a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H27a2 2 0 0 1-2-2V10Z" }) }), isDefault: true, innerBlocks: [["core/column"], ["core/column"]], scope: ["block"] }, { name: "two-columns-one-third-two-thirds", title: (0, _wordpress_i18n.__)("33 / 66"), description: (0, _wordpress_i18n.__)("Two columns; one-third, two-thirds split"), icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.SVG, { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.Path, { d: "M0 10a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm17 0a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H19a2 2 0 0 1-2-2V10Z" }) }), innerBlocks: [["core/column", { width: "33.33%" }], ["core/column", { width: "66.66%" }]], scope: ["block"] }, { name: "two-columns-two-thirds-one-third", title: (0, _wordpress_i18n.__)("66 / 33"), description: (0, _wordpress_i18n.__)("Two columns; two-thirds, one-third split"), icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.SVG, { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.Path, { d: "M0 10a2 2 0 0 1 2-2h27a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V10Zm33 0a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35a2 2 0 0 1-2-2V10Z" }) }), innerBlocks: [["core/column", { width: "66.66%" }], ["core/column", { width: "33.33%" }]], scope: ["block"] }, { name: "three-columns-equal", title: (0, _wordpress_i18n.__)("33 / 33 / 33"), description: (0, _wordpress_i18n.__)("Three columns; equal split"), icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.SVG, { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.Path, { d: "M0 10a2 2 0 0 1 2-2h10.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm16.5 0c0-1.105.864-2 1.969-2H29.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H18.47c-1.105 0-1.969-.895-1.969-2V10Zm17 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2H35.469c-1.105 0-1.969-.895-1.969-2V10Z" }) }), innerBlocks: [ ["core/column"], ["core/column"], ["core/column"] ], scope: ["block"] }, { name: "three-columns-wider-center", title: (0, _wordpress_i18n.__)("25 / 50 / 25"), description: (0, _wordpress_i18n.__)("Three columns; wide center column"), icon: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.SVG, { xmlns: "http://www.w3.org/2000/svg", width: "48", height: "48", viewBox: "0 0 48 48", children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_wordpress_components.Path, { d: "M0 10a2 2 0 0 1 2-2h7.531c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H2a2 2 0 0 1-2-2V10Zm13.5 0c0-1.105.864-2 1.969-2H32.53c1.105 0 1.969.895 1.969 2v28c0 1.105-.864 2-1.969 2H15.47c-1.105 0-1.969-.895-1.969-2V10Zm23 0c0-1.105.864-2 1.969-2H46a2 2 0 0 1 2 2v28a2 2 0 0 1-2 2h-7.531c-1.105 0-1.969-.895-1.969-2V10Z" }) }), innerBlocks: [ ["core/column", { width: "25%" }], ["core/column", { width: "50%" }], ["core/column", { width: "25%" }] ], scope: ["block"] } ]; exports.default = variations; //# sourceMappingURL=variations.cjs.map