UNPKG

@blueprintjs/icons

Version:

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

31 lines 7.19 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 Snowflake = 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: "snowflake", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M220 164.488584L220 108.284272L266.18543 63.431458C274.14763 55.6209719999999 274.14763 42.957672 266.18543 35.147186C258.223228 27.3367 245.313952 27.3367 237.35175 35.147186L220 51.715728L220 20C220 8.954306 211.3331338 0 200.0728804 0C188.8126288 0 180 8.954306 180 20L180 52.72078L161.7694388 35.147186C153.807238 27.3367 140.8979598 27.3367 132.935759 35.147186C124.9735584 42.957672 124.9735584 55.6209719999999 132.935759 63.431458L180 109.289322L180 165.06885L129.039978 136.386428L112.303811 75.116344C109.3894434 64.447022 98.2096804 58.115372 87.333112 60.97421C76.4565432 63.833046 70.0019044 74.799784 72.916272 85.469106L79.0985796 108.102156L51.0984266 92.244292C41.3467622 86.721444 28.87735692 89.998948 23.24723082 99.5648C17.61710454 109.130652 20.958271684 121.36246 30.70993622 126.885308L59.5973956 143.245698L35.12511644 149.67808C24.24854772 152.536916 17.79390864 163.503654 20.708276372 174.172978C23.6226443 184.8423 34.802407 191.173948 45.6789758 188.315112L109.538794 171.52997L158.7836134 199.419734L108.139201 228.1021566L45.6789758 211.6848874C34.802407 208.8260512 23.6226443 215.157701 20.708276372 225.827023C17.79390864 236.496345 24.24854772 247.4630842 35.12511644 250.3219204L58.1978024 256.3864278L30.1976495 272.2442922C20.445984966 277.7671398 17.10481804 289.9989478 22.73494412 299.5648004C28.3650702 309.1306528 40.8344754 312.4081558000001 50.58614 306.8853084L79.4735994 290.5249186L72.916272 314.5308934C70.0019044 325.2002154 76.4565432 336.1669546 87.333112 339.0257908C98.2096804 341.884627 109.3894434 335.5529772 112.303811 324.8836552L129.4149978 262.2406474L180 233.7706168L180 291.7157288L132.935759 337.5735932C124.9735584 345.384079 124.9735584 358.0473786 132.935759 365.8578644C140.8979598 373.6683502 153.807238 373.6683502 161.7694388 365.8578644L180 348.2842712L180 380C180 391.045695 188.8126288 400 200.0728804 400C211.3331338 400 220 391.045695 220 380L219.8542384 349.2893218L237.35175 365.8578644C245.313952 373.6683502 258.223228 373.6683502 266.18543 365.8578644C274.14763 358.0473786 274.14763 345.384079 266.18543 337.5735932L220 292.7207794000001L220 234.350883L270.593498 262.7431728L287.704684 325.3861804C290.619052 336.0555026 301.798816 342.3871524 312.675384 339.528316C323.551952 336.6694798 330.006592 325.7027408 327.092224 315.0334186L320.534896 291.027444L348.535048 306.8853084C358.286714 312.4081558000001 370.75612 309.1306528 376.386244 299.5648004C382.01637 289.9989478 378.675204 277.7671398 368.923538 272.2442922L341.810694 256.8889532L364.88338 250.8244458C375.759948 247.9656094 382.214588 236.9988704 379.300218 226.3295482C376.38585 215.6602262 365.206088 209.3285764 354.32952 212.1874126L291.869294 228.604682L240.337576 199.419734L290.469702 171.027444L354.32952 187.812588C365.206088 190.671424 376.38585 184.339774 379.300218 173.670452C382.214588 163.00113 375.759948 152.03439 364.88338 149.175554L340.4111000000001 142.743172L368.4112540000001 126.885308C378.162918 121.36246 381.504086 109.130652 375.873958 99.5648C370.243832 89.998948 357.774426 86.721444 348.022762 92.244292L320.909916 107.599632L327.092224 84.966582C330.006592 74.2972600000001 323.551952 63.33052 312.675384 60.471684C301.798816 57.612848 290.619052 63.944498 287.704684 74.61382L270.968518 135.883902L220 164.488584z" : "M267.27922 140L284.852814 122.4264068C292.6633 114.615922 292.6633 101.952622 284.852814 94.142136C277.042328 86.33165 264.379028 86.33165 256.5685420000001 94.142136L214.142136 136.5685424C213.079932 137.6307454 212.162186 138.782702 211.388896 140L180 140L180 107.928706C180.8493024 107.313404 181.6611476 106.623124 182.4264068 105.857864L224.852814 63.431458C232.6633 55.620972 232.6633 42.957672 224.852814 35.147186C217.042328 27.3367 204.379028 27.3367 196.5685424 35.147186L180 51.715728L180 20C180 8.954306 171.045695 0 160 0C148.954305 0 140 8.954306 140 20L140 52.72078L122.4264068 35.147186C114.615921 27.3367 101.9526214 27.3367 94.1421356 35.147186C86.3316498 42.957672 86.3316498 55.620972 94.1421356 63.431458L136.5685424 105.857864C137.6307454 106.920068 138.782702 107.837814 140 108.611104L140 140L107.6060532 140C106.8327632 138.782702 105.9150166 137.6307454 104.8528138 136.5685424L62.4264068 94.142136C54.615921 86.33165 41.9526214 86.33165 34.1421356 94.142136C26.3316498 101.952622 26.3316498 114.615922 34.1421356 122.4264068L51.7157288 140L20 140C8.954305 140 0 148.954305 0 160C0 171.045695 8.954305 180 20 180L50.7106782 180L34.1421356 196.5685424C26.3316498 204.3790284 26.3316498 217.042328 34.1421356 224.8528138C41.9526214 232.6632996 54.615921 232.6632996 62.4264068 224.8528138L104.8528138 182.4264068C105.618073 181.6611476 106.3083534 180.8493024 106.9236548 180L140 180L140 212.3939468C138.782702 213.1672368 137.6307454 214.0849834 136.5685424 215.1471862L94.1421356 257.5735932C86.3316498 265.384079 86.3316498 278.0473786 94.1421356 285.8578644C101.9526214 293.6683502 114.615921 293.6683502 122.4264068 285.8578644L140 268.2842712L140 300C140 311.045695 148.954305 320 160 320C171.045695 320 180 311.045695 180 300L180 269.2893218L196.5685424 285.8578644C204.379028 293.6683502 217.042328 293.6683502 224.852814 285.8578644C232.6633 278.0473786 232.6633 265.384079 224.852814 257.5735932L182.4264068 215.1471862C181.6611476 214.381927 180.8493024 213.6916466 180 213.0763452L180 180L212.071294 180C212.686596 180.8493024 213.376876 181.6611476 214.142136 182.4264068L256.5685420000001 224.8528138C264.379028 232.6632996 277.042328 232.6632996 284.852814 224.8528138C292.6633 217.042328 292.6633 204.3790284 284.852814 196.5685424L268.284272 180L300 180C311.045694 180 320 171.045695 320 160C320 148.954305 311.045694 140 300 140L267.27922 140z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); Snowflake.defaultProps = { size: IconSize.STANDARD, }; Snowflake.displayName = `Blueprint5.Icon.Snowflake`; export default Snowflake; //# sourceMappingURL=snowflake.js.map