UNPKG

@blueprintjs/icons

Version:

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

31 lines 9 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 SharedFilter = 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: "shared-filter", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M278.34 55.826C298.548 46.75 329.202 37.262 335.8 22.962C341.986 8.524 339.512 0 339.512 0H120.5344C120.5344 0 117.9228 8.524 124.246 22.962C130.5692 37.4 161.0858 47.024 181.4302 55.962C201.774 64.9 199.7126 70.4 200.4 77.826C200.4 78.788 200.538 79.75 200.538 80.712C193.3892 86.9 187.4784 95.562 183.767 105.462L183.6294 105.6C183.6294 105.738 183.492 105.874 183.492 106.012C182.5298 108.074 181.8424 110.412 181.2926 112.75C176.619 113.574 173.8696 118.662 172.77 123.474C171.6704 125.4 169.471 130.076 170.0208 135.438C170.708 142.45 173.5948 145.612 176.7564 146.85V147.95C176.7564 156.75 177.4438 169.262 179.0932 177.512C179.3682 179.85 179.918 182.188 180.6054 184.388C183.6294 194.562 189.9528 203.6376 198.338 209.9626C206.86 216.5626 219.094 220 229.954 220C240.814 220 253.048 216.5626 261.708 209.9626C270.23 203.6376 276.416 194.424 279.44 184.388C280.128 182.05 280.678 179.85 280.952 177.512C282.464 169.262 283.29 156.612 283.29 147.95V146.712C286.314 145.474 289.062 142.312 289.75 135.438C290.1620000000001 130.076 288.1 125.4 287 123.474C286.038 118.8 283.29 113.712 278.616 112.75C278.066 110.55 277.378 108.212 276.554 106.15C276.416 106.012 276.278 105.462 276.278 105.462C272.568 95.7 266.932 87.174 259.92 80.988C259.92 79.888 259.92 78.788 260.058 77.826C260.746 70.2620000000001 257.9960000000001 64.762 278.34 55.826zM299.516 68.602C294.7080000000001 70.5700000000001 290.414 72.328 286.534 74.0699999999999L286.384 74.136C284.838 74.816 283.556 75.426 282.5 75.9640000000001C286.984 81.72 290.686 88.132 293.574 94.886L293.6 94.912L293.868 95.584C294.228 96.446 294.576 97.314 294.908 98.186L295.124 98.724C295.23 98.99 295.336 99.258 295.438 99.526C297.54 101.352 299.236 103.334 300.552 105.206C303.136 108.876 304.814 112.816 305.854 116.45C307.954 120.984 310.358 128.308 309.692 136.972L309.6740000000001 137.2L309.65 137.428C308.99 144.036 306.906 150.416 303.13 155.608C302.814 163.764 302.024 173.21 300.73 180.532C300.246 184.208 299.4000000000001 187.406 298.628 190.03L298.5900000000001 190.158C295.624 200.001 290.446 209.3686 283.332 217.2148C288.74 219.0578 294.538 220 299.958 220C309.83 220 320.952 216.875 328.826 210.875C336.574 205.125 342.1960000000001 196.75 344.946 187.624C345.5700000000001 185.5 346.07 183.5 346.32 181.374C347.696 173.874 348.444 162.374 348.444 154.5V153.374C351.194 152.25 353.694 149.376 354.3180000000001 143.126C354.694 138.25 352.818 134 351.8180000000001 132.25C350.944 128 348.444 123.374 344.1960000000001 122.5C343.696 120.5 343.072 118.374 342.322 116.5C342.1960000000001 116.374 342.072 115.874 342.072 115.874C338.698 107 333.574 99.25 327.2 93.624C327.2 92.624 327.2 91.626 327.326 90.75C327.406 89.872 327.4340000000001 89.024 327.462 88.196C327.654 82.546 327.814 77.836 343.946 70.75C347.778 69.03 352.022 67.292 356.396 65.502C372.99 58.712 391.434 51.164 396.182 40.874C401.806 27.75 399.556 20 399.556 20H357.934C357.05 23.374 355.83 26.998 354.184 30.84L354.076 31.092L353.9600000000001 31.342C350.3 39.272 344.14 44.968 338.764 48.94C333.202 53.05 326.856 56.486 320.838 59.38C314.756 62.302 308.348 64.978 302.512 67.374L299.516 68.602zM280 380C291 380 300 371 300 360C300 354.4 297.8 349.4 294.2000000000001 346L200 251.8V233.8698C195.1064 231.7736 190.4244 229.1146 186.1948 225.8544C174.487 216.9898 165.7198 204.3994 161.4738 190.218C160.5914 187.372 159.8004 184.142 159.3358 180.688C157.9256 173.272 157.1946 163.964 156.9064 155.95C153.0202 150.772 150.8016 144.316 150.1204 137.43C149.192 128.262 151.9118 120.616 154.0128 116.216C155.0818 112.654 156.7734 108.7 159.4054 105.008C160.5278 103.434 161.9296 101.77 163.6294 100.19V97.318L164.6732 96.274L134.2 65.8C130.6 62.2 125.6 60 120 60C109 60 100 69 100 80V251.8L5.8 345.8C2.2 349.4 0 354.4 0 360C0 371 9 380 20 380H280zM181.1722 112.772C176.5716 113.662 173.8602 118.704 172.77 123.474C171.6704 125.4 169.471 130.074 170.0208 135.438C170.708 142.45 173.5948 145.612 176.7564 146.85V147.95C176.7564 156.75 177.4438 169.262 179.0932 177.512C179.3682 179.85 179.918 182.188 180.6054 184.388C183.6294 194.562 189.9528 203.6376 198.338 209.9626C198.8776 210.3804 199.432 210.7856 200 211.178V140C200 134.4 197.8 129.4 194.2 125.8L181.1722 112.772z" : "M276.858 16.738C281.5060000000001 6.154 279.622 0 279.622 0H120.3366C120.3366 0 118.5778 6.154 123.1004 16.738C127.6226 27.322 149.8572 34.338 164.6804 40.862C179.3778 47.508 177.8702 51.446 178.3728 56.862C178.3728 57.478 178.4984 58.214 178.4984 58.954C173.348 63.262 169.077 69.538 166.3134 76.8V76.922C166.3134 76.922 166.1876 77.046 166.1876 77.168C165.6852 78.646 165.0572 80.368 164.6804 81.968C161.163 82.586 159.153 86.4 158.3994 89.846C157.6456 91.322 156.0126 94.646 156.3894 98.586C156.8918 103.632 159.0274 105.968 161.2886 106.954V107.692C161.2886 113.968 161.9166 123.2 163.0472 129.1078C163.2984 130.7078 163.6752 132.4308 164.1778 134.0308C166.3134 141.4154 170.9614 147.9386 176.991 152.6154C183.272 157.4154 192.191 160 200.104 160C208.02 160 216.938 157.4154 223.22 152.6154C229.248 147.9386 233.896 141.4154 236.032 133.9078C236.534 132.3078 236.912 130.5846 237.162 128.9846C238.294 123.0768 238.922 113.968 238.922 107.692V106.832C241.182 105.846 243.192 103.508 243.57 98.586C243.946 94.646 242.438 91.322 241.56 89.846C240.806 86.4 238.922 82.708 235.53 82.092C235.152 80.492 234.65 78.892 234.022 77.292C234.022 77.168 233.896 76.8 233.896 76.8C231.132 69.662 226.988 63.508 221.964 58.954V56.738C222.464 51.2 220.456 47.262 235.278 40.738C250.102 34.214 272.336 27.322 276.858 16.738zM297.05 20H319.67C319.67 20 321.318 25.384 317.252 34.646C314.0660000000001 42.1 300.842 47.462 289.038 52.246C286.176 53.406 283.398 54.532 280.868 55.646C269.558 60.624 269.448 63.882 269.314 67.848C269.294 68.43 269.274 69.026 269.218 69.646V71.584C273.614 75.568 277.242 80.954 279.6600000000001 87.2C279.6600000000001 87.2 279.7680000000001 87.522 279.7680000000001 87.632C280.318 89.032 280.7580000000001 90.432 281.088 91.832C284.056 92.368 285.704 95.6 286.366 98.616C287.134 99.906 288.452 102.816 288.122 106.262C287.794 110.568 286.034 112.616 284.056 113.478V114.232C284.056 119.722 283.506 127.6922 282.516 132.8616C282.298 134.2616 281.966 135.7694 281.528 137.1694C279.6600000000001 143.7384 275.592 149.4462 270.318 153.5384C264.82 157.7384 257.016 160 250.092 160C248.308 160 246.464 159.8498 244.618 159.555C249.342 153.8338 253.034 147.1016 255.198 139.6288C255.96 137.1466 256.502 134.6618 256.868 132.416C257.826 127.2778 258.434 120.8578 258.722 115.086C261.516 110.702 263.068 105.564 263.496 100.292C264.164 92.838 262.194 86.63 260.32 82.604C259.454 79.782 258.1 76.594 255.984 73.532C255.056 72.19 253.888 70.752 252.464 69.364C250.866 65.278 248.908 61.348 246.61 57.658C247.836 57.152 249.206 56.592 250.668 55.994C256.368 53.668 263.4460000000001 50.78 268.646 48.262C273.176 46.07 278.166 43.35 282.614 39.978C286.872 36.752 292.13 31.822 295.204 24.704C295.908 23.094 296.52 21.524 297.05 20zM242.788 37.594C243.392 37.348 244.002 37.102 244.616 36.852zM220 300C231 300 240 291 240 280C240 274.4 237.8 269.4 234.2 266L160 191.8V164.3188C153.1796 157.7344 147.8314 149.3474 145.0278 139.8016C144.2514 137.2868 143.7076 134.7822 143.343 132.5454C142.3954 127.4616 141.7906 121.076 141.4978 115.326C138.6844 111.03 137.0228 105.942 136.4876 100.566L136.4802 100.49C136.0642 96.142 136.5956 92.216 137.4096 89.01L114.2 65.8C110.6 62.2 105.6 60 100 60C89 60 80 69 80 80V191.8L5.8 265.8C2.2 269.4 0 274.4 0 280C0 291 9 300 20 300H220z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); SharedFilter.defaultProps = { size: IconSize.STANDARD, }; SharedFilter.displayName = `Blueprint5.Icon.SharedFilter`; export default SharedFilter; //# sourceMappingURL=shared-filter.js.map