UNPKG

@blueprintjs/icons

Version:

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

30 lines 2.5 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 = ["M13 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6M3 9a3 3 0 1 1 0 6 3 3 0 0 1 0-6m6.169-5.27.087.09 1.51 1.746 1.589.549a1 1 0 0 1 .65 1.16l-.032.112a1 1 0 0 1-1.159.65l-.112-.032-1.843-.636a1 1 0 0 1-.337-.198l-.092-.093-.959-1.109L7.041 7.5l1.691 1.819a1 1 0 0 1 .26.556L9 10v3a1 1 0 0 1-1.993.117L7 13l-.001-2.608-2.056-2.211a1 1 0 0 1-.081-1.264l.082-.1 2.825-3.026a1 1 0 0 1 1.4-.061M13 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-10 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M11 1a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"]; /** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */ const PATHS_20 = ["M16 10a4 4 0 1 1 0 8 4 4 0 0 1 0-8M4 10a4 4 0 1 1 0 8 4 4 0 0 1 0-8m7.299-5.543.087.089 1.93 2.232 2.048.708a1 1 0 0 1 .65 1.16l-.031.112a1 1 0 0 1-1.16.65l-.112-.031-2.302-.796a1 1 0 0 1-.337-.197l-.092-.094-1.387-1.603-1.891 1.982 2.046 2.274a1 1 0 0 1 .25.547l.007.122v4.24a1 1 0 0 1-1.993.117l-.007-.117-.001-3.857-2.408-2.676a1 1 0 0 1-.063-1.26l.082-.099 3.29-3.45a1 1 0 0 1 1.394-.053M16 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4M4 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4m9.5-10a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3"]; export const Cycle = React.forwardRef((props, ref) => { const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE; const paths = isLarge ? PATHS_20 : PATHS_16; return (_jsx(SVGIconContainer, { iconName: "cycle", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) })); }); Cycle.displayName = `Blueprint6.Icon.Cycle`; export default Cycle; //# sourceMappingURL=cycle.js.map