@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 3.2 kB
JavaScript
/*
* 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.KeyBackspace = void 0;
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var iconTypes_1 = require("../../iconTypes");
var svgIconContainer_1 = require("../../svgIconContainer");
exports.KeyBackspace = React.forwardRef(function (props, ref) {
var isLarge = props.size >= iconTypes_1.IconSize.LARGE;
var pixelGridSize = isLarge ? iconTypes_1.IconSize.LARGE : iconTypes_1.IconSize.STANDARD;
var translation = "".concat(-1 * pixelGridSize / 0.05 / 2);
var style = { transformOrigin: "center" };
return (React.createElement(svgIconContainer_1.SVGIconContainer, tslib_1.__assign({ iconName: "key-backspace", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M380 340H140C134.4 340 129.4 337.8 125.8 334.2L5.8 214.2C2.2 210.6 0 205.6 0 200C0 194.4 2.2 189.4 5.8 185.8L125.8 65.8C129.4 62.2 134.4 60 140 60H380C391 60 400 69 400 80V320C400 331 391 340 380 340zM334.2000000000001 154.2C337.8 150.6 340 145.6 340 140C340 129 331 120 320 120C314.4000000000001 120 309.4000000000001 122.2 305.8 125.8L260 171.8L214.2 126C210.6 122.2 205.6 120 200 120C189 120 180 129 180 140C180 145.6 182.2 150.6 185.8 154.2L231.8 200L185.8 245.8C182.2 249.4 180 254.4 180 260C180 271 189 280 200 280C205.6 280 210.6 277.8 214.2 274.2L260 228.2L305.8 274C309.4000000000001 277.8 314.4000000000001 280 320 280C331 280 340 271 340 260C340 254.4 337.8 249.4 334.2000000000001 245.8L288.2 200L334.2000000000001 154.2z" : "M300 280H120C114.4 280 109.4 277.8 105.8 274.2L5.8 174.2C2.2 170.6 0 165.6 0 160C0 154.4 2.2 149.4 5.8 145.8L105.8 45.8C109.4 42.2 114.4 40 120 40H300C311 40 320 49 320 60V260C320 271 311 280 300 280zM254.2 134.2C257.8 130.6 260 125.6 260 120C260 109 251 100 240 100C234.4 100 229.4 102.2 225.8 105.8L200 131.8L174.2 106C170.6 102.2 165.6 100 160 100C149 100 140 109 140 120C140 125.6 142.2 130.6 145.8 134.2L171.8 160L145.8 185.8C142.2 189.4 140 194.4 140 200C140 211 149 220 160 220C165.6 220 170.6 217.8 174.2 214.2L200 188.2L225.8 214C229.4 217.8 234.4 220 240 220C251 220 260 211 260 200C260 194.4 257.8 189.4 254.2 185.8L228.2 160L254.2 134.2z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.KeyBackspace.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.KeyBackspace.displayName = "Blueprint5.Icon.KeyBackspace";
exports.default = exports.KeyBackspace;
//# sourceMappingURL=key-backspace.js.map
;