@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 8.44 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.PublishFunction = 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.PublishFunction = 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: "publish-function", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M140.2 197.8C147.2 210.6 154.6 231.4 162 260L178 320.6H197.2L202 336H182.2C187.8 358.2 195.4 374.4 204.6 384.6C210.2 391 215.8 394.2 221.2 394.2C222.2 394.2 223.2 393.8 223.8 393.2C224.4 392.6 224.8000000000001 391.8 224.8000000000001 390.8C224.8000000000001 390 224.0000000000001 388.2 222.6000000000001 385.8C221.0000000000001 383.4 220.4000000000001 381 220.4000000000001 378.8C220.4000000000001 375.8 221.6000000000001 373.2 224.0000000000001 371C226.4000000000001 368.8 229.4000000000001 367.8 233.0000000000001 367.8C237.0000000000001 367.8 240.2000000000001 369.2 242.8000000000001 371.8S246.8000000000001 378 246.8000000000001 382.6C246.8000000000001 387.8 244.8000000000001 392 240.8 395.2C236.8 398.4 230.4 400 221.6 400C208 400 195.6 396.2 184.4 388.4C173.4 380.8 162.8 368 152.8 350.2C149.4 344.2 146 340.2 143 338.4C140 336.8 135 335.8 128.2 336L123.6 320.6H142.6L114.8 215.8C110.2 198.6 107 188 105.4 184C103 178.2 99.4 173.2 94.6 169C92.6 167.4 90.4 166.6 87.6 166.6C86.8 166.6 86.2 166.8 85.6 167.2L85 168C85 168.4 85.6 169.4 87 170.6C88.4 172 89 174 89 176.8000000000001C89 179.8000000000001 88 182.4 85.8 184.4C83.6 186.4 80.4 187.4000000000001 76.4 187.4000000000001C71.4 187.4000000000001 67.6 186.0000000000001 64.6 183.4000000000001C61.6 181 60 177.8 60 174.2C60 170.4 61.8 167 65.4 164.2C69.2 161.4 74.8 160 82.6 160C94.8 160 105.8 163 115.2 169.2C124.8 175.4 133 185 140.2 197.8zM214.2 174.2C210.6 177.8 205.6 180 200 180S189.4 177.8 185.8 174.2L125.8 114.2000000000001C122.2 110.6 120 105.6 120 100C120 89 129 80 140 80C145.6 80 150.6 82.2 154.2 85.8L180 111.8V20C180 9 189 0 200 0C211 0 220 9 220 20V111.8L245.8 86C249.4 82.2 254.4 80 260 80C271 80 280 89 280 100C280 105.6 277.8 110.6 274.2000000000001 114.2000000000001L214.2 174.2zM297.2 309.8C300.6 312.4 304.4 313.8 308.2 313.8C309.6 313.8 312.2 313.2 316 312.2C319.8 311.2000000000001 323.2 310.6 326 310.6C330 310.6 333.4000000000001 312 336 314.6C338.6 317.4 340 320.8 340 325C340 329.4 338.6 333 336 335.6C333.4000000000001 338.2 329.4000000000001 339.6 324.4000000000001 339.6C320.0000000000001 339.6 315.8000000000001 338.6 311.8 336.6C307.8000000000001 334.6 302.8000000000001 330.2000000000001 296.8 323.2000000000001C292.2000000000001 318.2 285.6 309.2000000000001 276.6 296.6C273.0000000000001 312.2 267 326.6 258.4000000000001 339.6L210.8000000000001 331.8L209.8000000000001 326.8C213.4 327.4 216.4 327.8 218.8 327.8C223.6 327.8 227.4000000000001 325.8 230.6 321.8C235.6 315.6 242.4000000000001 297 251 266C244.2 257.2 239.4 251.4 237.0000000000001 248.6C232.8 244.2 229.4 241.4 226.6 240C224.6000000000001 239 222.2 238.4 219.6000000000001 238.4C217.6000000000001 238.4 214.4 239.4 209.8000000000001 241.6C206.8000000000001 243 204.0000000000001 243.8 201.4 243.8C196.8000000000001 243.8 193.0000000000001 242.4 190 239.4C186.6 236.6 185.2 233 185.2 228.4C185.2 224.2 186.6 220.8 189.4 218.2C192.2 215.6 196 214.2 200.6 214.2C205.2000000000001 214.2 209.4 215.2000000000001 213.4 217C217.4 218.8 222.4 222.8 228.4000000000001 228.8C234.4000000000001 234.8000000000001 242.8000000000001 244.4000000000001 253.4000000000001 257.4000000000001C257.4000000000001 245.0000000000001 261.0000000000001 236 264 230.4000000000001C267 224.8000000000001 270.4000000000001 220.6 274.4000000000001 218.2000000000001C278.2 215.8000000000001 283.2 214.4 289 214.4C294.6 214.4 300.4000000000001 216.4 306.2 220.4000000000001C313.8 225.4000000000001 321.6 234.2000000000001 329.6 246.6000000000001L324.6 249.4000000000001C319.2000000000001 242.0000000000001 315 237.4000000000001 312.4000000000001 235.6000000000001C310.6 234.4000000000001 308.6 233.8000000000001 306.2 233.8000000000001C303.4 233.8000000000001 300.6 235.6000000000001 297.8 239.0000000000001C293.2 244.8000000000001 287 260.8000000000001 279.2000000000001 287.0000000000001C286.6 298.6 292.4 306.2 297.2 309.8z" : "M243.2 244.8C246.2 247 249.2 248 252.6 248C253.8 248 256 247.6 259.4000000000001 246.8C262.6 246 265.6 245.6 268 245.6C271.4 245.6 274.4000000000001 246.8 276.6 249C278.8 251.2 280 254 280 257.6C280 261.4 278.8 264.2 276.6 266.4C274.4000000000001 268.6 271 269.6 266.8 269.6C263 269.6 259.4000000000001 268.8 256 267C252.6 265.2 248.2 261.6 243 256C239.0000000000001 251.8 233.4 244.4 225.6 233.8C222.6 246.8 217.4 258.8 210 269.6L169 263.2L168.2 259C171.2 259.6 173.8 259.8 176 259.8C180 259.8 183.4 258.2 186 254.8C190.2000000000001 249.6 196 234.2 203.6 208.2C197.8 201 193.8 196.2 191.6 194C188 190.2 185 187.8 182.6 186.8C180.8 186 178.8 185.4 176.6 185.4C174.8 185.4 172 186.2 168.2 188C165.4 189.2 163.2 189.8 161 189.8C157 189.8 153.8 188.6 151.2 186.2C148.6 183.8 147.4 180.8 147.4 177C147.4 173.4 148.6 170.6 151 168.4C153.4 166.2 156.6 165.2 160.6 165.2C164.6 165.2 168.2 166 171.6 167.6C175 169.2 179.4 172.4 184.6 177.4C189.8 182.4 197 190.4 206 201.2C209.6 190.8 212.6 183.4 215.2000000000001 178.6C217.8000000000001 173.8 220.8 170.6 224 168.4C227.4000000000001 166.4 231.4 165.2 236.4 165.2C241.2 165.2 246.2 166.8 251.2 170.2C257.8 174.4 264.4000000000001 181.8 271.4 192L267.2 194.2C262.6 188 259 184.2 256.8 182.8C255.4 181.8 253.6 181.4 251.6 181.4C249.2 181.4 246.8 182.8 244.4 185.6C240.4000000000001 190.4 235.2 203.8 228.4 225.6C234.2 235.4 239.2 241.8 243.2 244.8zM127.4 203.4L141 254H157.6L161.6 266.8H144.8C149.6 285 156 298.6 164 307C168.8 312.4 173.6 315 178.2 315C179.2 315 179.8 314.8 180.4 314.2C181 313.6 181.2 313 181.2 312.2C181.2 311.4 180.6 310 179.2 308C178 306 177.2 304 177.2 302.2C177.2 299.6 178.2 297.4 180.2 295.6C182.2 293.8 184.8 292.8 188 292.8C191.4 292.8 194.2 294 196.4 296.2C198.8 298.6 200 301.6 200 305.4C200 309.6 198.4 313.2 195 315.8C191.4 318.6 186 320 178.6 320C166.8 320 156.2 316.8 146.8 310.4C137.2 304 128.2 293.4 119.6 278.6C116.6 273.4 113.8 270.2 111.2 268.8C108.6 267.4 104.2 266.6 98.4 266.8L94.6 253.8H110.8L87 166.4C83 152 80.4 143.2 79 139.8C77 135 73.8 130.8 69.8 127.4C68 126 66 125.4 63.6 125.4C63 125.4 62.4 125.6 62 126L61.4 126.6C61.4 127 62 127.8 63.2 128.8C64.4 130 65 131.8 65 134C65 136.6 64 138.6 62.2 140.4C60.2 142.2 57.6 143 54 143C49.8 143 46.4 142 43.8 139.8C41.2 137.4 40 134.8 40 132C40 128.8 41.6 126 44.6 123.6C47.8 121.2 52.6 120 59.4 120C70 120 79.2 122.6 87.4 127.8C95.6 133 102.6 140.8 108.8 151.6C114.8 162.2 121 179.4 127.4 203.4zM174.2 134.2C170.6 137.8 165.6 140 160 140C154.4 140 149.4 137.8 145.8 134.2L105.8 94.2C102.2 90.6 100 85.6 100 80C100 69 109 60 120 60C125.6 60 130.6 62.2 134.2 65.8L140 71.8V20C140 9 149 0 160 0C171 0 180 9 180 20V71.8L185.8 66C189.4 62.2 194.4 60 200 60C211 60 220 69 220 80C220 85.6 217.8 90.6 214.2 94.2L174.2 134.2z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.PublishFunction.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.PublishFunction.displayName = "Blueprint5.Icon.PublishFunction";
exports.default = exports.PublishFunction;
//# sourceMappingURL=publish-function.js.map
;