UNPKG

@blueprintjs/icons

Version:

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

31 lines 5.18 kB
/* * 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 Construction = React.forwardRef((props, ref) => { const isLarge = props.size >= IconSize.LARGE; const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD; const translation = `${-1 * pixelGridSize / 0.05 / 2}`; const style = { transformOrigin: "center" }; return (React.createElement(SVGIconContainer, { iconName: "construction", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M120 380C131.0456 380 140 371.0456 140 360V320H260V360C260 371.0456 268.954 380 280 380C291.046 380 300 371.0456 300 360V320H340C340.254 320 340.51 320 340.766 320.0002C345.0800000000001 320.0018 349.826 320.0036 353.7700000000001 319.5652C357.804 319.117 365.436 317.8486000000001 371.642 311.6422C377.848 305.4358 379.116 297.8044 379.5660000000001 293.7714C380.004 289.826 380.002 285.0802 380 280.7668C380 280.5096 380 280.254 380 280.0002V160C380 159.746 380 159.49 380 159.232C380.002 154.92 380.004 150.174 379.5660000000001 146.228C379.116 142.196 377.848 134.564 371.642 128.358C365.436 122.152 357.804 120.882 353.7700000000001 120.434C349.826 119.996 345.0800000000001 119.998 340.768 120C340.51 120 340.254 120 340 120H300V40C300 28.954 291.046 20 280 20C268.954 20 260 28.954 260 40V120H140V40C140 28.954 131.0456 20 120 20C108.9542 20 100 28.954 100 40V120H59.9998C59.7458 120 59.4898 120 59.2324 120C54.9192 119.998 50.1736 119.996 46.2286 120.434C42.1956 120.882 34.5642 122.152 28.3576 128.358C22.1512 134.564 20.8828 142.196 20.4346 146.228C19.99626 150.174 19.998 154.92 19.99958 159.232C19.99968 159.49 19.99978 159.746 19.99978 160V280C19.99978 280.254 19.99968 280.5098 19.99958 280.7672C19.998 285.0804 19.99626 289.826 20.4346 293.7712C20.8828 297.8042 22.1512 305.4356 28.3576 311.6422C34.5642 317.8486000000001 42.1956 319.117 46.2286 319.5652C50.1738 320.0036 54.9194 320.0018 59.2326 320.0002C59.49 320 59.7458 320 59.9998 320H100V360C100 371.0456 108.9542 380 120 380zM119.986 280H84.037L164.037 160H215.962L135.963 280H120.014C120.0092 280 119.9906 280 119.986 280C119.9906 280 119.9814 280 119.986 280zM184.037 280L264.036 160H315.962L235.962 280H184.037zM284.036 280L340 196.056V280C340 280 340 280 340 280H284.036zM115.963 160L59.9998 243.9448V160H115.963z" : "M100.0008 320C111.0464 320 120.0008 311.0457 120.0008 300V260H200V300C200 311.0457 208.956 320 220 320C231.046 320 240 311.0457 240 300V260H280C280.254 260 280.51 260 280.768 260.0002C285.08 260.0018 289.826 260.0036 293.772 259.5652C297.804 259.117 305.4360000000001 257.8486000000001 311.642 251.6422C317.85 245.4356 319.118 237.8042 319.5660000000001 233.7712C320.004 229.826 320.002 225.0806 320 220.7672C320 220.5098 320 220.254 320 220V140C320 139.746 320 139.4902 320 139.2328C320.002 134.9194 320.004 130.174 319.5660000000001 126.2288C319.118 122.1958 317.85 114.564 311.642 108.358C305.4360000000001 102.152 297.804 100.882 293.772 100.434C289.826 99.996 285.08 99.998 280.768 100C280.51 100 280.254 100 280 100H240V20C240 8.954 231.046 0 220 0C208.956 0 200 8.954 200 20V100H120.0008V20C120.0008 8.954 111.0464 0 100.0008 0C88.955 0 80.0008 8.954 80.0008 20V100H40.0004C39.7464 100 39.4904 100 39.233 100C34.9198 99.998 30.1744 99.996 26.2292 100.434C22.1962 100.882 14.56478 102.152 8.35824 108.358C2.15172 114.564 0.883322 122.1958 0.435206 126.2288C-0.0031383 130.174 -0.001395456 134.9196 0.0001924108 139.2328C0.000287778 139.4902 0.000380762 139.746 0.000380762 140V220C0.000380762 220.254 0.000287778 220.5098 0.0001924108 220.7672C-0.001395456 225.0804 -0.0031383 229.826 0.435206 233.7712C0.883322 237.8042 2.15172 245.4356 8.35824 251.6422C14.56478 257.8486000000001 22.1962 259.117 26.2292 259.5652C30.1744 260.0036 34.92 260.0018 39.2332 260.0002C39.4906 260 39.7464 260 40.0004 260H80.0008V300C80.0008 311.0457 88.955 320 100.0008 320zM100.0008 220H82.3608L117.8886 148.9442L122.3608 140H157.6394L122.1116 211.0558L117.6394 220H100.0008zM162.3608 220L197.8886 148.9442L202.36 140H220H237.64L202.112 211.0558L197.6394 220H162.3608zM242.36 220L277.888 148.9442L280 144.7208V220H242.36zM77.6394 140L42.1116 211.0558L40.0004 215.2782V140H77.6394z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); Construction.defaultProps = { size: IconSize.STANDARD, }; Construction.displayName = `Blueprint5.Icon.Construction`; export default Construction; //# sourceMappingURL=construction.js.map