UNPKG

@blueprintjs/icons

Version:

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

31 lines 3.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 DocumentCode = 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: "document-code", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M60 400H220L340 280V184.83C329.246 194.416 315.134 200 300 200V260H200V360H80V40H135.17C135.9272 39.15 136.7094 38.322 137.5158 37.516L175.0314 0H60C49 0 40 9 40 20V380C40 391 49 400 60 400zM240 160C251 160 260 151 260 140C260 134.4 257.8 129.4 254 125.8L208.2 80L254.2 34.2C257.8 30.6 260 25.6 260 20C260 9 251 0 240 0C234.4 0 229.4 2.2 225.8 5.8L165.8 65.8C162.2 69.4 160 74.4 160 80C160 85.6 162.2 90.6 165.8 94.2000000000001L225.8 154.2C229.4 157.8 234.4 160 240 160zM314.2000000000001 154.2L374.2000000000001 94.2000000000001C377.8 90.6 380 85.6 380 80C380 74.4 377.8 69.4 374.2000000000001 65.8L314.2000000000001 5.8C310.6 2.2 305.6 0 300 0C289 0 280 9 280 20C280 25.6 282.2 30.6 286 34.2L331.8 80L285.8 125.8C282.2 129.4 280 134.4 280 140C280 151 289 160 300 160C305.6 160 310.6 157.8 314.2000000000001 154.2z" : "M200 320H60C49 320 40 311 40 300V20C40 9 49 0 60 0H115.0314L97.5158 17.516L95.9434 19.082C89.8946 25.09 82.731 32.204 80 40V280H180V220H240V156.5746C246.258 158.7926 252.99 160 260 160C266.958 160 273.7 158.8196 280 156.6126V240L200 320zM314.2000000000001 45.8L274.2000000000001 5.8C270.6 2.2 265.6 0 260 0C249 0 240 9 240 20C240 25.6 242.2 30.6 245.8 34.2L271.8 60L245.8 85.8C242.2 89.4 240 94.4 240 100C240 111 249 120 260 120C265.6 120 270.6 117.8 274.2000000000001 114.2L314.2000000000001 74.2C317.8 70.6 320 65.6 320 60C320 54.4 317.8 49.4 314.2000000000001 45.8zM200 20C200 25.6 197.8 30.6 194.2 34.2L168.2 60L194.2 85.8C197.8 89.4 200 94.4 200 100C200 111 191 120 180 120C174.4 120 169.4 117.8 165.8 114.2L125.8 74.2C122.2 70.6 120 65.6 120 60C120 54.4 122.2 49.4 125.8 45.8L165.8 5.8C169.4 2.2 174.4 0 180 0C191 0 200 9 200 20z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); DocumentCode.defaultProps = { size: IconSize.STANDARD, }; DocumentCode.displayName = `Blueprint5.Icon.DocumentCode`; export default DocumentCode; //# sourceMappingURL=document-code.js.map