@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
30 lines • 2.61 kB
JavaScript
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 = ["M14 3a1 1 0 1 0-2 0 1 1 0 0 0 2 0m-3.726 1.254c-.629.232-1.132.634-1.293 1.442C8.765 6.772 8.216 7.506 7.568 8c.648.493 1.197 1.228 1.413 2.304.161.808.664 1.21 1.293 1.442a3 3 0 1 1-.17 2.039 5 5 0 0 1-.51-.158c-1.076-.394-2.237-1.242-2.575-2.93-.161-.809-.664-1.211-1.293-1.443a3 3 0 1 1 0-2.508c.629-.232 1.132-.634 1.293-1.442.338-1.69 1.499-2.537 2.575-2.93q.256-.094.51-.159A3.001 3.001 0 0 1 16 3a3 3 0 0 1-5.726 1.254M13 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2M4 8a1 1 0 1 0-2 0 1 1 0 0 0 2 0"];
/** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */
const PATHS_20 = ["M18 3a1 1 0 1 0-2 0 1 1 0 0 0 2 0m-3.82 1.028a6.2 6.2 0 0 0-1.667.347c-.947.352-1.773 1-2.032 2.318C10.158 8.337 9.247 9.368 8.217 10c1.03.632 1.941 1.663 2.264 3.307.259 1.318 1.085 1.966 2.032 2.318.581.217 1.18.308 1.668.347a3.001 3.001 0 1 1-.019 2.004c-.633-.042-1.491-.158-2.347-.476-1.402-.523-2.868-1.625-3.296-3.807-.259-1.318-1.085-1.966-2.032-2.318a5 5 0 0 0-.722-.21 3 3 0 1 1 0-2.33q.36-.075.722-.21c.947-.352 1.773-1 2.032-2.318.428-2.182 1.894-3.284 3.296-3.807.856-.318 1.714-.434 2.347-.476a3.001 3.001 0 1 1 .018 2.004M4 10a1 1 0 1 0 0 .002zm13 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2"];
export const OneToMany = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const paths = isLarge ? PATHS_20 : PATHS_16;
return (_jsx(SVGIconContainer, { iconName: "one-to-many", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) }));
});
OneToMany.displayName = `Blueprint6.Icon.OneToMany`;
export default OneToMany;
//# sourceMappingURL=one-to-many.js.map