UNPKG

@blueprintjs/icons

Version:

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

30 lines 2.07 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 = ["M6 12C4.397 7.46 4.415 4.465 8 0c3.585 4.485 3.602 7.48 2 12zm3-7a1 1 0 1 0-2 0 1 1 0 0 0 2 0m-7 8.022L3 9l1-1c.076 1.317.635 2.954.946 3.864l.054.158zm9-1 .054-.158c.31-.91.87-2.547.946-3.864l1 1 1 4.022zM7 13h2c0 1.5-.5 2.5-1 3-.5-.5-1-1.5-1-3"]; /** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */ const PATHS_20 = ["M7 7.5c0-3 1.857-6.25 3-7.5 1.143 1.25 3 4.5 3 7.5s-.714 6.25-1 7.5H8c-.286-1.25-1-4.5-1-7.5m6.84 2.5c-.139 1.62-.47 3.405-.84 5.01l4 .99-1-4zm-4.832 6q-.01.21-.008.429C9 17.143 9 17.5 10 20c1-2.5 1-2.857 1-3.571q.002-.219-.008-.429zM7 15.011c-.37-1.605-.701-3.39-.84-5.011L4 12l-1 4zM10 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2"]; export const Rocket = React.forwardRef((props, ref) => { const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE; const paths = isLarge ? PATHS_20 : PATHS_16; return (_jsx(SVGIconContainer, { iconName: "rocket", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) })); }); Rocket.displayName = `Blueprint6.Icon.Rocket`; export default Rocket; //# sourceMappingURL=rocket.js.map