@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
30 lines • 3.06 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 = ["M1 5.326q.411 0 .8-.069.388-.069.697-.228a1.7 1.7 0 0 0 .537-.412q.23-.25.297-.617h1.063v8H2.966V6.354H1zM12.172 4.01q.825 0 1.342.385.528.375.814.968.297.583.396 1.287.11.704.11 1.364t-.11 1.364q-.099.704-.396 1.298-.285.583-.814.968-.517.375-1.342.374-.825 0-1.353-.374a2.74 2.74 0 0 1-.814-.968 4.6 4.6 0 0 1-.396-1.298 10 10 0 0 1-.099-1.364q0-.66.099-1.364.11-.704.396-1.287.297-.594.814-.968.528-.385 1.353-.385m0 6.963q.407 0 .682-.231.274-.242.429-.638.165-.407.231-.946t.066-1.144-.066-1.133a3.7 3.7 0 0 0-.231-.946 1.5 1.5 0 0 0-.429-.638 1 1 0 0 0-.682-.242q-.418 0-.693.242a1.66 1.66 0 0 0-.429.638 4 4 0 0 0-.22.946q-.066.528-.066 1.133t.066 1.144.22.946q.165.396.429.638.274.231.693.231M8.089 10.5H6.5v1.543h1.589z"];
/** Path data for the 20px grid; matches {@link generate-icon-paths.mjs} / `<Icon />` from core. */
const PATHS_20 = ["M1 6.648q.514 0 1-.085t.871-.284q.4-.199.672-.512.285-.312.371-.767h1.329v9.947H3.457v-7.02H1zm13.965-1.635q1.032 0 1.677.478.66.465 1.018 1.204.371.724.495 1.6.137.875.137 1.696 0 .82-.137 1.696a5.2 5.2 0 0 1-.495 1.614 3.2 3.2 0 0 1-1.018 1.203q-.646.465-1.677.465-1.03 0-1.691-.465-.646-.479-1.018-1.203a5.7 5.7 0 0 1-.495-1.614 12 12 0 0 1-.123-1.696q0-.821.123-1.696a5.5 5.5 0 0 1 .495-1.6 3.26 3.26 0 0 1 1.018-1.204q.66-.478 1.691-.478m0 8.657q.509 0 .853-.287.343-.3.536-.794a4.6 4.6 0 0 0 .288-1.176q.084-.67.083-1.422 0-.753-.083-1.409a4.6 4.6 0 0 0-.288-1.176q-.193-.506-.536-.793-.345-.3-.853-.301-.522 0-.866.3-.33.288-.537.794-.193.506-.274 1.176-.083.657-.083 1.409 0 .751.082 1.422.083.671.275 1.176.207.493.537.794.344.287.866.287m-5.104-.588H7.875V15h1.986z"];
export const FloatingPoint = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? IconSize.STANDARD) >= IconSize.LARGE;
const paths = isLarge ? PATHS_20 : PATHS_16;
return (_jsx(SVGIconContainer, { iconName: "floating-point", ref: ref, ...props, children: paths.map((d, i) => (_jsx("path", { d: d, fillRule: "evenodd" }, i))) }));
});
FloatingPoint.displayName = `Blueprint6.Icon.FloatingPoint`;
export default FloatingPoint;
//# sourceMappingURL=floating-point.js.map