@elgato/icons
Version:
Icons used throughout the Elgato ecosystem.
15 lines (14 loc) • 3.34 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { sizeMap } from "../../metadata/sizing.js";
const IconPalette = (props) => {
const size = sizeMap[props?.size ?? "m"];
const label = props?.label ?? "Icon";
switch (props?.size) {
case "l":
return (_jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M17.5 13C18.3284 13 19 12.3284 19 11.5C19 10.6716 18.3284 10 17.5 10C16.6716 10 16 10.6716 16 11.5C16 12.3284 16.6716 13 17.5 13Z" }), _jsx("path", { d: "M15.067 5.68783C15.7844 6.10204 16.0302 7.01943 15.616 7.73687C15.2018 8.4543 14.2844 8.70012 13.567 8.2859C12.8495 7.87169 12.6037 6.9543 13.0179 6.23687C13.4322 5.51943 14.3495 5.27361 15.067 5.68783Z" }), _jsx("path", { d: "M10.116 6.73687C9.70181 6.01943 8.78442 5.77361 8.06698 6.18783C7.34954 6.60204 7.10373 7.51943 7.51794 8.23687C7.93216 8.9543 8.84954 9.20012 9.56698 8.7859C10.2844 8.37169 10.5302 7.4543 10.116 6.73687Z" }), _jsx("path", { d: "M5 12.5C5 11.6716 5.67157 11 6.5 11C7.32843 11 8 11.6716 8 12.5C8 13.3284 7.32843 14 6.5 14C5.67157 14 5 13.3284 5 12.5Z" }), _jsx("path", { d: "M8.38398 16.2631C7.96977 16.9806 8.21558 17.898 8.93302 18.3122C9.65046 18.7264 10.5678 18.4806 10.9821 17.7631C11.3963 17.0457 11.1505 16.1283 10.433 15.7141C9.71558 15.2999 8.79819 15.5457 8.38398 16.2631Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 14.7614 19.7614 17 17 17C15.8954 17 15 17.8954 15 19V20C15 21.1046 14.1046 22 13 22H12C6.47715 22 2 17.5228 2 12ZM13.5 19V20C13.5 20.2761 13.2761 20.5 13 20.5H12C7.30558 20.5 3.5 16.6944 3.5 12C3.5 7.30558 7.30558 3.5 12 3.5C16.6944 3.5 20.5 7.30558 20.5 12C20.5 13.933 18.933 15.5 17 15.5C15.067 15.5 13.5 17.067 13.5 19Z" })] }));
default:
return (_jsxs("svg", { viewBox: "0 0 20 20", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, "aria-label": label, role: "img", ...props, children: [_jsx("path", { d: "M12 7.5C12.5523 7.5 13 7.05228 13 6.5C13 5.94772 12.5523 5.5 12 5.5C11.4477 5.5 11 5.94772 11 6.5C11 7.05228 11.4477 7.5 12 7.5Z" }), _jsx("path", { d: "M15 10C15 10.5523 14.5523 11 14 11C13.4477 11 13 10.5523 13 10C13 9.44771 13.4477 9 14 9C14.5523 9 15 9.44771 15 10Z" }), _jsx("path", { d: "M8 7.5C8.55229 7.5 9 7.05228 9 6.5C9 5.94772 8.55229 5.5 8 5.5C7.44772 5.5 7 5.94772 7 6.5C7 7.05228 7.44772 7.5 8 7.5Z" }), _jsx("path", { d: "M7 10C7 10.5523 6.55228 11 6 11C5.44772 11 5 10.5523 5 10C5 9.44771 5.44772 9 6 9C6.55228 9 7 9.44771 7 10Z" }), _jsx("path", { d: "M8 14.5C8.55229 14.5 9 14.0523 9 13.5C9 12.9477 8.55229 12.5 8 12.5C7.44772 12.5 7 12.9477 7 13.5C7 14.0523 7.44772 14.5 8 14.5Z" }), _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 12.2091 16.2091 14 14 14C12.8954 14 12 14.8954 12 16C12 17.1046 11.1046 18 10 18C5.58172 18 2 14.4183 2 10ZM11 16C11 16.5523 10.5523 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 11.6569 15.6569 13 14 13C12.3431 13 11 14.3431 11 16Z" })] }));
}
};
IconPalette.iconName = "palette";
export default IconPalette;