UNPKG

@blueprintjs/icons

Version:

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

31 lines 2.31 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 Yen = 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 (_jsx(SVGIconContainer, { iconName: "yen", ref: ref, ...props, children: _jsx("path", { d: isLarge ? "M200 229.0808L280 359.9988H340L242.226 199.998H300C311.046 199.998 320 191.044 320 179.998C320 168.954 311.046 159.998 300 159.998H230V139.998H300C311.046 139.998 320 131.044 320 119.998C320 108.954 311.046 99.998 300 99.998H230V19.998H170V99.998H100C88.9544 99.998 80 108.954 80 119.998C80 131.044 88.9544 139.998 100 139.998H170V159.998H100C88.9544 159.998 80 168.954 80 179.998C80 191.044 88.9544 199.998 100 199.998H157.7734L60 359.9988H120L200 229.0808z" : "M160 171.6602L220 280H260L191.4258 160H220C231.046 160 240 151.0456 240 140C240 128.9544 231.046 120 220 120H180V100H220C231.046 100 240 91.046 240 80C240 68.954 231.046 60 220 60H180V20H140V60H100C88.9544 60 80 68.954 80 80C80 91.046 88.9544 100 100 100H140V120H100C88.9544 120 80 128.9544 80 140C80 151.0456 88.9544 160 100 160H128.5742L60 280H100L160 171.6602z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) })); }); Yen.defaultProps = { size: IconSize.STANDARD, }; Yen.displayName = `Blueprint6.Icon.Yen`; export default Yen; //# sourceMappingURL=yen.js.map