UNPKG

@blueprintjs/icons

Version:

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

35 lines 4.35 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.Locomotive = 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.Locomotive = 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: "locomotive", ref: ref }, props), React.createElement("path", { d: isLarge ? "M199.7658 360H39.974C28.9426 360 20 351.0456 20 340V80H54.8084C58.0338 80 61.0772 81.62 63.0336 84.186C109.5386 145.222 155.508 112.944 176.7218 84.362C178.7136 81.678 181.7976 80 185.1366 80H194.8814C197.9632 80 200.9 81.488 202.856 83.872C254.372 146.724 298.11 113.702 316.592 85.034C318.558 81.984 321.86 80 325.486 80H375.394C384.2920000000001 80 388.748 90.772 382.456 97.072L359.5580000000001 120C429.466 180 399.5060000000001 233.3334 339.584 260V300L362.482 322.929C368.774 329.2286000000001 364.3180000000001 340 355.42 340H283.798C274.9020000000001 340 270.446 329.2286000000001 276.736 322.929L299.636 300V260H219.74V340C219.74 351.0456 210.798 360 199.7658 360zM59.948 320H119.8698V220H59.948V320zM179.7918 320H139.8438V220H179.7918V320zM119.8698 20C141.9324 20 159.8178 37.908 159.8178 60C159.8178 82.092 141.9324 100 119.8698 100C97.8072 100 79.9218 82.092 79.9218 60C79.9218 37.908 97.8072 20 119.8698 20zM119.8698 40C130.9012 40 139.8438 48.954 139.8438 60C139.8438 71.046 130.9012 80 119.8698 80C108.8386 80 99.8958 71.046 99.8958 60C99.8958 48.954 108.8386 40 119.8698 40zM259.688 20C281.75 20 299.636 37.908 299.636 60C299.636 82.092 281.75 100 259.688 100C237.626 100 219.74 82.092 219.74 60C219.74 37.908 237.626 20 259.688 20zM259.688 40C270.72 40 279.6620000000001 48.954 279.6620000000001 60C279.6620000000001 71.046 270.72 80 259.688 80C248.656 80 239.714 71.046 239.714 60C239.714 48.954 248.656 40 259.688 40z" : "M0 280V40H34.116C37.7476 40 41.0936 42.024 42.9716 45.132C79.9116 106.266 119.0458 73.522 137.0038 45.052C138.9414 41.98 142.2524 40 145.884 40H154.116C157.7476 40 161.0936 42.024 162.9716 45.132C199.9116 106.266 239.046 73.522 257.004 45.052C258.942 41.98 262.252 40 265.884 40H285.514C290.86 40 293.538 46.462 289.758 50.242L260 80C348 128 296.666 180 260 200V240L282.928 262.929C289.228 269.2286000000001 284.766 280 275.858 280H204.142C195.233 280 190.7714 269.2286000000001 197.071 262.929L220 240V200H160V280C160 291.0456 151.0456 300 140 300H20C8.9543 300 0 291.0456 0 280zM20 180H80V280H20V180zM140 180H100V280H140V180zM90 0C106.5686 0 120 13.432 120 30C120 46.568 106.5686 60 90 60C73.4314 60 60 46.568 60 30C60 13.432 73.4314 0 90 0zM90 20C95.5228 20 100 24.478 100 30C100 35.522 95.5228 40 90 40C84.4772 40 80 35.522 80 30C80 24.478 84.4772 20 90 20zM210 0C226.568 0 240 13.432 240 30C240 46.568 226.568 60 210 60C193.4314 60 180 46.568 180 30C180 13.432 193.4314 0 210 0zM210 20C215.522 20 220 24.478 220 30C220 35.522 215.522 40 210 40C204.478 40 200 35.522 200 30C200 24.478 204.478 20 210 20z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style }))); }); exports.Locomotive.defaultProps = { size: iconTypes_1.IconSize.STANDARD, }; exports.Locomotive.displayName = "Blueprint5.Icon.Locomotive"; exports.default = exports.Locomotive; //# sourceMappingURL=locomotive.js.map