UNPKG

@blueprintjs/icons

Version:

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

35 lines 5.42 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.Truck = 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.Truck = 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: "truck", ref: ref }, props), React.createElement("path", { d: isLarge ? "M320 400C331.0456940000001 400 340 391.045695 340 380L340 160C351.0456940000001 160 360 151.045694 360 140L360 80L370 80C375.522848 80 380 75.522848 380 70L380 50C380 44.477152 375.522848 40 370 40L340 40L340 20C340 8.954306 331.0456940000001 0 320 0L300 0C288.9543060000001 0 280 8.954306 280 20L280 40L120 40L120 20C120 8.954306 111.045695 0 100 0L80 0C68.954305 0 60 8.954306 60 20L60 40L30 40C24.4771526 40 20 44.477152 20 50L20 70C20 75.522848 24.4771526 80 30 80L40 80L40 140C40 151.045694 48.954305 160 60 160L60 380C60 391.045695 68.954305 400 80 400C91.045695 400 100 391.045695 100 380L100 320C100 342.09139 117.90861 360 140 360L260 360C282.09139 360 300 342.09139 300 320L300 380C300 391.045695 308.9543060000001 400 320 400zM240 200L160 200C148.954305 200 140 191.045694 140 180L140 180L140 100C140 88.954306 148.954305 80 160 80L160 80L240 80C251.045694 80 260 88.954306 260 100L260 100L260 180C260 191.045694 251.045694 200 240 200L240 200zM100 120L80 120C68.954305 120 60 111.045694 60 100C60 88.954306 68.954305 80 80 80L80 80L100 80C111.045695 80 120 88.954306 120 100C120 111.045694 111.045695 120 100 120L100 120zM320 120L300 120C288.9543060000001 120 280 111.045694 280 100C280 88.954306 288.9543060000001 80 300 80L300 80L320 80C331.0456940000001 80 340 88.954306 340 100C340 111.045694 331.0456940000001 120 320 120L320 120zM230 120C235.522848 120 240 115.522848 240 110C240 104.477152 235.522848 100 230 100L230 100L170 100L168.2024874 100.161114C163.5375032 101.007832 160 105.090802 160 110C160 115.522848 164.4771526 120 170 120L170 120zM230 150C235.522848 150 240 145.522848 240 140C240 134.477152 235.522848 130 230 130L230 130L170 130L168.2024874 130.161114C163.5375032 131.007832 160 135.090802 160 140C160 145.522848 164.4771526 150 170 150L170 150zM230 180C235.522848 180 240 175.522848 240 170C240 164.477152 235.522848 160 230 160L230 160L170 160L168.2024874 160.161114C163.5375032 161.007832 160 165.090802 160 170C160 175.522848 164.4771526 180 170 180L170 180zM280 300L120 300L120 240L280 240L280 300z" : "M250 320C255.522848 320 260 315.5228475 260 310L260 140C271.045694 140 280 131.045695 280 120L280 80L290 80C295.522848 80 300 75.522848 300 70L300 50C300 44.477152 295.522848 40 290 40L260 40L260 20C260 8.954306 251.045694 0 240 0C228.954306 0 220 8.954306 220 20L220 40L100 40L100 20C100 8.954306 91.045695 0 80 0C68.954305 0 60 8.954306 60 20L60 40L30 40C24.4771526 40 20 44.477152 20 50L20 70C20 75.522848 24.4771526 80 30 80L40 80L40 120C40 131.045695 48.954305 140 60 140L60 310C60 315.5228475 64.4771526 320 70 320C75.5228474 320 80 315.5228475 80 310L80 260C80 282.09139 97.90861 300 120 300L200 300C222.09139 300 240 282.09139 240 260L240 310C240 315.5228475 244.477152 320 250 320zM180 160L140 160C128.954305 160 120 151.045695 120 140L120 140L120 100C120 88.954306 128.954305 80 140 80L140 80L180 80C191.045695 80 200 88.954306 200 100L200 100L200 140C200 151.045695 191.045695 160 180 160L180 160zM250 100L230 100C224.477152 100 220 95.522848 220 90C220 84.477152 224.477152 80 230 80L230 80L250 80C255.522848 80 260 84.477152 260 90C260 95.522848 255.522848 100 250 100L250 100zM90 100L70 100C64.4771526 100 60 95.522848 60 90C60 84.477152 64.4771526 80 70 80L70 80L90 80C95.5228474 80 100 84.477152 100 90C100 95.522848 95.5228474 100 90 100L90 100zM180 140C185.5228474 140 190 135.5228474 190 130L190 130L190 110L189.8388866 108.202488C188.9921674 103.537504 184.9091978 100 180 100L180 100L140 100L138.2024874 100.161114C133.5375032 101.007832 130 105.090802 130 110L130 110L130 130L130.1611134 131.7975126C131.0078326 136.4624968 135.0908022 140 140 140L140 140zM220 240L100 240L100 200L220 200L220 240z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style }))); }); exports.Truck.defaultProps = { size: iconTypes_1.IconSize.STANDARD, }; exports.Truck.displayName = "Blueprint5.Icon.Truck"; exports.default = exports.Truck; //# sourceMappingURL=truck.js.map