UNPKG

@datalayer/icons-react

Version:

React.js and JupyterLab icons for data products.

31 lines (29 loc) 1.51 kB
const React = require("react"); const sizeMap = { "small": 16, "medium": 32, "large": 64 }; function DialogIcon({ 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: "M2.188 1.25h15.624C19.02 1.25 20 2.23 20 3.438v10.624a2.188 2.188 0 01-2.188 2.188h-7.736L6.86 19.466A1.823 1.823 0 013.75 18.18V16.25H2.187A2.188 2.188 0 010 14.062V3.438C0 2.23.98 1.25 2.188 1.25zm-.313 2.188v10.624c0 .173.14.313.313.313h2.5a.938.938 0 01.937.938v2.737l3.4-3.4a.937.937 0 01.662-.275h8.126a.313.313 0 00.312-.313V3.438a.312.312 0 00-.313-.313H2.188a.312.312 0 00-.312.313zm6.6 2.15a.938.938 0 010 1.324L6.638 8.75l1.837 1.838a.939.939 0 01-1.325 1.325l-2.5-2.5a.938.938 0 010-1.325l2.5-2.5a.938.938 0 011.325 0zm3.05 0a.938.938 0 011.325 0l2.5 2.5a.937.937 0 010 1.325l-2.5 2.5a.939.939 0 01-1.325-1.325l1.838-1.838-1.838-1.838a.937.937 0 010-1.324z" })); } const ForwardRef = React.forwardRef(DialogIcon); module.exports = ForwardRef;