@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
35 lines • 5.18 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.Syringe = 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.Syringe = 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: "syringe", ref: ref }, props),
React.createElement("path", { d: isLarge ? "M302.928 382.92894C299.024 386.83418 299.024 393.16582 302.928 397.07106C306.834 400.97631 313.166 400.97631 317.072 397.07106L397.072 317.0710000000001C400.976 313.1658 400.976 306.8342 397.072 302.929C393.166 299.0236 386.834 299.0236 382.928 302.929L370 315.8578L344.142 290L377.072 257.0710000000001C380.976 253.1658 380.976 246.8342 377.072 242.929C373.166 239.0236 366.834 239.0236 362.928 242.929L350 255.8578L327.078 232.9352L177.071 82.928C173.1658 79.024 166.8342 79.024 162.929 82.928L150 95.858L97.071 42.928C93.1658 39.024 86.8342 39.024 82.929 42.928L70 55.858L17.0711 2.928C13.16584 -0.976 6.8342 -0.976 2.92894 2.928C-0.976314 6.834 -0.976314 13.166 2.92894 17.072L55.8578 70L42.929 82.928C39.0236 86.834 39.0236 93.166 42.929 97.072L95.8578 150L82.929 162.928C79.0236 166.834 79.0236 173.166 82.929 177.072L232.9220000000001 327.064C232.924 327.0664 232.92 327.0616 232.9220000000001 327.064C232.924 327.0664 232.934 327.0758 232.936 327.0782L255.858 350L242.928 362.929C239.024 366.8342 239.024 373.1658 242.928 377.0710000000001C246.834 380.97632 253.166 380.97632 257.072 377.0710000000001L290 344.1422L315.858 370L302.928 382.92894zM254.142 320L270 335.8578L335.858 270L320 254.1422L254.142 320zM305.858 240L290 224.1422L257.072 257.0710000000001C253.166 260.9764 246.834 260.9764 242.928 257.0710000000001C239.024 253.1658 239.024 246.8342 242.928 242.929L275.858 210L250 184.142L217.072 217.071C213.166 220.9764 206.834 220.9764 202.928 217.071C199.0238 213.1658 199.0238 206.8342 202.928 202.929L235.858 170L210 144.142L177.071 177.072C173.1658 180.976 166.8342 180.976 162.929 177.072C159.0238 173.166 159.0238 166.834 162.929 162.928L195.8578 130L170 104.142L104.1422 170L240 305.8578L305.858 240zM64.1422 90L110 135.858L135.8578 110L90 64.142L64.1422 90zM330 355.8578L355.858 330L330 304.1422L304.142 330L330 355.8578z" : "M222.928 317.07106C219.024 313.16582 219.024 306.83418 222.928 302.92894L235.858 290L210 264.1422L177.071 297.0710000000001C173.1658 300.97632 166.8342 300.97632 162.929 297.0710000000001C159.0236 293.1658 159.0236 286.8342 162.929 282.929L175.8578 270L152.9356 247.0778L42.929 137.071C39.0236 133.1658 39.0236 126.8342 42.929 122.929L55.8578 110L22.929 77.072C19.02368 73.166 19.02368 66.834 22.929 62.928L35.8578 50L2.92892 17.072C-0.976306 13.166 -0.976306 6.834 2.92892 2.928C6.83418 -0.976 13.1658 -0.976 17.07106 2.928L50 35.858L62.929 22.928C66.8342 19.024 73.1658 19.024 77.071 22.928L110 55.858L122.929 42.928C126.8342 39.024 133.1658 39.024 137.071 42.928L247.064 152.9226L270 175.8578L282.928 162.929C286.834 159.0236 293.166 159.0236 297.072 162.929C300.976 166.8342 300.976 173.1658 297.072 177.071L264.142 210L290 235.8578L302.928 222.929C306.834 219.0236 313.166 219.0236 317.072 222.929C320.976 226.8342 320.976 233.1658 317.072 237.071L237.072 317.07106C233.166 320.97631 226.834 320.97631 222.928 317.07106zM225.858 160L210 144.1422L177.071 177.071C173.1658 180.9764 166.8342 180.9764 162.929 177.071C159.0236 173.1658 159.0236 166.8342 162.929 162.929L195.8578 130L170 104.142L137.071 137.071C133.1658 140.9764 126.8342 140.9764 122.929 137.071C119.0236 133.1658 119.0236 126.8342 122.929 122.929L155.8578 90L130 64.142L64.1422 130L160 225.8578L225.858 160zM174.1422 240L240 174.1422L255.858 190L190 255.8578L174.1422 240zM44.1422 70L70 44.142L95.8578 70L70 95.858L44.1422 70zM275.858 250L250 275.8578L224.142 250L250 224.1422L275.858 250z", fillRule: "evenodd", transform: "scale(0.05, -0.05) translate(".concat(translation, ", ").concat(translation, ")"), style: style })));
});
exports.Syringe.defaultProps = {
size: iconTypes_1.IconSize.STANDARD,
};
exports.Syringe.displayName = "Blueprint5.Icon.Syringe";
exports.default = exports.Syringe;
//# sourceMappingURL=syringe.js.map
;