FIX Refining icon

This commit is contained in:
Antoine M 2025-06-26 17:41:44 +02:00
parent 3d6b360db0
commit 2d779a2640
4 changed files with 38 additions and 59 deletions

View File

@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '38a0c0a147de580d7cd2');
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-i18n'), 'version' => '3ba772c24e530eeafb2d');

View File

@ -66,37 +66,29 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/style.scss");
/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/edit.js");
/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./block.json */ "./src/block.json");
/**
* Registers a new block provided a unique name and an object defining its behavior.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
/**
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
* All files containing `style` keyword are bundled together. The code used
* gets applied both to the front of your site and to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
/**
* Internal dependencies
*/
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react/jsx-runtime */ "react/jsx-runtime");
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
/**
* Every block starts by registering a new block type definition.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_3__.name, {
/**
* @see ./edit.js
*/
icon: {
src: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("svg", {
width: "40",
height: "40",
viewBox: "0 0 40 40",
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("g", {
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("path", {
d: "m13.6069,24.44496l-12.82407,12.82407a1.40154,1.40154 0 1 0 1.97617,1.97617l12.82407,-12.82407l-1.97617,-1.97617z"
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("path", {
d: "m39.19898,9.93905l-9.10999,-9.10999a3.01331,3.01331 0 0 0 -4.20461,4.20461a0.23826,0.23826 0 0 1 0,0.29432l-5.03152,5.03152a3.62998,3.62998 0 0 1 -4.54098,0.60266a6.40503,6.40503 0 0 0 -8.18498,0.74281l-1.62578,1.65381a1.40154,1.40154 0 0 0 0,1.94814l18.21999,18.21999a1.40154,1.40154 0 0 0 1.97617,0l1.65381,-1.65381a6.40503,6.40503 0 0 0 0.71478,-8.15695a3.62998,3.62998 0 0 1 0.60266,-4.54098l4.97546,-4.97546a0.23826,0.23826 0 0 1 0.29432,0a3.01331,3.01331 0 0 0 4.20461,-4.20461l0.05606,-0.05606z"
})]
})
}),
foreground: "#136f63"
},
edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"]
});

File diff suppressed because one or more lines are too long

View File

@ -1,33 +1,20 @@
/**
* Registers a new block provided a unique name and an object defining its behavior.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
import { registerBlockType } from '@wordpress/blocks';
import { registerBlockType } from "@wordpress/blocks";
import "./style.scss";
/**
* Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.
* All files containing `style` keyword are bundled together. The code used
* gets applied both to the front of your site and to the editor.
*
* @see https://www.npmjs.com/package/@wordpress/scripts#using-css
*/
import './style.scss';
import Edit from "./edit";
import metadata from "./block.json";
/**
* Internal dependencies
*/
import Edit from './edit';
import metadata from './block.json';
/**
* Every block starts by registering a new block type definition.
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
registerBlockType( metadata.name, {
/**
* @see ./edit.js
*/
registerBlockType(metadata.name, {
icon: {
src: (
<svg width="40" height="40" viewBox="0 0 40 40">
<g>
<path d="m13.6069,24.44496l-12.82407,12.82407a1.40154,1.40154 0 1 0 1.97617,1.97617l12.82407,-12.82407l-1.97617,-1.97617z" />
<path d="m39.19898,9.93905l-9.10999,-9.10999a3.01331,3.01331 0 0 0 -4.20461,4.20461a0.23826,0.23826 0 0 1 0,0.29432l-5.03152,5.03152a3.62998,3.62998 0 0 1 -4.54098,0.60266a6.40503,6.40503 0 0 0 -8.18498,0.74281l-1.62578,1.65381a1.40154,1.40154 0 0 0 0,1.94814l18.21999,18.21999a1.40154,1.40154 0 0 0 1.97617,0l1.65381,-1.65381a6.40503,6.40503 0 0 0 0.71478,-8.15695a3.62998,3.62998 0 0 1 0.60266,-4.54098l4.97546,-4.97546a0.23826,0.23826 0 0 1 0.29432,0a3.01331,3.01331 0 0 0 4.20461,-4.20461l0.05606,-0.05606z" />
</g>
</svg>
),
foreground: "#136f63",
},
edit: Edit,
} );
});