@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
32 lines • 2.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SymbolTriangleDown = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("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.
*/
const React = tslib_1.__importStar(require("react"));
const iconTypes_1 = require("../../iconTypes");
const svgIconContainer_1 = require("../../svgIconContainer");
exports.SymbolTriangleDown = React.forwardRef((props, ref) => {
const isLarge = (props.size ?? iconTypes_1.IconSize.STANDARD) >= iconTypes_1.IconSize.LARGE;
const pixelGridSize = isLarge ? iconTypes_1.IconSize.LARGE : iconTypes_1.IconSize.STANDARD;
const translation = `${-1 * pixelGridSize / 0.05 / 2}`;
const style = { transformOrigin: "center" };
return ((0, jsx_runtime_1.jsx)(svgIconContainer_1.SVGIconContainer, { iconName: "symbol-triangle-down", ref: ref, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: isLarge ? "M320 300C320 311 311 320 300 320H100C89 320 80 311 80 300C80 296.8 81 293.8 82.2 291.2H82L182 91.2H182.2C185.6 84.6 192.2 80 200 80S214.4 84.6 217.8 91.2H218L318 291.2000000000001H317.8C319 293.8 320 296.8 320 300" : "M260 239.8C260 250.8 251 259.8 240 259.8H80C69 259.8 60 250.8 60 239.8C60 236.6 61 233.6 62.2 231H62L142 71H142.2C145.4 64.4 152 59.8 160 59.8S174.4 64.4 177.8 71H178L258 231H257.8C259 233.8 260 236.6 260 239.8", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) }));
});
exports.SymbolTriangleDown.displayName = `Blueprint6.Icon.SymbolTriangleDown`;
exports.default = exports.SymbolTriangleDown;
//# sourceMappingURL=symbol-triangle-down.js.map