@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
32 lines • 2.88 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConsoleAlert = 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.ConsoleAlert = 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: "console-alert", ref: ref, ...props, children: (0, jsx_runtime_1.jsx)("path", { d: isLarge ? "M300 280H40V60H360V160A59.6 59.6 0 0 1 400 175.38V40C400 29 391 20 380 20H20C9 20 0 29 0 40V360C0 371 9 380 20 380H300zM80 240C85.6 240 90.6 237.8 94.2 234.2L134.2 194.2C137.8 190.6 140 185.6 140 180S137.8 169.4 134.2 165.8L94.2 125.8A20.06 20.06 0 0 0 65.8 154.2L91.8 180L65.8 205.8A20.06 20.06 0 0 0 80 240M240 160C251 160 260 151 260 140S251 120 240 120H180C169 120 160 129 160 140S169 160 180 160zM360 240A20 20 0 1 0 360 200A20 20 0 0 0 360 240M360 400A20 20 0 0 0 380 380V280A20 20 0 1 0 340 280V380A20 20 0 0 0 360 400" : "M260 300A20 20 0 1 0 300 300V240A20 20 0 1 0 260 240zM260 180A20 20 0 1 0 300 180A20 20 0 0 0 260 180M20 300H220V240C220 233 221.2 226.26 223.4 220H40V60H280V120C295.36 120 309.4000000000001 125.78 320 135.28V40C320 29 311 20 300 20H20C9 20 0 29 0 40V280C0 291 9 300 20 300M80 200C85.6 200 90.6 197.8 94.2 194.2L134.2 154.2C137.8 150.6 140 145.6 140 140S137.8 129.4 134.2 125.8L94.2 85.8A20.06 20.06 0 0 0 65.8 114.2L91.8 140L65.8 165.8A20.06 20.06 0 0 0 80 200M180 120H240C251 120 260 111 260 100S251 80 240 80H180C169 80 160 89 160 100S169 120 180 120", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) }));
});
exports.ConsoleAlert.displayName = `Blueprint6.Icon.ConsoleAlert`;
exports.default = exports.ConsoleAlert;
//# sourceMappingURL=console-alert.js.map