UNPKG

@blueprintjs/icons

Version:

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

30 lines 2.6 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"; /** Path data for the 16px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */ const PATHS_16 = ["M2.1 9.101a4 4 0 0 0-1.828.974A8 8 0 0 1 10.075.272 4 4 0 0 0 9.1 2.1a6 6 0 0 0-7 7M14 8a6 6 0 0 0-.1-1.101 4 4 0 0 0 1.828-.974 8 8 0 0 1-9.803 9.803A4 4 0 0 0 6.9 13.9q.535.1 1.1.1a6 6 0 0 0 6-6M8 3a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0V4a1 1 0 0 0-1-1m1 5a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1M3 8a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2H4a1 1 0 0 1-1-1m4 2a1 1 0 0 1 2 0v2a1 1 0 0 1-2 0zm-2 3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m8-8a2 2 0 1 0 0-4 2 2 0 0 0 0 4"]; /** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */ const PATHS_20 = ["M2.296 12.163a4.5 4.5 0 0 0-1.792.98A10 10 0 0 1 0 10C0 4.477 4.477 0 10 0a10 10 0 0 1 3.143.504 4.5 4.5 0 0 0-.98 1.792 8 8 0 0 0-9.867 9.867M18 10c0-.75-.103-1.475-.296-2.163a4.5 4.5 0 0 0 1.792-.98c.327.99.504 2.046.504 3.143 0 5.523-4.477 10-10 10a10 10 0 0 1-3.142-.504 4.5 4.5 0 0 0 .98-1.792A8 8 0 0 0 18 10m1-6.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0m-13 13a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0M10 4a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1m1 6a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2h-3a1 1 0 0 1-1-1m-7 0a1 1 0 0 1 1-1h3a1 1 0 0 1 0 2H5a1 1 0 0 1-1-1m5 2a1 1 0 0 1 2 0v3a1 1 0 0 1-2 0z"]; export const AimpointsTarget = React.forwardRef((props, ref) => { const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE; const paths = isLarge ? PATHS_20 : PATHS_16; return (_jsx(SVGIconContainer, { iconName: "aimpoints-target", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) })); }); AimpointsTarget.displayName = `Blueprint6.Icon.AimpointsTarget`; export default AimpointsTarget; //# sourceMappingURL=aimpoints-target.js.map