UNPKG

@blueprintjs/icons

Version:

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

31 lines 4 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 CubeAdd = 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: "cube-add", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M340 340L380 340C391.0456940000001 340 400 331.045695 400 320C400 308.954305 391.0456940000001 300 380 300L340 300L340 260C340 248.954305 331.0456940000001 240 320 240C308.9543060000001 240 300 248.954305 300 260L300 300L260 300C248.954306 300 240 308.954305 240 320C240 331.045695 248.954306 340 260 340L300 340L300 380C300 391.045695 308.9543060000001 400 320 400C331.0456940000001 400 340 391.045695 340 380L340 340zM260.6251900000001 251.306629L200 215.6051288L39.0633182 310.3789524L187.2421416 390.78281158C195.147553 395.07239614 204.852446 395.07239614 212.757858 390.78281158L239.351824 376.3525618C216.38718 367.9356178 200 345.8815244 200 320C200 286.862915 226.862916 260 260 260C260 257.0475482 260.21325 254.1449036 260.6251900000001 251.306629zM266.999778 231.8502962C277.085288 212.9008086 297.03607 200 320 200C353.137084 200 380 226.862915 380 260L380 118.864096C380 110.101668 375.0555020000001 102.01105 367.043572 97.663668L212.757858 13.9461260000001C211.860026 13.45895 210.938982 13.027104 210 12.650586L210 198.28376L266.999778 231.8502962zM22.7192898 296.7935118L190 198.28376L190 12.650586C189.0610178 13.027104 188.1399744 13.45895 187.2421416 13.9461260000001L32.9564272 97.663668C24.9444988 102.01105 20 110.101668 20 118.864096L20 285.8648418C20 289.7257424 20.9599542 293.4562136 22.7192898 296.7935118z" : "M280 280L300 280C311.045694 280 320 271.045695 320 260C320 248.954305 311.045694 240 300 240L280 240L280 220C280 208.954305 271.045694 200 260 200C248.954306 200 240 208.954305 240 220L240 240L220 240C208.954306 240 200 248.954305 200 260C200 271.045695 208.954306 280 220 280L240 280L240 300C240 311.045695 248.954306 320 260 320C271.045694 320 280 311.045695 280 300L280 280zM182.7209844 307.01658036C168.8774658 296.0254388 160 279.049441 160 260C160 232.924642 177.9338258 210.0379536 202.570706 202.570706C202.923532 201.4066184 203.310782 200.2574954 203.731274 199.124522L160 171.7924764L36.125055 249.214317L150.0772212 314.3298407C156.2258746 317.84335692 163.7741254 317.84335692 169.9227788 314.3298407L182.7209844 307.01658036zM300 175.2778698L300 91.60645C300 84.429314 296.154278 77.802444 289.922778 74.241588L170 5.714286L170 154.4575236L213.7358 181.792399C224.740976 168.4817372 241.37998 160 260 160C275.367088 160 289.38487 165.7770714 300 175.2778698zM21.1240402 235.0049984L150 154.4575236L150 5.714286L30.0772212 74.241588C23.8457212 77.802444 20 84.429314 20 91.60645L20 228.3935492C20 230.680355 20.3904216 232.911297 21.1240402 235.0049984z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); CubeAdd.defaultProps = { size: IconSize.STANDARD, }; CubeAdd.displayName = `Blueprint5.Icon.CubeAdd`; export default CubeAdd; //# sourceMappingURL=cube-add.js.map