@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 4.17 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.TagUndo = 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.TagUndo = 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: "tag-undo", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M300 360C300 371.0456 308.954 380 320 380C353.2 380 380 353.2 380 320S353.2 260 320 260H288.2L294.2000000000001 254.2C297.8 250.6 300 245.6 300 240C300 229 291 220 280 220C274.4000000000001 220 269.4000000000001 222.2 265.8 225.8L225.8 265.8C222.2 269.4 220 274.4 220 280C220 285.6 222.2 290.6 225.8 294.2L265.8 334.2C269.4 337.8 274.4 340 280 340C291 340 300 331 300 320C300 314.4 297.8 309.4 294.2000000000001 305.8L288.2 300H320C331 300 340 309 340 320S331 340 320 340C308.954 340 300 348.9544 300 360zM318.648 229.6748L348.23 200.0918C363.852 184.47 363.852 159.144 348.23 143.524L256.476 51.7699999999999C240.856 36.148 215.53 36.148 199.9082 51.7699999999999L51.7158 199.9619999999999A39.9994 39.9994 0 0 0 40 228.2462V320C40 342.0914 57.9086 360 80 360H171.7538A39.9994 39.9994 0 0 0 200.038 348.2842L225.82 322.5032L211.658 308.3422C204.35 301.0342 200 290.9646 200 280C200 269.0354 204.35 258.9658 211.658 251.6578L251.658 211.6578C258.966 204.35 269.036 200 280 200C298.478 200 314.0800000000001 212.6122 318.648 229.6748zM79.8702 290.2272C79.8702 273.7124 93.258 260.3246000000001 109.7728 260.3246000000001S139.6754 273.7124 139.6754 290.2272S126.2876 320.1298 109.7728 320.1298S79.8702 306.742 79.8702 290.2272z" : "M240 300C240 311.0458 248.954 320 260 320C293.2 320 320 293.2 320 260S293.2 200 260 200H228.2L234.2 194.2C237.8 190.6 240 185.6 240 180C240 169 231 160 220 160C214.4 160 209.4 162.2 205.8 165.8L165.8 205.8C162.2 209.4 160 214.4 160 220C160 225.6 162.2 230.6 165.8 234.2L205.8 274.2C209.4 277.8 214.4 280 220 280C231 280 240 271 240 260C240 254.4 237.8 249.4 234.2 245.8L228.2 240H260C271 240 280 249 280 260S271 280 260 280C248.954 280 240 288.9544 240 300zM258.632 169.6206L268.222 160.0308C283.844 144.4098 283.844 119.084 268.222 103.462L176.5378 11.778C160.9168 -3.844 135.5902 -3.844 119.9692 11.778L11.7158 120.0308A40 40 0 0 0 0 148.315V240C0 262.0914 17.9086 280 40 280H131.685A39.9994 39.9994 0 0 0 159.9692 268.2842L165.7846 262.469L151.6578 248.3422C144.35 241.0342 140 230.9646 140 220C140 209.0354 144.35 198.9658 151.6578 191.6578L191.6578 151.6578C198.9658 144.35 209.036 140 220 140C238.458 140 254.048 152.5856 258.632 169.6206zM39.8516 210.2596C39.8516 193.7524 53.2334 180.3708 69.7404 180.3708C86.2476 180.3708 99.6292 193.7524 99.6292 210.2596C99.6292 226.7666 86.2476 240.1484 69.7404 240.1484C53.2334 240.1484 39.8516 226.7666 39.8516 210.2596z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.TagUndo.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.TagUndo.displayName = "Blueprint5.Icon.TagUndo";
exports.default = exports.TagUndo;
//# sourceMappingURL=tag-undo.js.map
;