@wordpress/block-library
Version:
Block library for the WordPress editor.
49 lines (47 loc) • 1.32 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.square = exports.circleOutline = exports.circle = void 0;
var _components = require("@wordpress/components");
var _jsxRuntime = require("react/jsx-runtime");
/**
* WordPress dependencies
*/
const circle = (size, color) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SVG, {
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
width: size,
height: size,
rx: size / 2,
fill: color
})
});
exports.circle = circle;
const circleOutline = (size, color) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SVG, {
width: size,
height: size,
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
x: "0.5",
y: "0.5",
width: size - 1,
height: size - 1,
rx: size / 2,
stroke: color
})
});
exports.circleOutline = circleOutline;
const square = (size, color) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.SVG, {
fill: "none",
xmlns: "http://www.w3.org/2000/svg",
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Rect, {
width: size,
height: size,
fill: color
})
});
exports.square = square;
//# sourceMappingURL=icons.native.js.map
;