UNPKG

@blueprintjs/icons

Version:

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

30 lines 3.1 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 = ["M11 1C9.34 1 8 2.34 8 4c0 1.25.76 2.32 1.85 2.77A2.02 2.02 0 0 1 8 8H6c-.73 0-1.41.2-2 .55V5.82C5.16 5.4 6 4.3 6 3c0-1.66-1.34-3-3-3S0 1.34 0 3c0 1.3.84 2.4 2 2.82v4.37c-1.16.4-2 1.51-2 2.81 0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.04-.53-1.95-1.32-2.49.35-.31.81-.51 1.32-.51h2c1.92 0 3.52-1.35 3.91-3.15A2.996 2.996 0 0 0 11 1M3 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m8-9c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m2.5 8a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5H12v-1c0-.636.243-1.15.637-1.499A2.05 2.05 0 0 1 14 10c.481 0 .98.16 1.363.501.394.35.637.863.637 1.499a.5.5 0 0 1-1 0c0-.364-.132-.6-.3-.751A1.06 1.06 0 0 0 14 11c-.268 0-.52.09-.7.249-.168.15-.3.387-.3.751v1z"]; /** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */ const PATHS_20 = ["M15 2c-1.66 0-3 1.34-3 3 0 1.3.84 2.4 2 2.82V9c0 1.1-.9 2-2 2H8c-.73 0-1.41.21-2 .55V5.82C7.16 5.4 8 4.3 8 3c0-1.66-1.34-3-3-3S2 1.34 2 3c0 1.3.84 2.4 2 2.82v8.37C2.84 14.6 2 15.7 2 17c0 1.66 1.34 3 3 3s3-1.34 3-3c0-1.25-.77-2.3-1.85-2.75C6.45 13.52 7.16 13 8 13h4c2.21 0 4-1.79 4-4V7.82C17.16 7.4 18 6.3 18 5c0-1.66-1.34-3-3-3M5 2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0 16c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1M15 6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m2.5 10a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5H16v-1c0-.636.244-1.15.637-1.499A2.05 2.05 0 0 1 18 13c.481 0 .98.16 1.363.501.393.35.637.863.637 1.499a.5.5 0 0 1-1 0c0-.364-.132-.6-.3-.751A1.06 1.06 0 0 0 18 14c-.268 0-.52.09-.7.249-.168.15-.3.387-.3.751v1z"]; export const BranchUnlocked = React.forwardRef((props, ref) => { const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE; const paths = isLarge ? PATHS_20 : PATHS_16; return (_jsx(SVGIconContainer, { iconName: "branch-unlocked", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) })); }); BranchUnlocked.displayName = `Blueprint6.Icon.BranchUnlocked`; export default BranchUnlocked; //# sourceMappingURL=branch-unlocked.js.map