UNPKG

@datalayer/icons-react

Version:

React.js and JupyterLab icons for data products.

31 lines (29 loc) 1.96 kB
const React = require("react"); const sizeMap = { "small": 16, "medium": 32, "large": 64 }; function WidgetsIcon({ title, titleId, size, colored, ...props }, svgRef) { return /*#__PURE__*/React.createElement("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", fill: colored ? 'currentColor' : (['#fff', '#fffff', 'white', '#FFF', '#FFFFFF'].includes('currentColor') ? 'white' : 'currentColor'), viewBox: "0 0 20 20", "aria-hidden": "true", width: size ? typeof size === "string" ? sizeMap[size] : size : "16px", ref: svgRef, "aria-labelledby": titleId }, props), title ? /*#__PURE__*/React.createElement("title", { id: titleId }, title) : null, /*#__PURE__*/React.createElement("path", { d: "M1.875 4.063c0-1.208.98-2.188 2.188-2.188h3.125c1.207 0 2.187.98 2.187 2.188v3.125a2.188 2.188 0 01-2.188 2.187H4.063a2.188 2.188 0 01-2.187-2.188V4.063zm8.75 0c0-1.208.98-2.188 2.188-2.188h3.124c1.208 0 2.188.98 2.188 2.188v3.125a2.188 2.188 0 01-2.188 2.187h-3.124a2.187 2.187 0 01-2.188-2.188V4.063zm-8.75 8.75c0-1.208.98-2.188 2.188-2.188h3.125c1.207 0 2.187.98 2.187 2.188v3.124a2.187 2.187 0 01-2.188 2.188H4.063a2.188 2.188 0 01-2.187-2.188v-3.124zm8.75 0c0-1.208.98-2.188 2.188-2.188h3.124c1.208 0 2.188.98 2.188 2.188v3.124a2.188 2.188 0 01-2.188 2.188h-3.124a2.188 2.188 0 01-2.188-2.188v-3.124zM4.062 3.75a.312.312 0 00-.312.313v3.125c0 .172.14.312.313.312h3.125a.312.312 0 00.312-.313V4.063a.312.312 0 00-.313-.312H4.063zm8.75 0a.313.313 0 00-.312.313v3.125c0 .172.14.312.313.312h3.124a.313.313 0 00.313-.313V4.063a.312.312 0 00-.313-.312h-3.124zm-8.75 8.75a.312.312 0 00-.312.313v3.124c0 .173.14.313.313.313h3.125a.312.312 0 00.312-.313v-3.124a.313.313 0 00-.313-.313H4.063zm8.75 0a.313.313 0 00-.312.313v3.124c0 .173.14.313.313.313h3.124a.313.313 0 00.313-.313v-3.124a.313.313 0 00-.313-.313h-3.124z" })); } const ForwardRef = React.forwardRef(WidgetsIcon); module.exports = ForwardRef;