@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
28 lines • 2.95 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/*
* 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.
*/
import * as React from "react";
import { IconSize } from "../../iconTypes";
import { SVGIconContainer } from "../../svgIconContainer";
export const Truck = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
const style = { transformOrigin: "center" };
return (_jsx(SVGIconContainer, { iconName: "truck", ref: ref, ...props, children: _jsx("path", { d: isLarge ? "M320 400A20 20 0 0 0 340 380V160A20 20 0 0 0 360 140V80H370A10 10 0 0 0 380 70V50A10 10 0 0 0 370 40H340V20A20 20 0 0 0 320 0H300A20 20 0 0 0 280 20V40H120V20A20 20 0 0 0 100 0H80A20 20 0 0 0 60 20V40H30A10 10 0 0 0 20 50V70A10 10 0 0 0 30 80H40V140A20 20 0 0 0 60 160V380A20 20 0 1 0 100 380V320A40 40 0 0 0 140 360H260A40 40 0 0 0 300 320V380A20 20 0 0 0 320 400M240 200H160A20 20 0 0 1 140 180V100A20 20 0 0 1 160 80H240A20 20 0 0 1 260 100V180A20 20 0 0 1 240 200M100 120H80A20 20 0 0 1 80 80H100A20 20 0 0 1 100 120M320 120H300A20 20 0 0 1 300 80H320A20 20 0 0 1 320 120M230 120A10 10 0 1 0 230 100H170L168.2 100.16A10 10 0 0 0 170 120zM230 150A10 10 0 1 0 230 130H170L168.2 130.16A10 10 0 0 0 170 150zM230 180A10 10 0 1 0 230 160H170L168.2 160.16A10 10 0 0 0 170 180zM280 300H120V240H280z" : "M250 320A10 10 0 0 0 260 310V140A20 20 0 0 0 280 120V80H290A10 10 0 0 0 300 70V50A10 10 0 0 0 290 40H260V20A20 20 0 0 0 220 20V40H100V20A20 20 0 0 0 60 20V40H30A10 10 0 0 0 20 50V70A10 10 0 0 0 30 80H40V120A20 20 0 0 0 60 140V310A10 10 0 0 0 80 310V260A40 40 0 0 0 120 300H200A40 40 0 0 0 240 260V310A10 10 0 0 0 250 320M180 160H140A20 20 0 0 1 120 140V100A20 20 0 0 1 140 80H180A20 20 0 0 1 200 100V140A20 20 0 0 1 180 160M250 100H230A10 10 0 1 1 230 80H250A10 10 0 1 1 250 100M90 100H70A10 10 0 1 1 70 80H90A10 10 0 1 1 90 100M180 140A10 10 0 0 0 190 130V110L189.84 108.2A10 10 0 0 0 180 100H140L138.2 100.16A10 10 0 0 0 130 110V130L130.16 131.8A10 10 0 0 0 140 140zM220 240H100V200H220z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) }));
});
Truck.displayName = `Blueprint6.Icon.Truck`;
export default Truck;
//# sourceMappingURL=truck.js.map