introducing grye box block
This commit is contained in:
parent
c56fcae6d8
commit
fddc0c7fd7
|
|
@ -7,8 +7,7 @@
|
|||
"category": "homegrade-blocks",
|
||||
"description": "Starter nested — Parent",
|
||||
"supports": {
|
||||
"html": false,
|
||||
"jsx": true
|
||||
"html": false
|
||||
},
|
||||
"textdomain": "homegrade-blocks",
|
||||
"editorScript": "file:./index.js",
|
||||
|
|
|
|||
18
blocks/grey-box/.editorconfig
Normal file
18
blocks/grey-box/.editorconfig
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# This file is for unifying the coding style for different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
# WordPress Coding Standards
|
||||
# https://make.wordpress.org/core/handbook/coding-standards/
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = tab
|
||||
|
||||
[*.{yml,yaml}]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
30
blocks/grey-box/.gitignore
vendored
Normal file
30
blocks/grey-box/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Output of `npm pack`
|
||||
*.tgz
|
||||
|
||||
# Output of `wp-scripts plugin-zip`
|
||||
*.zip
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
24
blocks/grey-box/build/block.json
Normal file
24
blocks/grey-box/build/block.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "homegrade-content-blocks/grey-box",
|
||||
"version": "0.1.0",
|
||||
"title": "Grey Box",
|
||||
"category": "homegrade-blocks",
|
||||
"description": "Boite de gestion contenu",
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"textdomain": "homegrade-blocks",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css",
|
||||
"style": "file:./style-index.css",
|
||||
"attributes": {
|
||||
"blockTitle": {
|
||||
"type": "string"
|
||||
},
|
||||
"blockSubtitle": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
1
blocks/grey-box/build/index.asset.php
Normal file
1
blocks/grey-box/build/index.asset.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'a593e0c519dc4ad03aeb');
|
||||
16
blocks/grey-box/build/index.css
Normal file
16
blocks/grey-box/build/index.css
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*!****************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/editor.scss ***!
|
||||
\****************************************************************************************************************************************************************************************************************************************/
|
||||
.homegrade-blocks-staff-list .homegrade-blocks-staff-list__staff-list {
|
||||
display: unset;
|
||||
}
|
||||
.homegrade-blocks-staff-list .block-editor-block-list__layout {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/nested-children/editor.scss ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
|
||||
/*# sourceMappingURL=index.css.map*/
|
||||
1
blocks/grey-box/build/index.css.map
Normal file
1
blocks/grey-box/build/index.css.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.css","mappings":";;;AACC;EACC;AAAF;AAEC;EACC;EACA;AAAF,C","sources":["webpack://multiblocks/./src/editor.scss"],"sourcesContent":[".homegrade-blocks-staff-list {\r\n\t.homegrade-blocks-staff-list__staff-list {\r\n\t\tdisplay: unset;\r\n\t}\r\n\t.block-editor-block-list__layout {\r\n\t\tdisplay: grid;\r\n\t\tgrid-template-columns: repeat(3, 1fr);\r\n\t}\r\n}\r\n"],"names":[],"sourceRoot":""}
|
||||
730
blocks/grey-box/build/index.js
Normal file
730
blocks/grey-box/build/index.js
Normal file
|
|
@ -0,0 +1,730 @@
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/nested-children/img/homegrade_mascotte.svg":
|
||||
/*!********************************************************!*\
|
||||
!*** ./src/nested-children/img/homegrade_mascotte.svg ***!
|
||||
\********************************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ ReactComponent: () => (/* binding */ SvgHomegradeMascotte),
|
||||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
||||
var _defs, _g, _g2;
|
||||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
var SvgHomegradeMascotte = function SvgHomegradeMascotte(props) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
|
||||
id: "homegrade_mascotte_svg__mascotte",
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
||||
viewBox: "0 0 60 60"
|
||||
}, props), _defs || (_defs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("defs", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("linearGradient", {
|
||||
id: "homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3",
|
||||
"data-name": "D\\xE9grad\\xE9 sans nom 3",
|
||||
x1: -2280.28,
|
||||
y1: 80.03,
|
||||
x2: -2279.29,
|
||||
y2: 78.98,
|
||||
gradientTransform: "matrix(2.63 0 0 -7.44 6033.72 622.47)",
|
||||
gradientUnits: "userSpaceOnUse"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("stop", {
|
||||
offset: 0,
|
||||
stopColor: "#f3281d"
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("stop", {
|
||||
offset: 1,
|
||||
stopColor: "#fe766f"
|
||||
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("linearGradient", {
|
||||
id: "homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3-2",
|
||||
"data-name": "D\\xE9grad\\xE9 sans nom 3",
|
||||
x1: -2276.06,
|
||||
y1: 80.02,
|
||||
x2: -2275.06,
|
||||
y2: 78.97,
|
||||
gradientTransform: "matrix(2.62 0 0 -7.44 6009.38 619.45)",
|
||||
xlinkHref: "#homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3"
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("style", null, ".homegrade_mascotte_svg__cls-3{fill:#fff;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5862",
|
||||
"data-name": "Groupe 5862"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_3195",
|
||||
"data-name": "Groupe 3195"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_de_masques_1",
|
||||
"data-name": "Groupe de masques 1"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5593",
|
||||
"data-name": "Groupe 5593"
|
||||
}, _g || (_g = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5595",
|
||||
"data-name": "Groupe 5595"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5594",
|
||||
"data-name": "Groupe 5594"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23844",
|
||||
"data-name": "Trac\\xE9 23844",
|
||||
className: "homegrade_mascotte_svg__cls-3",
|
||||
d: "M12.46 54.29c.34-1.09.82-2.53 1.49-4.18 0 0 .36-.88.77-1.79 1.62-3.6 5.34-9.45 5.6-9.85l18.98-6.94.29 7.22c2.01 1.44 3.72 3.25 5.03 5.34 1 1.61 1.76 3.35 2.25 5.18.42 1.65.64 3.34.66 5.03"
|
||||
})))), _g2 || (_g2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5596",
|
||||
"data-name": "Groupe 5596"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23846",
|
||||
"data-name": "Trac\\xE9 23846",
|
||||
className: "homegrade_mascotte_svg__cls-3",
|
||||
d: "m47.07 36.61-14.99 8.65v-17.2l7.49-13.7 7.5 5.05V36.6Z"
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23847",
|
||||
"data-name": "Trac\\xE9 23847",
|
||||
className: "homegrade_mascotte_svg__cls-3",
|
||||
d: "M32.08 45.26 17.1 36.61V19.42l14.98 8.65v17.19Z"
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23848",
|
||||
"data-name": "Trac\\xE9 23848",
|
||||
className: "homegrade_mascotte_svg__cls-3",
|
||||
d: "m17.1 19.41 7.49-13.7 14.98 8.65-7.49 13.7-14.98-8.65Z"
|
||||
}))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23849",
|
||||
"data-name": "Trac\\xE9 23849",
|
||||
d: "m36.34 33.91 2.63-1.52v-5.92l-2.63 1.51v5.93Z",
|
||||
style: {
|
||||
strokeWidth: 0,
|
||||
fill: "url(#homegrade_mascotte_svg__D\xE9grad\xE9_sans_nom_3)"
|
||||
}
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23850",
|
||||
"data-name": "Trac\\xE9 23850",
|
||||
d: "m41.32 31.05 2.62-1.51v-5.93l-2.62 1.51v5.93Z",
|
||||
style: {
|
||||
fill: "url(#homegrade_mascotte_svg__D\xE9grad\xE9_sans_nom_3-2)",
|
||||
strokeWidth: 0
|
||||
}
|
||||
}))))));
|
||||
};
|
||||
|
||||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0ibWFzY290dGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCA2MCA2MCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogdXJsKCNEw6lncmFkw6lfc2Fuc19ub21fMyk7CiAgICAgIH0KCiAgICAgIC5jbHMtMSwgLmNscy0yIHsKICAgICAgICBzdHJva2Utd2lkdGg6IDBweDsKICAgICAgfQoKICAgICAgLmNscy0zIHsKICAgICAgICBmaWxsOiAjZmZmOwogICAgICAgIHN0cm9rZTogIzAwMDsKICAgICAgICBzdHJva2UtbGluZWNhcDogcm91bmQ7CiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDJweDsKICAgICAgfQoKICAgICAgLmNscy0yIHsKICAgICAgICBmaWxsOiB1cmwoI0TDqWdyYWTDqV9zYW5zX25vbV8zLTIpOwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJEw6lncmFkw6lfc2Fuc19ub21fMyIgZGF0YS1uYW1lPSJEw6lncmFkw6kgc2FucyBub20gMyIgeDE9Ii0yMjgwLjI4IiB5MT0iODAuMDMiIHgyPSItMjI3OS4yOSIgeTI9Ijc4Ljk4IiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDYwMzMuNzIgNjIyLjQ3KSBzY2FsZSgyLjYzIC03LjQ0KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmMzI4MWQiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmU3NjZmIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJEw6lncmFkw6lfc2Fuc19ub21fMy0yIiBkYXRhLW5hbWU9IkTDqWdyYWTDqSBzYW5zIG5vbSAzIiB4MT0iLTIyNzYuMDYiIHkxPSI4MC4wMiIgeDI9Ii0yMjc1LjA2IiB5Mj0iNzguOTciIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjAwOS4zOCA2MTkuNDUpIHNjYWxlKDIuNjIgLTcuNDQpIiB4bGluazpocmVmPSIjRMOpZ3JhZMOpX3NhbnNfbm9tXzMiLz4KICA8L2RlZnM+CiAgPGcgaWQ9Ikdyb3VwZV81ODYyIiBkYXRhLW5hbWU9Ikdyb3VwZSA1ODYyIj4KICAgIDxnIGlkPSJHcm91cGVfMzE5NSIgZGF0YS1uYW1lPSJHcm91cGUgMzE5NSI+CiAgICAgIDxnIGlkPSJHcm91cGVfZGVfbWFzcXVlc18xIiBkYXRhLW5hbWU9Ikdyb3VwZSBkZSBtYXNxdWVzIDEiPgogICAgICAgIDxnIGlkPSJHcm91cGVfNTU5MyIgZGF0YS1uYW1lPSJHcm91cGUgNTU5MyI+CiAgICAgICAgICA8ZyBpZD0iR3JvdXBlXzU1OTUiIGRhdGEtbmFtZT0iR3JvdXBlIDU1OTUiPgogICAgICAgICAgICA8ZyBpZD0iR3JvdXBlXzU1OTQiIGRhdGEtbmFtZT0iR3JvdXBlIDU1OTQiPgogICAgICAgICAgICAgIDxwYXRoIGlkPSJUcmFjw6lfMjM4NDQiIGRhdGEtbmFtZT0iVHJhY8OpIDIzODQ0IiBjbGFzcz0iY2xzLTMiIGQ9Im0xMi40Niw1NC4yOWMuMzQtMS4wOS44Mi0yLjUzLDEuNDktNC4xOCwwLDAsLjM2LS44OC43Ny0xLjc5LDEuNjItMy42LDUuMzQtOS40NSw1LjYtOS44NWwxOC45OC02Ljk0LjI5LDcuMjJjMi4wMSwxLjQ0LDMuNzIsMy4yNSw1LjAzLDUuMzQsMSwxLjYxLDEuNzYsMy4zNSwyLjI1LDUuMTguNDIsMS42NS42NCwzLjM0LjY2LDUuMDMiLz4KICAgICAgICAgICAgPC9nPgogICAgICAgICAgPC9nPgogICAgICAgICAgPGcgaWQ9Ikdyb3VwZV81NTk2IiBkYXRhLW5hbWU9Ikdyb3VwZSA1NTk2Ij4KICAgICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg0NiIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NDYiIGNsYXNzPSJjbHMtMyIgZD0ibTQ3LjA3LDM2LjYxbC0xNC45OSw4LjY1di0xNy4ybDcuNDktMTMuNyw3LjUsNS4wNXYxNy4xOVoiLz4KICAgICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg0NyIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NDciIGNsYXNzPSJjbHMtMyIgZD0ibTMyLjA4LDQ1LjI2bC0xNC45OC04LjY1di0xNy4xOWwxNC45OCw4LjY1djE3LjE5WiIvPgogICAgICAgICAgICA8cGF0aCBpZD0iVHJhY8OpXzIzODQ4IiBkYXRhLW5hbWU9IlRyYWPDqSAyMzg0OCIgY2xhc3M9ImNscy0zIiBkPSJtMTcuMSwxOS40MWw3LjQ5LTEzLjcsMTQuOTgsOC42NS03LjQ5LDEzLjctMTQuOTgtOC42NVoiLz4KICAgICAgICAgIDwvZz4KICAgICAgICAgIDxwYXRoIGlkPSJUcmFjw6lfMjM4NDkiIGRhdGEtbmFtZT0iVHJhY8OpIDIzODQ5IiBjbGFzcz0iY2xzLTEiIGQ9Im0zNi4zNCwzMy45MWwyLjYzLTEuNTJ2LTUuOTJsLTIuNjMsMS41MXY1LjkzWiIvPgogICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg1MCIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NTAiIGNsYXNzPSJjbHMtMiIgZD0ibTQxLjMyLDMxLjA1bDIuNjItMS41MXYtNS45M2wtMi42MiwxLjUxdjUuOTNaIi8+CiAgICAgICAgPC9nPgogICAgICA8L2c+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4=");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/edit.js":
|
||||
/*!*********************!*\
|
||||
!*** ./src/edit.js ***!
|
||||
\*********************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (/* binding */ Edit)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/editor.scss");
|
||||
/* harmony import */ var _nested_children__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nested-children */ "./src/nested-children/index.js");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__);
|
||||
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components");
|
||||
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function Edit({
|
||||
attributes,
|
||||
setAttributes,
|
||||
clientId
|
||||
}) {
|
||||
let {
|
||||
blockTitle,
|
||||
blockSubtitle
|
||||
} = attributes;
|
||||
function onChangeBlockTitle(blockTitle) {
|
||||
setAttributes({
|
||||
blockTitle
|
||||
});
|
||||
}
|
||||
function onChangeBlockSubtitle(blockSubtitle) {
|
||||
setAttributes({
|
||||
blockSubtitle
|
||||
});
|
||||
}
|
||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.InspectorControls, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.PanelBody, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_5__.Tip, null, "salut"))), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
|
||||
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.useBlockProps)({
|
||||
className: `starter-nested-parent`
|
||||
})
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.RichText, {
|
||||
value: blockTitle,
|
||||
tagName: "h3",
|
||||
className: "starter-nested-parent__title",
|
||||
placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter ici le Titre", "homegrade"),
|
||||
onChange: onChangeBlockTitle
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.RichText, {
|
||||
value: blockSubtitle,
|
||||
tagName: "h4",
|
||||
className: "starter-nested-parent__subtitle",
|
||||
placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter ici le Sous-titre", "homegrade"),
|
||||
onChange: onChangeBlockSubtitle
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||
className: "starter-nested-parent__children-container"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.InnerBlocks
|
||||
// allowedBlocks={[
|
||||
// "core/paragraph",
|
||||
// "homegrade-content-blocks/starter-nested-child",
|
||||
// ]}
|
||||
, {
|
||||
allowedBlocks: ["core/paragraph"]
|
||||
}))));
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/index.js":
|
||||
/*!**********************!*\
|
||||
!*** ./src/index.js ***!
|
||||
\**********************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
|
||||
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/style.scss");
|
||||
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit */ "./src/edit.js");
|
||||
/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./save */ "./src/save.js");
|
||||
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./block.json */ "./src/block.json");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_5__.name, {
|
||||
icon: {
|
||||
src: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
|
||||
version: "1.1",
|
||||
x: "0px",
|
||||
y: "0px",
|
||||
viewBox: "0 0 128 160"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
|
||||
cx: "67",
|
||||
cy: "11",
|
||||
r: "10"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
|
||||
cx: "37",
|
||||
cy: "21",
|
||||
r: "10"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||
d: "M17,51v36h10v40h20h40h20V87h10V51c0-5.5-4.5-10-10-10L97,51v26H87v40H77V77h10V41c0-5.5-4.5-10-10-10L67,41L57,31 c-5.5,0-10,4.5-10,10v36h10v40H47V77H37V51L27,41C21.5,41,17,45.5,17,51z"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("circle", {
|
||||
cx: "97",
|
||||
cy: "21",
|
||||
r: "10"
|
||||
}))),
|
||||
foreground: "#DF1E1E"
|
||||
},
|
||||
edit: _edit__WEBPACK_IMPORTED_MODULE_3__["default"],
|
||||
save: _save__WEBPACK_IMPORTED_MODULE_4__["default"]
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/edit.js":
|
||||
/*!*************************************!*\
|
||||
!*** ./src/nested-children/edit.js ***!
|
||||
\*************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (/* binding */ Edit)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/nested-children/editor.scss");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);
|
||||
|
||||
|
||||
|
||||
|
||||
function Edit({
|
||||
attributes,
|
||||
setAttributes,
|
||||
...props
|
||||
}) {
|
||||
let {
|
||||
childName
|
||||
} = attributes;
|
||||
function onChangeChildName(childName) {
|
||||
setAttributes({
|
||||
childName
|
||||
});
|
||||
}
|
||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({
|
||||
className: `homegrade-blocks-staff-member`
|
||||
})
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.RichText, {
|
||||
tagName: "p",
|
||||
className: "homegrade-blocks-staff-member__child-name",
|
||||
onChange: onChangeChildName,
|
||||
value: childName,
|
||||
placeholder: "Nom de l'enfant"
|
||||
})));
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/index.js":
|
||||
/*!**************************************!*\
|
||||
!*** ./src/nested-children/index.js ***!
|
||||
\**************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
|
||||
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/nested-children/style.scss");
|
||||
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/nested-children/block.json");
|
||||
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./src/nested-children/edit.js");
|
||||
/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ "./src/nested-children/save.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, {
|
||||
title: _block_json__WEBPACK_IMPORTED_MODULE_3__.title,
|
||||
icon: {
|
||||
foreground: "#DF1E1E",
|
||||
src: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
|
||||
version: "1.1",
|
||||
viewBox: "0 0 50800 63500",
|
||||
x: "0px",
|
||||
y: "0px",
|
||||
"fill-rule": "evenodd",
|
||||
"clip-rule": "evenodd"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("defs", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("style", {
|
||||
type: "text/css"
|
||||
})), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||
class: "fil0",
|
||||
d: "M34027 25667c-2015,1921 -4758,3103 -7780,3103 -3022,0 -5765,-1182 -7780,-3103 -347,-86 -694,-171 -1031,-214 -337,-43 -663,-43 -967,4 -303,46 -583,140 -910,257 -327,116 -700,256 -1167,536 -466,280 -1027,700 -1563,1401 -537,699 -1050,1680 -1517,2847 -467,1166 -887,2520 -1120,3827 -233,1306 -280,2567 -303,3523 -24,957 -24,1611 70,2241 93,630 279,1236 700,1843 420,607 1073,1214 1843,1680 770,467 1657,794 2871,957 1213,163 2753,163 4620,163l5414 0 840 0 840 0 5414 0c1867,0 3407,0 4620,-163 1214,-163 2101,-490 2871,-957 770,-466 1423,-1073 1843,-1680 421,-607 607,-1213 700,-1843 94,-630 94,-1284 70,-2241 -23,-956 -70,-2217 -303,-3523 -233,-1307 -653,-2661 -1120,-3827 -467,-1167 -980,-2148 -1517,-2847 -536,-701 -1097,-1121 -1563,-1401 -467,-280 -840,-420 -1167,-536 -327,-117 -607,-211 -910,-257 -304,-47 -630,-47 -967,-4 -337,43 -684,128 -1031,214z"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||
class: "fil0",
|
||||
d: "M26247 26670c4949,0 8961,-4012 8961,-8961 0,-4949 -4012,-8961 -8961,-8961 -4949,0 -8961,4012 -8961,8961 0,4949 4012,8961 8961,8961z"
|
||||
})))
|
||||
},
|
||||
supports: _block_json__WEBPACK_IMPORTED_MODULE_3__.supports,
|
||||
attributes: _block_json__WEBPACK_IMPORTED_MODULE_3__.attributes,
|
||||
edit: _edit__WEBPACK_IMPORTED_MODULE_4__["default"],
|
||||
save: _save__WEBPACK_IMPORTED_MODULE_5__["default"]
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/save.js":
|
||||
/*!*************************************!*\
|
||||
!*** ./src/nested-children/save.js ***!
|
||||
\*************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (/* binding */ save)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _img_homegrade_mascotte_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./img/homegrade_mascotte.svg */ "./src/nested-children/img/homegrade_mascotte.svg");
|
||||
|
||||
|
||||
|
||||
function save({
|
||||
attributes
|
||||
}) {
|
||||
const {
|
||||
name,
|
||||
position
|
||||
} = attributes;
|
||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
|
||||
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
|
||||
className: `homegrade-blocks-staff-member`
|
||||
})
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||
className: "homegrade-blocks-staff-member__member-icon"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
|
||||
src: _img_homegrade_mascotte_svg__WEBPACK_IMPORTED_MODULE_2__["default"],
|
||||
alt: ""
|
||||
})), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||
className: "homegrade-blocks-staff-member__member-informations"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
||||
tagName: "h4",
|
||||
value: name,
|
||||
className: "homegrade-blocks-staff-member__name"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
||||
tagName: "p",
|
||||
value: position,
|
||||
className: "homegrade-blocks-staff-member__position"
|
||||
})));
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/save.js":
|
||||
/*!*********************!*\
|
||||
!*** ./src/save.js ***!
|
||||
\*********************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (/* binding */ save)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);
|
||||
|
||||
|
||||
function save({
|
||||
attributes
|
||||
}) {
|
||||
let {
|
||||
blockTitle,
|
||||
blockSubtitle
|
||||
} = attributes;
|
||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("section", {
|
||||
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
|
||||
className: `starter-nested-parent`
|
||||
})
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
||||
value: blockTitle,
|
||||
tagName: "h3",
|
||||
className: "starter-nested-parent__title"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
||||
value: blockSubtitle,
|
||||
tagName: "h4",
|
||||
className: "starter-nested-parent__subtitle"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||
className: "starter-nested-parent__children-container"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InnerBlocks.Content, null)));
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/editor.scss":
|
||||
/*!*************************!*\
|
||||
!*** ./src/editor.scss ***!
|
||||
\*************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/editor.scss":
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/nested-children/editor.scss ***!
|
||||
\*****************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/style.scss":
|
||||
/*!****************************************!*\
|
||||
!*** ./src/nested-children/style.scss ***!
|
||||
\****************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/style.scss":
|
||||
/*!************************!*\
|
||||
!*** ./src/style.scss ***!
|
||||
\************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "react":
|
||||
/*!************************!*\
|
||||
!*** external "React" ***!
|
||||
\************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["React"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/block-editor":
|
||||
/*!*************************************!*\
|
||||
!*** external ["wp","blockEditor"] ***!
|
||||
\*************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["blockEditor"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/blocks":
|
||||
/*!********************************!*\
|
||||
!*** external ["wp","blocks"] ***!
|
||||
\********************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["blocks"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/components":
|
||||
/*!************************************!*\
|
||||
!*** external ["wp","components"] ***!
|
||||
\************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["components"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/element":
|
||||
/*!*********************************!*\
|
||||
!*** external ["wp","element"] ***!
|
||||
\*********************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["element"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/i18n":
|
||||
/*!******************************!*\
|
||||
!*** external ["wp","i18n"] ***!
|
||||
\******************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["i18n"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/block.json":
|
||||
/*!************************!*\
|
||||
!*** ./src/block.json ***!
|
||||
\************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/grey-box","version":"0.1.0","title":"Grey Box","category":"homegrade-blocks","description":"Boite de gestion contenu","supports":{"html":false},"textdomain":"homegrade-blocks","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"blockTitle":{"type":"string"},"blockSubtitle":{"type":"string"}}}');
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/block.json":
|
||||
/*!****************************************!*\
|
||||
!*** ./src/nested-children/block.json ***!
|
||||
\****************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/starter-nested-child","version":"0.1.0","title":"Starter Nested — Child","category":"homegrade-blocks","description":"Starter nested — Child","supports":{"html":false},"editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"childName":{"type":"string"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = __webpack_modules__;
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/chunk loaded */
|
||||
/******/ (() => {
|
||||
/******/ var deferred = [];
|
||||
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
||||
/******/ if(chunkIds) {
|
||||
/******/ priority = priority || 0;
|
||||
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
||||
/******/ deferred[i] = [chunkIds, fn, priority];
|
||||
/******/ return;
|
||||
/******/ }
|
||||
/******/ var notFulfilled = Infinity;
|
||||
/******/ for (var i = 0; i < deferred.length; i++) {
|
||||
/******/ var chunkIds = deferred[i][0];
|
||||
/******/ var fn = deferred[i][1];
|
||||
/******/ var priority = deferred[i][2];
|
||||
/******/ var fulfilled = true;
|
||||
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
||||
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
||||
/******/ chunkIds.splice(j--, 1);
|
||||
/******/ } else {
|
||||
/******/ fulfilled = false;
|
||||
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(fulfilled) {
|
||||
/******/ deferred.splice(i--, 1)
|
||||
/******/ var r = fn();
|
||||
/******/ if (r !== undefined) result = r;
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ return result;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
||||
/******/ var installedChunks = {
|
||||
/******/ "index": 0,
|
||||
/******/ "./style-index": 0
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // no chunk on demand loading
|
||||
/******/
|
||||
/******/ // no prefetching
|
||||
/******/
|
||||
/******/ // no preloaded
|
||||
/******/
|
||||
/******/ // no HMR
|
||||
/******/
|
||||
/******/ // no HMR manifest
|
||||
/******/
|
||||
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var runtime = data[2];
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0;
|
||||
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
||||
/******/ for(moduleId in moreModules) {
|
||||
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
||||
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) var result = runtime(__webpack_require__);
|
||||
/******/ }
|
||||
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
||||
/******/ for(;i < chunkIds.length; i++) {
|
||||
/******/ chunkId = chunkIds[i];
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
||||
/******/ installedChunks[chunkId][0]();
|
||||
/******/ }
|
||||
/******/ installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ return __webpack_require__.O(result);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunkmultiblocks"] = self["webpackChunkmultiblocks"] || [];
|
||||
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/
|
||||
/******/ // startup
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["./style-index"], () => (__webpack_require__("./src/index.js")))
|
||||
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
||||
/******/
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
blocks/grey-box/build/index.js.map
Normal file
1
blocks/grey-box/build/index.js.map
Normal file
File diff suppressed because one or more lines are too long
20
blocks/grey-box/build/nested-children/block.json
Normal file
20
blocks/grey-box/build/nested-children/block.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "homegrade-content-blocks/starter-nested-child",
|
||||
"version": "0.1.0",
|
||||
"title": "Starter Nested — Child",
|
||||
"category": "homegrade-blocks",
|
||||
"description": "Starter nested — Child",
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css",
|
||||
"style": "file:./style-index.css",
|
||||
"attributes": {
|
||||
"childName": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
1
blocks/grey-box/build/nested-children/index.asset.php
Normal file
1
blocks/grey-box/build/nested-children/index.asset.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n'), 'version' => '9ebc7de8bdcf26ad0227');
|
||||
4
blocks/grey-box/build/nested-children/index.css
Normal file
4
blocks/grey-box/build/nested-children/index.css
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/*!********************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/nested-children/editor.scss ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
518
blocks/grey-box/build/nested-children/index.js
Normal file
518
blocks/grey-box/build/nested-children/index.js
Normal file
|
|
@ -0,0 +1,518 @@
|
|||
/******/ (() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ "./src/nested-children/img/homegrade_mascotte.svg":
|
||||
/*!********************************************************!*\
|
||||
!*** ./src/nested-children/img/homegrade_mascotte.svg ***!
|
||||
\********************************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ ReactComponent: () => (/* binding */ SvgHomegradeMascotte),
|
||||
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
||||
var _defs, _g, _g2;
|
||||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
||||
|
||||
var SvgHomegradeMascotte = function SvgHomegradeMascotte(props) {
|
||||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg", _extends({
|
||||
id: "homegrade_mascotte_svg__mascotte",
|
||||
xmlns: "http://www.w3.org/2000/svg",
|
||||
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
||||
viewBox: "0 0 60 60"
|
||||
}, props), _defs || (_defs = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("defs", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("linearGradient", {
|
||||
id: "homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3",
|
||||
"data-name": "D\\xE9grad\\xE9 sans nom 3",
|
||||
x1: -2280.28,
|
||||
y1: 80.03,
|
||||
x2: -2279.29,
|
||||
y2: 78.98,
|
||||
gradientTransform: "matrix(2.63 0 0 -7.44 6033.72 622.47)",
|
||||
gradientUnits: "userSpaceOnUse"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("stop", {
|
||||
offset: 0,
|
||||
stopColor: "#f3281d"
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("stop", {
|
||||
offset: 1,
|
||||
stopColor: "#fe766f"
|
||||
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("linearGradient", {
|
||||
id: "homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3-2",
|
||||
"data-name": "D\\xE9grad\\xE9 sans nom 3",
|
||||
x1: -2276.06,
|
||||
y1: 80.02,
|
||||
x2: -2275.06,
|
||||
y2: 78.97,
|
||||
gradientTransform: "matrix(2.62 0 0 -7.44 6009.38 619.45)",
|
||||
xlinkHref: "#homegrade_mascotte_svg__D\\xE9grad\\xE9_sans_nom_3"
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("style", null, ".homegrade_mascotte_svg__cls-3{fill:#fff;stroke:#000;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px}"))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5862",
|
||||
"data-name": "Groupe 5862"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_3195",
|
||||
"data-name": "Groupe 3195"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_de_masques_1",
|
||||
"data-name": "Groupe de masques 1"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5593",
|
||||
"data-name": "Groupe 5593"
|
||||
}, _g || (_g = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5595",
|
||||
"data-name": "Groupe 5595"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5594",
|
||||
"data-name": "Groupe 5594"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23844",
|
||||
"data-name": "Trac\\xE9 23844",
|
||||
className: "homegrade_mascotte_svg__cls-3",
|
||||
d: "M12.46 54.29c.34-1.09.82-2.53 1.49-4.18 0 0 .36-.88.77-1.79 1.62-3.6 5.34-9.45 5.6-9.85l18.98-6.94.29 7.22c2.01 1.44 3.72 3.25 5.03 5.34 1 1.61 1.76 3.35 2.25 5.18.42 1.65.64 3.34.66 5.03"
|
||||
})))), _g2 || (_g2 = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("g", {
|
||||
id: "homegrade_mascotte_svg__Groupe_5596",
|
||||
"data-name": "Groupe 5596"
|
||||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23846",
|
||||
"data-name": "Trac\\xE9 23846",
|
||||
className: "homegrade_mascotte_svg__cls-3",
|
||||
d: "m47.07 36.61-14.99 8.65v-17.2l7.49-13.7 7.5 5.05V36.6Z"
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23847",
|
||||
"data-name": "Trac\\xE9 23847",
|
||||
className: "homegrade_mascotte_svg__cls-3",
|
||||
d: "M32.08 45.26 17.1 36.61V19.42l14.98 8.65v17.19Z"
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23848",
|
||||
"data-name": "Trac\\xE9 23848",
|
||||
className: "homegrade_mascotte_svg__cls-3",
|
||||
d: "m17.1 19.41 7.49-13.7 14.98 8.65-7.49 13.7-14.98-8.65Z"
|
||||
}))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23849",
|
||||
"data-name": "Trac\\xE9 23849",
|
||||
d: "m36.34 33.91 2.63-1.52v-5.92l-2.63 1.51v5.93Z",
|
||||
style: {
|
||||
strokeWidth: 0,
|
||||
fill: "url(#homegrade_mascotte_svg__D\xE9grad\xE9_sans_nom_3)"
|
||||
}
|
||||
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.createElement("path", {
|
||||
id: "homegrade_mascotte_svg__Trac\\xE9_23850",
|
||||
"data-name": "Trac\\xE9 23850",
|
||||
d: "m41.32 31.05 2.62-1.51v-5.93l-2.62 1.51v5.93Z",
|
||||
style: {
|
||||
fill: "url(#homegrade_mascotte_svg__D\xE9grad\xE9_sans_nom_3-2)",
|
||||
strokeWidth: 0
|
||||
}
|
||||
}))))));
|
||||
};
|
||||
|
||||
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0ibWFzY290dGUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHZpZXdCb3g9IjAgMCA2MCA2MCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogdXJsKCNEw6lncmFkw6lfc2Fuc19ub21fMyk7CiAgICAgIH0KCiAgICAgIC5jbHMtMSwgLmNscy0yIHsKICAgICAgICBzdHJva2Utd2lkdGg6IDBweDsKICAgICAgfQoKICAgICAgLmNscy0zIHsKICAgICAgICBmaWxsOiAjZmZmOwogICAgICAgIHN0cm9rZTogIzAwMDsKICAgICAgICBzdHJva2UtbGluZWNhcDogcm91bmQ7CiAgICAgICAgc3Ryb2tlLWxpbmVqb2luOiByb3VuZDsKICAgICAgICBzdHJva2Utd2lkdGg6IDJweDsKICAgICAgfQoKICAgICAgLmNscy0yIHsKICAgICAgICBmaWxsOiB1cmwoI0TDqWdyYWTDqV9zYW5zX25vbV8zLTIpOwogICAgICB9CiAgICA8L3N0eWxlPgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJEw6lncmFkw6lfc2Fuc19ub21fMyIgZGF0YS1uYW1lPSJEw6lncmFkw6kgc2FucyBub20gMyIgeDE9Ii0yMjgwLjI4IiB5MT0iODAuMDMiIHgyPSItMjI3OS4yOSIgeTI9Ijc4Ljk4IiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDYwMzMuNzIgNjIyLjQ3KSBzY2FsZSgyLjYzIC03LjQ0KSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgogICAgICA8c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmMzI4MWQiLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmU3NjZmIi8+CiAgICA8L2xpbmVhckdyYWRpZW50PgogICAgPGxpbmVhckdyYWRpZW50IGlkPSJEw6lncmFkw6lfc2Fuc19ub21fMy0yIiBkYXRhLW5hbWU9IkTDqWdyYWTDqSBzYW5zIG5vbSAzIiB4MT0iLTIyNzYuMDYiIHkxPSI4MC4wMiIgeDI9Ii0yMjc1LjA2IiB5Mj0iNzguOTciIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoNjAwOS4zOCA2MTkuNDUpIHNjYWxlKDIuNjIgLTcuNDQpIiB4bGluazpocmVmPSIjRMOpZ3JhZMOpX3NhbnNfbm9tXzMiLz4KICA8L2RlZnM+CiAgPGcgaWQ9Ikdyb3VwZV81ODYyIiBkYXRhLW5hbWU9Ikdyb3VwZSA1ODYyIj4KICAgIDxnIGlkPSJHcm91cGVfMzE5NSIgZGF0YS1uYW1lPSJHcm91cGUgMzE5NSI+CiAgICAgIDxnIGlkPSJHcm91cGVfZGVfbWFzcXVlc18xIiBkYXRhLW5hbWU9Ikdyb3VwZSBkZSBtYXNxdWVzIDEiPgogICAgICAgIDxnIGlkPSJHcm91cGVfNTU5MyIgZGF0YS1uYW1lPSJHcm91cGUgNTU5MyI+CiAgICAgICAgICA8ZyBpZD0iR3JvdXBlXzU1OTUiIGRhdGEtbmFtZT0iR3JvdXBlIDU1OTUiPgogICAgICAgICAgICA8ZyBpZD0iR3JvdXBlXzU1OTQiIGRhdGEtbmFtZT0iR3JvdXBlIDU1OTQiPgogICAgICAgICAgICAgIDxwYXRoIGlkPSJUcmFjw6lfMjM4NDQiIGRhdGEtbmFtZT0iVHJhY8OpIDIzODQ0IiBjbGFzcz0iY2xzLTMiIGQ9Im0xMi40Niw1NC4yOWMuMzQtMS4wOS44Mi0yLjUzLDEuNDktNC4xOCwwLDAsLjM2LS44OC43Ny0xLjc5LDEuNjItMy42LDUuMzQtOS40NSw1LjYtOS44NWwxOC45OC02Ljk0LjI5LDcuMjJjMi4wMSwxLjQ0LDMuNzIsMy4yNSw1LjAzLDUuMzQsMSwxLjYxLDEuNzYsMy4zNSwyLjI1LDUuMTguNDIsMS42NS42NCwzLjM0LjY2LDUuMDMiLz4KICAgICAgICAgICAgPC9nPgogICAgICAgICAgPC9nPgogICAgICAgICAgPGcgaWQ9Ikdyb3VwZV81NTk2IiBkYXRhLW5hbWU9Ikdyb3VwZSA1NTk2Ij4KICAgICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg0NiIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NDYiIGNsYXNzPSJjbHMtMyIgZD0ibTQ3LjA3LDM2LjYxbC0xNC45OSw4LjY1di0xNy4ybDcuNDktMTMuNyw3LjUsNS4wNXYxNy4xOVoiLz4KICAgICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg0NyIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NDciIGNsYXNzPSJjbHMtMyIgZD0ibTMyLjA4LDQ1LjI2bC0xNC45OC04LjY1di0xNy4xOWwxNC45OCw4LjY1djE3LjE5WiIvPgogICAgICAgICAgICA8cGF0aCBpZD0iVHJhY8OpXzIzODQ4IiBkYXRhLW5hbWU9IlRyYWPDqSAyMzg0OCIgY2xhc3M9ImNscy0zIiBkPSJtMTcuMSwxOS40MWw3LjQ5LTEzLjcsMTQuOTgsOC42NS03LjQ5LDEzLjctMTQuOTgtOC42NVoiLz4KICAgICAgICAgIDwvZz4KICAgICAgICAgIDxwYXRoIGlkPSJUcmFjw6lfMjM4NDkiIGRhdGEtbmFtZT0iVHJhY8OpIDIzODQ5IiBjbGFzcz0iY2xzLTEiIGQ9Im0zNi4zNCwzMy45MWwyLjYzLTEuNTJ2LTUuOTJsLTIuNjMsMS41MXY1LjkzWiIvPgogICAgICAgICAgPHBhdGggaWQ9IlRyYWPDqV8yMzg1MCIgZGF0YS1uYW1lPSJUcmFjw6kgMjM4NTAiIGNsYXNzPSJjbHMtMiIgZD0ibTQxLjMyLDMxLjA1bDIuNjItMS41MXYtNS45M2wtMi42MiwxLjUxdjUuOTNaIi8+CiAgICAgICAgPC9nPgogICAgICA8L2c+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4=");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/edit.js":
|
||||
/*!*************************************!*\
|
||||
!*** ./src/nested-children/edit.js ***!
|
||||
\*************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (/* binding */ Edit)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n");
|
||||
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _editor_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./editor.scss */ "./src/nested-children/editor.scss");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__);
|
||||
|
||||
|
||||
|
||||
|
||||
function Edit({
|
||||
attributes,
|
||||
setAttributes,
|
||||
...props
|
||||
}) {
|
||||
let {
|
||||
childName
|
||||
} = attributes;
|
||||
function onChangeChildName(childName) {
|
||||
setAttributes({
|
||||
childName
|
||||
});
|
||||
}
|
||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||
...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.useBlockProps)({
|
||||
className: `homegrade-blocks-staff-member`
|
||||
})
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.RichText, {
|
||||
tagName: "p",
|
||||
className: "homegrade-blocks-staff-member__child-name",
|
||||
onChange: onChangeChildName,
|
||||
value: childName,
|
||||
placeholder: "Nom de l'enfant"
|
||||
})));
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/index.js":
|
||||
/*!**************************************!*\
|
||||
!*** ./src/nested-children/index.js ***!
|
||||
\**************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks");
|
||||
/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./style.scss */ "./src/nested-children/style.scss");
|
||||
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/nested-children/block.json");
|
||||
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./edit */ "./src/nested-children/edit.js");
|
||||
/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./save */ "./src/nested-children/save.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_1__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, {
|
||||
title: _block_json__WEBPACK_IMPORTED_MODULE_3__.title,
|
||||
icon: {
|
||||
foreground: "#DF1E1E",
|
||||
src: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", {
|
||||
version: "1.1",
|
||||
viewBox: "0 0 50800 63500",
|
||||
x: "0px",
|
||||
y: "0px",
|
||||
"fill-rule": "evenodd",
|
||||
"clip-rule": "evenodd"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("defs", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("style", {
|
||||
type: "text/css"
|
||||
})), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||
class: "fil0",
|
||||
d: "M34027 25667c-2015,1921 -4758,3103 -7780,3103 -3022,0 -5765,-1182 -7780,-3103 -347,-86 -694,-171 -1031,-214 -337,-43 -663,-43 -967,4 -303,46 -583,140 -910,257 -327,116 -700,256 -1167,536 -466,280 -1027,700 -1563,1401 -537,699 -1050,1680 -1517,2847 -467,1166 -887,2520 -1120,3827 -233,1306 -280,2567 -303,3523 -24,957 -24,1611 70,2241 93,630 279,1236 700,1843 420,607 1073,1214 1843,1680 770,467 1657,794 2871,957 1213,163 2753,163 4620,163l5414 0 840 0 840 0 5414 0c1867,0 3407,0 4620,-163 1214,-163 2101,-490 2871,-957 770,-466 1423,-1073 1843,-1680 421,-607 607,-1213 700,-1843 94,-630 94,-1284 70,-2241 -23,-956 -70,-2217 -303,-3523 -233,-1307 -653,-2661 -1120,-3827 -467,-1167 -980,-2148 -1517,-2847 -536,-701 -1097,-1121 -1563,-1401 -467,-280 -840,-420 -1167,-536 -327,-117 -607,-211 -910,-257 -304,-47 -630,-47 -967,-4 -337,43 -684,128 -1031,214z"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", {
|
||||
class: "fil0",
|
||||
d: "M26247 26670c4949,0 8961,-4012 8961,-8961 0,-4949 -4012,-8961 -8961,-8961 -4949,0 -8961,4012 -8961,8961 0,4949 4012,8961 8961,8961z"
|
||||
})))
|
||||
},
|
||||
supports: _block_json__WEBPACK_IMPORTED_MODULE_3__.supports,
|
||||
attributes: _block_json__WEBPACK_IMPORTED_MODULE_3__.attributes,
|
||||
edit: _edit__WEBPACK_IMPORTED_MODULE_4__["default"],
|
||||
save: _save__WEBPACK_IMPORTED_MODULE_5__["default"]
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/save.js":
|
||||
/*!*************************************!*\
|
||||
!*** ./src/nested-children/save.js ***!
|
||||
\*************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ "default": () => (/* binding */ save)
|
||||
/* harmony export */ });
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element");
|
||||
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor");
|
||||
/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var _img_homegrade_mascotte_svg__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./img/homegrade_mascotte.svg */ "./src/nested-children/img/homegrade_mascotte.svg");
|
||||
|
||||
|
||||
|
||||
function save({
|
||||
attributes
|
||||
}) {
|
||||
const {
|
||||
name,
|
||||
position
|
||||
} = attributes;
|
||||
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("li", {
|
||||
..._wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps.save({
|
||||
className: `homegrade-blocks-staff-member`
|
||||
})
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||
className: "homegrade-blocks-staff-member__member-icon"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("img", {
|
||||
src: _img_homegrade_mascotte_svg__WEBPACK_IMPORTED_MODULE_2__["default"],
|
||||
alt: ""
|
||||
})), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)("div", {
|
||||
className: "homegrade-blocks-staff-member__member-informations"
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
||||
tagName: "h4",
|
||||
value: name,
|
||||
className: "homegrade-blocks-staff-member__name"
|
||||
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.RichText.Content, {
|
||||
tagName: "p",
|
||||
value: position,
|
||||
className: "homegrade-blocks-staff-member__position"
|
||||
})));
|
||||
}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/editor.scss":
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/nested-children/editor.scss ***!
|
||||
\*****************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/style.scss":
|
||||
/*!****************************************!*\
|
||||
!*** ./src/nested-children/style.scss ***!
|
||||
\****************************************/
|
||||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
||||
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
// extracted by mini-css-extract-plugin
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "react":
|
||||
/*!************************!*\
|
||||
!*** external "React" ***!
|
||||
\************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["React"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/block-editor":
|
||||
/*!*************************************!*\
|
||||
!*** external ["wp","blockEditor"] ***!
|
||||
\*************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["blockEditor"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/blocks":
|
||||
/*!********************************!*\
|
||||
!*** external ["wp","blocks"] ***!
|
||||
\********************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["blocks"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/element":
|
||||
/*!*********************************!*\
|
||||
!*** external ["wp","element"] ***!
|
||||
\*********************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["element"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "@wordpress/i18n":
|
||||
/*!******************************!*\
|
||||
!*** external ["wp","i18n"] ***!
|
||||
\******************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window["wp"]["i18n"];
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/nested-children/block.json":
|
||||
/*!****************************************!*\
|
||||
!*** ./src/nested-children/block.json ***!
|
||||
\****************************************/
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":2,"name":"homegrade-content-blocks/starter-nested-child","version":"0.1.0","title":"Starter Nested — Child","category":"homegrade-blocks","description":"Starter nested — Child","supports":{"html":false},"editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","attributes":{"childName":{"type":"string"}}}');
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
/************************************************************************/
|
||||
/******/ // The module cache
|
||||
/******/ var __webpack_module_cache__ = {};
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/ // Check if module is in cache
|
||||
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
||||
/******/ if (cachedModule !== undefined) {
|
||||
/******/ return cachedModule.exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = __webpack_module_cache__[moduleId] = {
|
||||
/******/ // no module.id needed
|
||||
/******/ // no module.loaded needed
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = __webpack_modules__;
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/chunk loaded */
|
||||
/******/ (() => {
|
||||
/******/ var deferred = [];
|
||||
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
|
||||
/******/ if(chunkIds) {
|
||||
/******/ priority = priority || 0;
|
||||
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
||||
/******/ deferred[i] = [chunkIds, fn, priority];
|
||||
/******/ return;
|
||||
/******/ }
|
||||
/******/ var notFulfilled = Infinity;
|
||||
/******/ for (var i = 0; i < deferred.length; i++) {
|
||||
/******/ var chunkIds = deferred[i][0];
|
||||
/******/ var fn = deferred[i][1];
|
||||
/******/ var priority = deferred[i][2];
|
||||
/******/ var fulfilled = true;
|
||||
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
||||
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
|
||||
/******/ chunkIds.splice(j--, 1);
|
||||
/******/ } else {
|
||||
/******/ fulfilled = false;
|
||||
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(fulfilled) {
|
||||
/******/ deferred.splice(i--, 1)
|
||||
/******/ var r = fn();
|
||||
/******/ if (r !== undefined) result = r;
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ return result;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/make namespace object */
|
||||
/******/ (() => {
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = (exports) => {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/jsonp chunk loading */
|
||||
/******/ (() => {
|
||||
/******/ // no baseURI
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
|
||||
/******/ var installedChunks = {
|
||||
/******/ "nested-children/index": 0,
|
||||
/******/ "./style-index": 0
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // no chunk on demand loading
|
||||
/******/
|
||||
/******/ // no prefetching
|
||||
/******/
|
||||
/******/ // no preloaded
|
||||
/******/
|
||||
/******/ // no HMR
|
||||
/******/
|
||||
/******/ // no HMR manifest
|
||||
/******/
|
||||
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
||||
/******/
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var runtime = data[2];
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0;
|
||||
/******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
|
||||
/******/ for(moduleId in moreModules) {
|
||||
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
|
||||
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(runtime) var result = runtime(__webpack_require__);
|
||||
/******/ }
|
||||
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
|
||||
/******/ for(;i < chunkIds.length; i++) {
|
||||
/******/ chunkId = chunkIds[i];
|
||||
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
||||
/******/ installedChunks[chunkId][0]();
|
||||
/******/ }
|
||||
/******/ installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ return __webpack_require__.O(result);
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ var chunkLoadingGlobal = self["webpackChunkmultiblocks"] = self["webpackChunkmultiblocks"] || [];
|
||||
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
|
||||
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/
|
||||
/******/ // startup
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
||||
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["./style-index"], () => (__webpack_require__("./src/nested-children/index.js")))
|
||||
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
||||
/******/
|
||||
/******/ })()
|
||||
;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
blocks/grey-box/build/nested-children/index.js.map
Normal file
1
blocks/grey-box/build/nested-children/index.js.map
Normal file
File diff suppressed because one or more lines are too long
8
blocks/grey-box/build/style-index.css
Normal file
8
blocks/grey-box/build/style-index.css
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/*!***************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/style.scss ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
/*!*******************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/nested-children/style.scss ***!
|
||||
\*******************************************************************************************************************************************************************************************************************************************************/
|
||||
|
||||
28142
blocks/grey-box/package-lock.json
generated
Normal file
28142
blocks/grey-box/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
20
blocks/grey-box/package.json
Normal file
20
blocks/grey-box/package.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "multiblocks",
|
||||
"version": "0.1.0",
|
||||
"description": "Example block scaffolded with Create Block tool.",
|
||||
"author": "The WordPress Contributors",
|
||||
"license": "GPL-2.0-or-later",
|
||||
"main": "build/index.js",
|
||||
"scripts": {
|
||||
"build": "wp-scripts build",
|
||||
"format": "wp-scripts format",
|
||||
"lint:css": "wp-scripts lint-style",
|
||||
"lint:js": "wp-scripts lint-js",
|
||||
"packages-update": "wp-scripts packages-update",
|
||||
"plugin-zip": "wp-scripts plugin-zip",
|
||||
"start": "wp-scripts start"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@wordpress/scripts": "^26.9.0"
|
||||
}
|
||||
}
|
||||
24
blocks/grey-box/src/block.json
Normal file
24
blocks/grey-box/src/block.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "homegrade-content-blocks/grey-box",
|
||||
"version": "0.1.0",
|
||||
"title": "Grey Box",
|
||||
"category": "homegrade-blocks",
|
||||
"description": "Boite de gestion contenu",
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"textdomain": "homegrade-blocks",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css",
|
||||
"style": "file:./style-index.css",
|
||||
"attributes": {
|
||||
"blockTitle": {
|
||||
"type": "string"
|
||||
},
|
||||
"blockSubtitle": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
63
blocks/grey-box/src/edit.js
Normal file
63
blocks/grey-box/src/edit.js
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
import { __ } from "@wordpress/i18n";
|
||||
import "./editor.scss";
|
||||
import "./nested-children";
|
||||
|
||||
import {
|
||||
useBlockProps,
|
||||
RichText,
|
||||
InnerBlocks,
|
||||
InspectorControls,
|
||||
} from "@wordpress/block-editor";
|
||||
|
||||
import { Tip, PanelBody } from "@wordpress/components";
|
||||
|
||||
export default function Edit({ attributes, setAttributes, clientId }) {
|
||||
let { blockTitle, blockSubtitle } = attributes;
|
||||
|
||||
function onChangeBlockTitle(blockTitle) {
|
||||
setAttributes({ blockTitle });
|
||||
}
|
||||
function onChangeBlockSubtitle(blockSubtitle) {
|
||||
setAttributes({ blockSubtitle });
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<InspectorControls>
|
||||
<PanelBody>
|
||||
<Tip>salut</Tip>
|
||||
</PanelBody>
|
||||
</InspectorControls>
|
||||
<section
|
||||
{...useBlockProps({
|
||||
className: `starter-nested-parent`,
|
||||
})}
|
||||
>
|
||||
<RichText
|
||||
value={blockTitle}
|
||||
tagName="h3"
|
||||
className="starter-nested-parent__title"
|
||||
placeholder={__("Ajouter ici le Titre", "homegrade")}
|
||||
onChange={onChangeBlockTitle}
|
||||
/>
|
||||
<RichText
|
||||
value={blockSubtitle}
|
||||
tagName="h4"
|
||||
className="starter-nested-parent__subtitle"
|
||||
placeholder={__("Ajouter ici le Sous-titre", "homegrade")}
|
||||
onChange={onChangeBlockSubtitle}
|
||||
/>
|
||||
|
||||
<div className="starter-nested-parent__children-container">
|
||||
<InnerBlocks
|
||||
// allowedBlocks={[
|
||||
// "core/paragraph",
|
||||
// "homegrade-content-blocks/starter-nested-child",
|
||||
// ]}
|
||||
allowedBlocks={["core/paragraph"]}
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
}
|
||||
9
blocks/grey-box/src/editor.scss
Normal file
9
blocks/grey-box/src/editor.scss
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.homegrade-blocks-staff-list {
|
||||
.homegrade-blocks-staff-list__staff-list {
|
||||
display: unset;
|
||||
}
|
||||
.block-editor-block-list__layout {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
24
blocks/grey-box/src/index.js
Normal file
24
blocks/grey-box/src/index.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import { registerBlockType } from "@wordpress/blocks";
|
||||
import "./style.scss";
|
||||
|
||||
import Edit from "./edit";
|
||||
import save from "./save";
|
||||
import metadata from "./block.json";
|
||||
|
||||
registerBlockType(metadata.name, {
|
||||
icon: {
|
||||
src: (
|
||||
<svg version="1.1" x="0px" y="0px" viewBox="0 0 128 160">
|
||||
<g>
|
||||
<circle cx="67" cy="11" r="10" />
|
||||
<circle cx="37" cy="21" r="10" />
|
||||
<path d="M17,51v36h10v40h20h40h20V87h10V51c0-5.5-4.5-10-10-10L97,51v26H87v40H77V77h10V41c0-5.5-4.5-10-10-10L67,41L57,31 c-5.5,0-10,4.5-10,10v36h10v40H47V77H37V51L27,41C21.5,41,17,45.5,17,51z" />
|
||||
<circle cx="97" cy="21" r="10" />
|
||||
</g>
|
||||
</svg>
|
||||
),
|
||||
foreground: "#DF1E1E",
|
||||
},
|
||||
edit: Edit,
|
||||
save,
|
||||
});
|
||||
20
blocks/grey-box/src/nested-children/block.json
Normal file
20
blocks/grey-box/src/nested-children/block.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 2,
|
||||
"name": "homegrade-content-blocks/starter-nested-child",
|
||||
"version": "0.1.0",
|
||||
"title": "Starter Nested — Child",
|
||||
"category": "homegrade-blocks",
|
||||
"description": "Starter nested — Child",
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css",
|
||||
"style": "file:./style-index.css",
|
||||
"attributes": {
|
||||
"childName": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
30
blocks/grey-box/src/nested-children/edit.js
Normal file
30
blocks/grey-box/src/nested-children/edit.js
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { __ } from "@wordpress/i18n";
|
||||
import "./editor.scss";
|
||||
|
||||
import { useBlockProps, RichText } from "@wordpress/block-editor";
|
||||
|
||||
export default function Edit({ attributes, setAttributes, ...props }) {
|
||||
let { childName } = attributes;
|
||||
|
||||
function onChangeChildName(childName) {
|
||||
setAttributes({ childName });
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
{...useBlockProps({
|
||||
className: `homegrade-blocks-staff-member`,
|
||||
})}
|
||||
>
|
||||
<RichText
|
||||
tagName="p"
|
||||
className="homegrade-blocks-staff-member__child-name"
|
||||
onChange={onChangeChildName}
|
||||
value={childName}
|
||||
placeholder="Nom de l'enfant"
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
1
blocks/grey-box/src/nested-children/editor.scss
Normal file
1
blocks/grey-box/src/nested-children/editor.scss
Normal file
|
|
@ -0,0 +1 @@
|
|||
// THE STYLE IS HANDLED IN PARENT BLOCK (timeline)
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="mascotte" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 60 60">
|
||||
<defs>
|
||||
<style>
|
||||
.cls-1 {
|
||||
fill: url(#Dégradé_sans_nom_3);
|
||||
}
|
||||
|
||||
.cls-1, .cls-2 {
|
||||
stroke-width: 0px;
|
||||
}
|
||||
|
||||
.cls-3 {
|
||||
fill: #fff;
|
||||
stroke: #000;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-width: 2px;
|
||||
}
|
||||
|
||||
.cls-2 {
|
||||
fill: url(#Dégradé_sans_nom_3-2);
|
||||
}
|
||||
</style>
|
||||
<linearGradient id="Dégradé_sans_nom_3" data-name="Dégradé sans nom 3" x1="-2280.28" y1="80.03" x2="-2279.29" y2="78.98" gradientTransform="translate(6033.72 622.47) scale(2.63 -7.44)" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" stop-color="#f3281d"/>
|
||||
<stop offset="1" stop-color="#fe766f"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="Dégradé_sans_nom_3-2" data-name="Dégradé sans nom 3" x1="-2276.06" y1="80.02" x2="-2275.06" y2="78.97" gradientTransform="translate(6009.38 619.45) scale(2.62 -7.44)" xlink:href="#Dégradé_sans_nom_3"/>
|
||||
</defs>
|
||||
<g id="Groupe_5862" data-name="Groupe 5862">
|
||||
<g id="Groupe_3195" data-name="Groupe 3195">
|
||||
<g id="Groupe_de_masques_1" data-name="Groupe de masques 1">
|
||||
<g id="Groupe_5593" data-name="Groupe 5593">
|
||||
<g id="Groupe_5595" data-name="Groupe 5595">
|
||||
<g id="Groupe_5594" data-name="Groupe 5594">
|
||||
<path id="Tracé_23844" data-name="Tracé 23844" class="cls-3" d="m12.46,54.29c.34-1.09.82-2.53,1.49-4.18,0,0,.36-.88.77-1.79,1.62-3.6,5.34-9.45,5.6-9.85l18.98-6.94.29,7.22c2.01,1.44,3.72,3.25,5.03,5.34,1,1.61,1.76,3.35,2.25,5.18.42,1.65.64,3.34.66,5.03"/>
|
||||
</g>
|
||||
</g>
|
||||
<g id="Groupe_5596" data-name="Groupe 5596">
|
||||
<path id="Tracé_23846" data-name="Tracé 23846" class="cls-3" d="m47.07,36.61l-14.99,8.65v-17.2l7.49-13.7,7.5,5.05v17.19Z"/>
|
||||
<path id="Tracé_23847" data-name="Tracé 23847" class="cls-3" d="m32.08,45.26l-14.98-8.65v-17.19l14.98,8.65v17.19Z"/>
|
||||
<path id="Tracé_23848" data-name="Tracé 23848" class="cls-3" d="m17.1,19.41l7.49-13.7,14.98,8.65-7.49,13.7-14.98-8.65Z"/>
|
||||
</g>
|
||||
<path id="Tracé_23849" data-name="Tracé 23849" class="cls-1" d="m36.34,33.91l2.63-1.52v-5.92l-2.63,1.51v5.93Z"/>
|
||||
<path id="Tracé_23850" data-name="Tracé 23850" class="cls-2" d="m41.32,31.05l2.62-1.51v-5.93l-2.62,1.51v5.93Z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.5 KiB |
44
blocks/grey-box/src/nested-children/index.js
Normal file
44
blocks/grey-box/src/nested-children/index.js
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
import { registerBlockType } from "@wordpress/blocks";
|
||||
import "./style.scss";
|
||||
import metadata from "./block.json";
|
||||
|
||||
import Edit from "./edit";
|
||||
import Save from "./save";
|
||||
|
||||
import { navigation } from "@wordpress/icons";
|
||||
|
||||
registerBlockType(metadata.name, {
|
||||
title: metadata.title,
|
||||
icon: {
|
||||
foreground: "#DF1E1E",
|
||||
src: (
|
||||
<svg
|
||||
version="1.1"
|
||||
viewBox="0 0 50800 63500"
|
||||
x="0px"
|
||||
y="0px"
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
>
|
||||
<defs>
|
||||
<style type="text/css"></style>
|
||||
</defs>
|
||||
<g>
|
||||
<path
|
||||
class="fil0"
|
||||
d="M34027 25667c-2015,1921 -4758,3103 -7780,3103 -3022,0 -5765,-1182 -7780,-3103 -347,-86 -694,-171 -1031,-214 -337,-43 -663,-43 -967,4 -303,46 -583,140 -910,257 -327,116 -700,256 -1167,536 -466,280 -1027,700 -1563,1401 -537,699 -1050,1680 -1517,2847 -467,1166 -887,2520 -1120,3827 -233,1306 -280,2567 -303,3523 -24,957 -24,1611 70,2241 93,630 279,1236 700,1843 420,607 1073,1214 1843,1680 770,467 1657,794 2871,957 1213,163 2753,163 4620,163l5414 0 840 0 840 0 5414 0c1867,0 3407,0 4620,-163 1214,-163 2101,-490 2871,-957 770,-466 1423,-1073 1843,-1680 421,-607 607,-1213 700,-1843 94,-630 94,-1284 70,-2241 -23,-956 -70,-2217 -303,-3523 -233,-1307 -653,-2661 -1120,-3827 -467,-1167 -980,-2148 -1517,-2847 -536,-701 -1097,-1121 -1563,-1401 -467,-280 -840,-420 -1167,-536 -327,-117 -607,-211 -910,-257 -304,-47 -630,-47 -967,-4 -337,43 -684,128 -1031,214z"
|
||||
/>
|
||||
<path
|
||||
class="fil0"
|
||||
d="M26247 26670c4949,0 8961,-4012 8961,-8961 0,-4949 -4012,-8961 -8961,-8961 -4949,0 -8961,4012 -8961,8961 0,4949 4012,8961 8961,8961z"
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
),
|
||||
},
|
||||
|
||||
supports: metadata.supports,
|
||||
attributes: metadata.attributes,
|
||||
edit: Edit,
|
||||
save: Save,
|
||||
});
|
||||
29
blocks/grey-box/src/nested-children/save.js
Normal file
29
blocks/grey-box/src/nested-children/save.js
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { useBlockProps, RichText, InnerBlocks } from "@wordpress/block-editor";
|
||||
import mascotte from "./img/homegrade_mascotte.svg";
|
||||
|
||||
export default function save({ attributes }) {
|
||||
const { name, position } = attributes;
|
||||
return (
|
||||
<li
|
||||
{...useBlockProps.save({
|
||||
className: `homegrade-blocks-staff-member`,
|
||||
})}
|
||||
>
|
||||
<div className="homegrade-blocks-staff-member__member-icon">
|
||||
<img src={mascotte} alt="" />
|
||||
</div>
|
||||
<div className="homegrade-blocks-staff-member__member-informations">
|
||||
<RichText.Content
|
||||
tagName="h4"
|
||||
value={name}
|
||||
className="homegrade-blocks-staff-member__name"
|
||||
/>
|
||||
<RichText.Content
|
||||
tagName="p"
|
||||
value={position}
|
||||
className="homegrade-blocks-staff-member__position"
|
||||
/>
|
||||
</div>
|
||||
</li>
|
||||
);
|
||||
}
|
||||
1
blocks/grey-box/src/nested-children/style.scss
Normal file
1
blocks/grey-box/src/nested-children/style.scss
Normal file
|
|
@ -0,0 +1 @@
|
|||
// THE STYLE IS HANDLED IN PARENT BLOCK (timeline)
|
||||
28
blocks/grey-box/src/save.js
Normal file
28
blocks/grey-box/src/save.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
import { useBlockProps, RichText, InnerBlocks } from "@wordpress/block-editor";
|
||||
|
||||
export default function save({ attributes }) {
|
||||
let { blockTitle, blockSubtitle } = attributes;
|
||||
|
||||
return (
|
||||
<section
|
||||
{...useBlockProps.save({
|
||||
className: `starter-nested-parent`,
|
||||
})}
|
||||
>
|
||||
<RichText.Content
|
||||
value={blockTitle}
|
||||
tagName="h3"
|
||||
className="starter-nested-parent__title"
|
||||
/>
|
||||
<RichText.Content
|
||||
value={blockSubtitle}
|
||||
tagName="h4"
|
||||
className="starter-nested-parent__subtitle"
|
||||
/>
|
||||
|
||||
<div className="starter-nested-parent__children-container">
|
||||
<InnerBlocks.Content />
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
0
blocks/grey-box/src/style.scss
Normal file
0
blocks/grey-box/src/style.scss
Normal file
|
|
@ -51,7 +51,10 @@ function create_block_multiblocks_block_init()
|
|||
register_block_type(__DIR__ . '/blocks/plus-loin/build');
|
||||
register_block_type(__DIR__ . '/blocks/chapitrage-thematique/build');
|
||||
register_block_type(__DIR__ . '/blocks/timeline/build');
|
||||
// register_block_type(__DIR__ . '/blocks/table/build');
|
||||
register_block_type(__DIR__ . '/blocks/staff-list/build');
|
||||
register_block_type(__DIR__ . '/blocks/grey-box/build');
|
||||
|
||||
// register_block_type(__DIR__ . '/blocks/_starterNested/build');
|
||||
}
|
||||
add_action('init', 'create_block_multiblocks_block_init');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user