UNPKG

@blueprintjs/icons

Version:

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

28 lines 2.27 kB
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 Descendant = 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: "descendant", ref: ref, ...props, children: _jsx("path", { d: isLarge ? "M60 120A20 20 0 0 0 40 140V380A20 20 0 0 1 0 380V140A60 60 0 0 1 60 80H117.44L71.58 34.14A20 20 0 1 1 99.86 5.86L184.16 90.16Q186.98 93 188.56 96.48V22A22 22 0 0 1 210.56 0H378A22 22 0 0 1 400 22V189.4200000000001A22 22 0 0 1 378 211.42H210.58A22 22 0 0 1 188.58 189.4200000000001V114.96A22 22 0 0 1 184.16 121.28L99.86 205.56A20 20 0 1 1 71.58 177.26L128.86 120zM228.58 40V171.42H360V40.02z" : "M182 160A22 22 0 0 1 160 138V80.04A20 20 0 0 1 153.44 94.82L152.72 95.5600000000001L94.14 154.16A20 20 0 0 1 65.86 125.8600000000001L91.72 100H60A20 20 0 0 0 40 120V300A20 20 0 1 1 0 300V120A60 60 0 0 1 60 60H91.72L65.86 34.14A20 20 0 1 1 94.14 5.86L152.74 64.46L153.44 65.18A20 20 0 0 1 160 79.96V22A22 22 0 0 1 182 0H298A22 22 0 0 1 320 22V138A22 22 0 0 1 298 160zM280 40H200V120H280z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) })); }); Descendant.displayName = `Blueprint6.Icon.Descendant`; export default Descendant; //# sourceMappingURL=descendant.js.map