UNPKG

@blueprintjs/icons

Version:

Components, fonts, icons, and css files for creating and displaying icons.

35 lines 4.34 kB
"use strict"; /* * Copyright 2024 Palantir Technologies, Inc. All rights reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Bug = void 0; var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var iconTypes_1 = require("../../iconTypes"); var svgIconContainer_1 = require("../../svgIconContainer"); exports.Bug = React.forwardRef(function (props, ref) { var isLarge = props.size >= iconTypes_1.IconSize.LARGE; var pixelGridSize = isLarge ? iconTypes_1.IconSize.LARGE : iconTypes_1.IconSize.STANDARD; var translation = "".concat(-1 * pixelGridSize / 0.05 / 2); var style = { transformOrigin: "center" }; return (React.createElement(svgIconContainer_1.SVGIconContainer, tslib_1.__assign({ iconName: "bug", ref: ref }, props), React.createElement("path", { d: isLarge ? "M120.1256 314.5566C122.4704 357.2762 157.3348 400 200 400C242.666 400 277.53 357.2762 279.874 314.5566C289.688 305.7974 298.054 295.449 304.5660000000001 283.9156L340 299.6642V340C340 351.0456 348.954 360 360 360C371.046 360 380 351.0456 380 340V286.6666C380 278.7628 375.346 271.6004000000001 368.122 268.3904L318.1380000000001 246.1748C319.362 239.3012 320 232.2252 320 225V200H380C391.046 200 400 191.046 400 180C400 168.954 391.046 160 380 160H320V150C320 137.922 318.216 126.26 314.896 115.266L368.122 91.61C375.346 88.4 380 81.238 380 73.334V20C380 8.954 371.046 0 360 0C348.954 0 340 8.954 340 20V60.336L297.06 79.42C275.24 49.468 239.894 30 200 30C160.1062 30 124.7592 49.468 102.9404 79.42L60 60.336V20C60 8.954 51.0456 0 40 0C28.9544 0 20 8.954 20 20V73.334C20 81.238 24.6546 88.4 31.8772 91.61L85.1038 115.266C81.7844 126.26 80 137.922 80 150V160H20C8.9543 160 0 168.954 0 180C0 191.046 8.9543 200 20 200H80V225C80 232.2252 80.6386 239.3012 81.8622 246.1748L31.8772 268.3904C24.6546 271.6004000000001 20 278.7628 20 286.6666V340C20 351.0456 28.9544 360 40 360C51.0456 360 60 351.0456 60 340V299.6642L95.4342 283.9156C101.9464 295.449 110.3116 305.7974 120.1256 314.5566zM120 180V150C120 105.818 155.8172 70 200 70C244.182 70 280 105.818 280 150V180V225C280 269.1828 244.182 305 200 305C155.8172 305 120 269.1828 120 225V180z" : "M100 260.0074C100.004 293.141 126.8654 320 160 320C193.1346 320 219.996 293.141 220 260.0072C231.794 251.149 241.564 239.744 248.496 226.609L260 232.3606V260C260 271.0456 268.954 280 280 280C291.046 280 300 271.0456 300 260V220C300 212.4246 295.72 205.4992 288.944 202.1114L259.722 187.5008C259.906 185.0246 260 182.5232 260 180V160H300C311.046 160 320 151.0458 320 140C320 128.9542 311.046 120 300 120H260C260 109.996 258.5320000000001 100.336 255.798 91.222L287.428 78.57C295.02 75.532 300 68.178 300 60V20C300 8.954 291.046 0 280 0C268.954 0 260 8.954 260 20V46.46L236.668 55.792C218.324 33.912 190.7864 20 160 20C129.2136 20 101.6766 33.912 83.3328 55.792L60 46.46V20C60 8.954 51.0456 0 40 0C28.9544 0 20 8.954 20 20V60C20 68.178 24.979 75.532 32.5722 78.57L64.203 91.222C61.469 100.336 60 109.996 60 120H20C8.9543 120 0 128.9542 0 140C0 151.0458 8.9543 160 20 160H60V180C60 182.5232 60.0934 185.0246 60.277 187.5008L31.0558 202.1114C24.28 205.4992 20 212.4246 20 220V260C20 271.0456 28.9544 280 40 280C51.0456 280 60 271.0456 60 260V232.3606L71.5034 226.609C78.4358 239.7442 88.2068 251.149 100 260.0074zM100 140V120C100 86.862 126.863 60 160 60C193.137 60 220 86.862 220 120V140V180C220 213.137 193.137 240 160 240C126.863 240 100 213.137 100 180V140z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style }))); }); exports.Bug.defaultProps = { size: iconTypes_1.IconSize.STANDARD, }; exports.Bug.displayName = "Blueprint5.Icon.Bug"; exports.default = exports.Bug; //# sourceMappingURL=bug.js.map