@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
32 lines • 4.5 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.
*/
import { __assign } from "tslib";
import * as React from "react";
import { IconSize } from "../../iconTypes";
import { SVGIconContainer } from "../../svgIconContainer";
export var TagPromote = React.forwardRef(function (props, ref) {
var isLarge = props.size >= IconSize.LARGE;
var pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD;
var translation = "".concat(-1 * pixelGridSize / 0.05 / 2);
var style = { transformOrigin: "center" };
return (React.createElement(SVGIconContainer, __assign({ iconName: "tag-promote", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M285.85 374.139C293.6500000000001 381.9536 306.45 381.9536 314.25 374.139L373.85 314.8278C382.05 306.6124 382.05 293.3876 373.85 285.1722L314.25 225.861C306.45 218.0464 293.65 218.0464 285.85 225.861C278.05 233.6756 278.05 246.2994 285.85 254.1140000000001L331.85 300L285.85 345.886C278.05 353.7006 278.05 366.3244 285.85 374.139zM234.25 374.139L293.85 314.8278C302.05 306.6124 302.05 293.3876 293.85 285.1722L234.25 225.861C226.45 218.0464 213.65 218.0464 205.85 225.861C198.05 233.6756 198.05 246.2994 205.85 254.1140000000001L251.85 300L205.85 345.886C198.05 353.7006 198.05 366.3244 205.85 374.139S226.45 381.9536 234.25 374.139zM332.508 215.8146L348.23 200.0918C363.852 184.47 363.852 159.144 348.23 143.524L256.476 51.77C240.856 36.148 215.53 36.148 199.9082 51.77L51.7158 199.962A39.9994 39.9994 0 0 0 40 228.2462V320C40 342.0914 57.9086 360 80 360H171.7538A39.988 39.988 0 0 0 180.0094 359.139C180.2252 349.2098 184.1204 339.3456 191.6946 331.7572L191.7254 331.7264L223.53 300L191.7254 268.2736L191.6946 268.2428C176.1018 252.6208 176.1018 227.3542 191.6946 211.7322C207.3 196.098 232.764 196.09 248.38 211.7064L248.406 211.7322L262.5780000000001 225.8366000000001C264.5200000000001 220.6966 267.5600000000001 215.8752 271.694 211.7322C287.2980000000001 196.1 312.7580000000001 196.09 328.374 211.7014L328.406 211.7322L332.5080000000001 215.8146zM79.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" : "M225.8 314.2004C233.6 322.0016 246.4 322.0016 254.2 314.2004L313.8 254.9912C322 246.7898 322 233.5878 313.8 225.3864L254.2 166.1772C246.4 158.376 233.6 158.376 225.8 166.1772C218 173.9784 218 186.5804 225.8 194.3816L271.8 240.1888L225.8 285.9960000000001C218 293.7972000000001 218 306.3992 225.8 314.2004zM272.2 155.3756C283.6 139.7732 282.4 117.57 268.2 103.368L176.6 11.754C161 -3.85 135.6 -3.85 120 11.754L11.8 119.97C4.2 127.5712 0 137.7728 0 148.3744V239.9888C0 261.9922000000001 18 279.995 40 279.995H125.6C127.2 276.9944 129.2 274.194 131.8 271.5936L163.6 239.9888L131.8 208.3838C124.2 200.7826 120 190.581 120 179.9794S124.2 159.1762 131.8 151.575C139.4 144.1738 149.2 139.9732 160 139.9732C170.8 139.9732 180.8 144.1738 188.4 151.575L202.6 165.7772C204.6 160.5764 207.6 155.7756 211.8 151.575C219.4 144.1738 229.2 139.9732 240 139.9732C250.8 139.9732 260.8 144.1738 268.4 151.575L272.2 155.3756zM69.8 180.1794C86.4 180.1794 99.8 193.5814 99.8 210.184C99.8 226.7866 86.4 240.1888 69.8 240.1888S39.8 226.7866 39.8 210.184S53.2 180.1794 69.8 180.1794zM174.2 314.2004L233.8 254.9912C242.0000000000001 246.7898 242.0000000000001 233.5878 233.8 225.3864L174.2 166.1772C166.4 158.376 153.6 158.376 145.8 166.1772C138 173.9784 138 186.5804 145.8 194.3816L191.8 240.1888L145.8 285.996C138 293.7972 138 306.3992 145.8 314.2004C153.6 322.0016 166.4 322.0016 174.2 314.2004z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
TagPromote.defaultProps = {
size: IconSize.STANDARD,
};
TagPromote.displayName = "Blueprint5.Icon.TagPromote";
export default TagPromote;
//# sourceMappingURL=tag-promote.js.map