UNPKG

@blueprintjs/icons

Version:

Components, fonts, icons, and css files for creating and displaying icons.

31 lines 4.35 kB
/* * 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 * as React from "react"; import { IconSize } from "../../iconTypes"; import { SVGIconContainer } from "../../svgIconContainer"; export const Lifesaver = React.forwardRef((props, ref) => { const isLarge = props.size >= IconSize.LARGE; const pixelGridSize = isLarge ? IconSize.LARGE : IconSize.STANDARD; const translation = `${-1 * pixelGridSize / 0.05 / 2}`; const style = { transformOrigin: "center" }; return (React.createElement(SVGIconContainer, { iconName: "lifesaver", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M162.851055 107.127638L140.561688 51.40422C158.9376584 44.047172 178.9961952 40 200 40C221.003804 40 241.062342 44.047172 259.438312 51.40422L237.148946 107.127638C225.663964 102.529484 213.127378 100 200 100C186.872622 100 174.3360364 102.529484 162.851055 107.127638zM107.1276374 162.851054C102.529483 174.336036 100 186.872622 100 200C100 213.127378 102.529483 225.6639636 107.1276374 237.148945L51.4042198 259.438312C44.0471728 241.0623416 40 221.0038048 40 200C40 178.996196 44.0471728 158.937658 51.4042198 140.561688L107.1276374 162.851054zM162.851055 292.8723626C174.3360364 297.470517 186.872622 300 200 300C213.127378 300 225.663964 297.470517 237.148946 292.8723626L259.438312 348.5957802C241.062342 355.9528272 221.003804 360 200 360C178.9961952 360 158.9376584 355.9528272 140.561688 348.5957802L162.851055 292.8723626zM292.872362 237.148945C297.470516 225.6639636 300 213.127378 300 200C300 186.872622 297.470516 174.336036 292.872362 162.851054L348.59578 140.561688C355.952828 158.937658 360 178.996196 360 200C360 221.0038048 355.952828 241.0623416 348.59578 259.438312L292.872362 237.148945zM200 140C233.137084 140 260 166.862916 260 200C260 233.137085 233.137084 260 200 260C166.862915 260 140 233.137085 140 200C140 166.862916 166.862915 140 200 140zM200 0C89.54305 0 0 89.54305 0 200C0 310.45695 89.54305 400 200 400C310.45695 400 400 310.45695 400 200C400 89.54305 310.45695 0 200 0z" : "M188.0974886 85.073364C179.3556866 81.793668 169.8873102 80 160 80C150.1126898 80 140.6443134 81.793668 131.9025114 85.073364L117.8537672 47.610046C130.9664702 42.690502 145.1690348 40 160 40C174.8309652 40 189.0335298 42.690502 202.146232 47.610046L188.0974886 85.073364zM234.926636 131.9025114L272.389954 117.853768C277.309498 130.9664702 280 145.1690348 280 160C280 174.8309652 277.309498 189.0335298 272.389954 202.1462328L234.926636 188.0974886C238.206332 179.3556866 240 169.8873102 240 160C240 150.1126898 238.206332 140.6443134 234.926636 131.9025114zM188.0974886 234.9266362L202.146232 272.3899542000001C189.0335298 277.3094976 174.8309652 280 160 280C145.1690348 280 130.9664702 277.3094976 117.8537672 272.3899542000001L131.9025114 234.9266362C140.6443134 238.2063318 150.1126898 240 160 240C169.8873102 240 179.3556866 238.2063318 188.0974886 234.9266362zM85.0733638 188.0974886L47.6100458 202.1462328C42.6905024 189.0335298 40 174.8309652 40 160C40 145.1690348 42.6905024 130.9664702 47.6100458 117.853768L85.0733638 131.9025114C81.7936682 140.6443134 80 150.1126898 80 160C80 169.8873102 81.7936682 179.3556866 85.0733638 188.0974886zM160 0C71.63444 0 0 71.63444 0 160C0 248.36556 71.63444 320 160 320C248.36556 320 320 248.36556 320 160C320 71.63444 248.36556 0 160 0zM160 120C182.09139 120 200 137.90861 200 160C200 182.09139 182.09139 200 160 200C137.90861 200 120 182.09139 120 160C120 137.90861 137.90861 120 160 120z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); Lifesaver.defaultProps = { size: IconSize.STANDARD, }; Lifesaver.displayName = `Blueprint5.Icon.Lifesaver`; export default Lifesaver; //# sourceMappingURL=lifesaver.js.map