@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
30 lines • 2.18 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 = ["M13.5 2a.5.5 0 0 1 .5.5V3h1v4a1 1 0 1 1 0 2v4h-1v.5a.5.5 0 0 1-1 0V10l-1.79-.895A1 1 0 0 0 10.765 9H10a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1h-.764c-.155 0-.308.036-.447.105L3 10v3.5a.5.5 0 0 1-1 0V13H1V9a1 1 0 0 1 0-2V3h1v-.5a.5.5 0 0 1 1 0V6l1.79.895A1 1 0 0 0 5.236 7H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h.764a1 1 0 0 0 .447-.105L13 6V2.5a.5.5 0 0 1 .5-.5"];
/** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */
const PATHS_20 = ["M2 15h2v.5a.5.5 0 0 0 1 0v-11a.5.5 0 0 0-1 0V5H2zM18 5h-2v-.5a.5.5 0 0 0-1 0v11a.5.5 0 0 0 1 0V15h2zM5 8l1.789.894A1 1 0 0 0 7.236 9h5.528a1 1 0 0 0 .447-.106L15 8v4l-1.789-.894a1 1 0 0 0-.447-.106H7.236a1 1 0 0 0-.447.106L5 12zM0 9h2v2H0zm0-1h1v4H0zm19 0h1v4h-1zm1 3h-2V9h2zM8 9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1z"];
export const Axle = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const paths = isLarge ? PATHS_20 : PATHS_16;
return (_jsx(SVGIconContainer, { iconName: "axle", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) }));
});
Axle.displayName = `Blueprint6.Icon.Axle`;
export default Axle;
//# sourceMappingURL=axle.js.map