UNPKG

@blueprintjs/icons

Version:

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

31 lines 7 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 CssStyle = 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: "css-style", ref: ref, ...props }, React.createElement("path", { d: isLarge ? "M60 380C60 391.04568 68.9544 400 80 400C140 400 200 400.00029875 260 399.9999120832L380 280C380 193.334 380 106.666 380 20C380 8.954 371.046 0 360 0H285.846C293.858 8.784 300 20.846 300 35C300 36.72 299.914 38.386 299.75 40H340V260C293.334 260 286.666 260 240 260V360H100V125.59C99.7246 125.36 99.4516 125.128 99.181 124.894C95.9118 122.072 92.7888 118.74 90.0474 114.964C87.1244 119.38 83.5152 123.47 79.1184 127.06C73.1826 131.908 66.669 135.144 60 137.168V380zM40 120C29.6488 120 20.3564 116.842 13.19204 110.732C5.74774 104.384 0.771948 94.772 0 85V35C0 25.1659999999999 5.19282 16.338 12.2515 10.244C19.4114 4.062 29.206 0 40 0C60.3068 0 80 14.04 80 35C80 40.522 75.5228 45 70 45C64.4772 45 60 40.522 60 35C60 28.346 52.8302 20 40 20C34.2256 20 29.02 22.188 25.322 25.3820000000001C21.523 28.662 20 32.3340000000001 20 35V85C20.948 90.07 23.1992 92.982 26.1694 95.514C29.267 98.156 33.7826 100 40 100C46.6792 100 51.0066 98.374 53.8172 96.078C56.5796 93.822 59.012 89.996 60.1404 83.33C61.0622 77.886 66.224 74.218 71.6694 75.14C77.1148 76.062 80.7816 81.224 79.8596 86.67C78.133 96.868 73.8496 105.54 66.4678 111.568C59.1344 117.558 49.8894 120 40 120zM112.2516 109.756C119.4114 115.938 129.206 120 140 120C160.3068 120 180 105.96 180 85C180 79.478 175.5228 75 170 75C164.4772 75 160 79.478 160 85C160 91.654 152.8302 100 140 100C134.2256 100 129.02 97.812 125.3222 94.618C121.523 91.338 120 87.666 120 85C120 82.576 120.9782 80.424 124.9976 77.69C129.422 74.682 135.6646 72.29 143.4956 69.37L144.1004 69.144C151.1528 66.514 159.613 63.36 166.2476 58.848C173.4782 53.932 180 46.382 180 35C180 25.1659999999999 174.8072 16.338 167.7486 10.244C160.5886 4.062 150.794 0 140 0C119.6932 0 100 14.04 100 35C100 40.522 104.4772 45 110 45C115.5228 45 120 40.522 120 35C120 28.346 127.1698 20 140 20C145.7744 20 150.98 22.188 154.6778 25.3820000000001C158.477 28.662 160 32.3340000000001 160 35C160 37.424 159.0218 39.576 155.0024 42.31C149.248 46.222 142.3672 48.444 135.8996 50.856C128.8474 53.486 120.3872 56.64 113.7524 61.152C106.5218 66.068 100 73.6180000000001 100 85C100 94.834 105.1928 103.662 112.2516 109.756zM240 120C229.206 120 219.412 115.938 212.252 109.756C205.192 103.662 200 94.834 200 85C200 73.6180000000001 206.522 66.068 213.752 61.152C220.388 56.64 228.848 53.486 235.9 50.856C242.368 48.444 249.248 46.222 255.002 42.31C259.022 39.576 260 37.424 260 35C260 32.3340000000001 258.478 28.662 254.678 25.3820000000001C250.98 22.188 245.774 20 240 20C227.17 20 220 28.346 220 35C220 40.522 215.522 45 210 45C204.478 45 200 40.522 200 35C200 14.04 219.694 0 240 0C250.794 0 260.588 4.062 267.748 10.244C274.808 16.338 280 25.1659999999999 280 35C280 46.382 273.478 53.932 266.248 58.848C259.612 63.36 251.152 66.514 244.1 69.144L243.496 69.37C235.664 72.29 229.422 74.682 224.998 77.69C220.978 80.424 220 82.576 220 85C220 87.666 221.522 91.338 225.322 94.618C229.02 97.812 234.226 100 240 100C252.83 100 260 91.654 260 85C260 79.478 264.478 75 270 75C275.522 75 280 79.478 280 85C280 105.96 260.306 120 240 120z" : "M40 300C40 311.0457 48.9544 320 60 320H200C233.334 286.6668 266.666 253.3334 300 220V20C300 8.954 291.046 0 280 0H229.642C236.192 8.634 240 19.218 240 30C240 33.552 239.618 36.884 238.932 40H260V200C226.666 200 213.334 200 180 200V280H80V109.728C76.2614 106.846 72.9498 103.464 70.1502 99.724C68.5006 102.082 66.6038 104.352 64.4262 106.486C57.1778 113.588 48.6016 117.466 40 119.082V300zM149.82 0.236L149.9964 0H149.6418L149.82 0.236zM30 100C21.8796 100 14.66904 96.98 9.30174 91.488C4.06022 86.124 1.099978 78.962 0.0866068 71.314L0 70.66V70V30C0 14.814 13.10002 0 30 0C46.5686 0 60 13.432 60 30C60 35.522 55.5228 40 50 40C44.4772 40 40 35.522 40 30C40 24.478 35.5228 20 30 20C24.8086 20 20 25.186 20 30V69.286C20.631 73.296 22.0808 75.948 23.606 77.51C25.0798 79.018 27.0746 80 30 80C33.4608 80 35.2792 79.044 36.429 77.916C37.7366 76.636 39.3398 73.978 40.098 68.602C40.8696 63.134 45.9284 59.326 51.3972 60.098C56.8658 60.87 60.6736 65.928 59.902 71.398C58.7568 79.512 55.8828 86.854 50.4276 92.202C44.8148 97.702 37.5848 100 30 100zM80 70C80 85.186 93.1 100 110 100C126.5686 100 140 86.568 140 70C140 64.478 135.5228 60 130 60C124.4772 60 120 64.478 120 70C120 75.522 115.5228 80 110 80C104.8086 80 100 74.814 100 70C100 68.158 100.569 66.92 102.5718 65.286C105.0942 63.226 108.7642 61.51 114.0864 59.128L114.6112 58.892C119.23 56.826 125.2782 54.122 130.0718 50.212C135.569 45.726 140 39.204 140 30C140 14.814 126.9 0 110 0C93.4314 0 80 13.432 80 30C80 35.522 84.4772 40 90 40C95.5228 40 100 35.522 100 30C100 24.478 104.4772 20 110 20C115.1914 20 120 25.186 120 30C120 31.842 119.431 33.08 117.4282 34.716C114.9058 36.774 111.2358 38.49 105.9138 40.872L105.3888 41.108C100.77 43.174 94.722 45.878 89.9282 49.788C84.431 54.274 80 60.796 80 70zM190 100C173.1 100 160 85.186 160 70C160 60.796 164.431 54.274 169.9282 49.788C174.722 45.878 180.77 43.174 185.3888 41.108L185.9138 40.872C191.2358 38.49 194.9058 36.774 197.4282 34.716C199.431 33.08 200 31.842 200 30C200 25.186 195.1914 20 190 20C184.4772 20 180 24.478 180 30C180 35.522 175.5228 40 170 40C164.4772 40 160 35.522 160 30C160 13.432 173.4314 0 190 0C206.9 0 220 14.814 220 30C220 39.204 215.568 45.726 210.072 50.212C205.278 54.122 199.23 56.826 194.6112 58.892L194.0864 59.128C188.7642 61.51 185.0942 63.226 182.5718 65.286C180.569 66.92 180 68.158 180 70C180 74.814 184.8086 80 190 80C195.5228 80 200 75.522 200 70C200 64.478 204.478 60 210 60C215.522 60 220 64.478 220 70C220 86.568 206.568 100 190 100z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }))); }); CssStyle.defaultProps = { size: IconSize.STANDARD, }; CssStyle.displayName = `Blueprint5.Icon.CssStyle`; export default CssStyle; //# sourceMappingURL=css-style.js.map