@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
31 lines • 7.38 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/*
* 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 Spin = 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 (_jsx(SVGIconContainer, { iconName: "spin", ref: ref, ...props, children: _jsx("path", { d: isLarge ? "M126.1618 233.874C134.2498 242.0326 147.3518 242.0338 155.4392 233.874L214.014 174.772L215.44 173.19C222.072 164.982 221.594 152.872 214.014 145.222L155.4392 86.12C147.3532 77.964 134.2494 77.966 126.1618 86.12C118.0738 94.28 118.0738 107.51 126.1618 115.67L147.49 137.214C123.8524 134.638 102.4 130.372 84.9314 124.714C64.1396 117.976 49.7876 109.548 43.5642 100.378C40.4386 95.77 39.4432 91.09 40.4782 86.492C41.5184 81.88 44.6104 77.29 49.7556 72.878C60.0242 64.074 78.0104 56.356 101.6306 50.592C125.258 44.828 153.5972 41.256 183.4078 40.28C213.218 39.304 243.306 40.96 270.2440000000001 45.066C297.182 49.174 319.91 55.576 335.79 63.5220000000001C343.724 67.492 349.8060000000001 71.76 353.896 76.218C358.01 80.702 360.088 85.352 360.088 90.006C360.0900000000001 101.05 369.0440000000001 110.006 380.088 110.006C391.13 110.006 400.086 101.05 400.088 90.006C400.088 72.494 392.044 58.644 383.368 49.186C374.8660000000001 39.916 364.202 33.006 353.682 27.742C332.63 17.2140000000001 305.388 9.972 276.278 5.534C246.698 1.022 214.138 -0.75 182.0994 0.3C150.1248 1.346 118.9658 5.202 92.1384 11.744C66.5404 17.99 41.1852 27.552 23.7204 42.526C14.6434 50.31 5.02286 61.866 1.454772 77.702C-2.39638 94.8 2.18456 110.642 10.45868 122.838C24.6278 143.72 50.278 155.53 72.5876 162.76C95.6646 170.236 123.2532 175.266 152.3728 177.878L126.1618 204.3232C118.0738 212.4836 118.0738 225.7134 126.1618 233.874zM224.736 393.8739C232.824 402.0332 245.926 402.03402 254.014 393.8739C262.098 385.71356 262.1 372.4832 254.014 364.3232L229.112 339.2254C257.684 337.6988 285.27 333.9282 309.306 327.956C325.01 324.0536 339.634 319.11 352.236 312.9754C364.3200000000001 307.0934 377.29 298.798 386.7680000000001 286.8232000000001C397.174 273.6706000000001 403.612 255.2866 398.056 235.1044C393.1260000000001 217.2082 380.614 205.0254 369.736 197.292C348.1260000000001 181.93 316.44 172.326 283.526 166.706C272.64 164.85 262.32 172.168 260.458 183.054C258.604 193.938 265.92 204.2614 276.806 206.12C307.806 211.4132 332.33 219.7804 346.552 229.8896C353.6740000000001 234.9528 358.0080000000001 240.299 359.502 245.7098C360.98 251.0844 359.6800000000001 256.6108000000001 355.4 262.0184000000001C351.158 267.3742 344.142 272.4396 334.736 277.0184000000001C325.32 281.6016 313.5 285.7116 299.678 289.1474C279.504 294.16 255.858 297.5374 230.83 299.0692L254.014 275.6708C262.1 267.5104 262.1 254.2804 254.014 246.12C245.926 237.966 232.822 237.9662 224.736 246.12L166.1618 305.2216C158.5786 312.8726000000001 158.0998 324.9828 164.736 333.1904L166.1618 334.7724L224.736 393.8739zM98.2908 329.7138C109.0678 332.1198 119.7674 325.3338 122.1774 314.5574000000001C124.5854 303.7792 117.7982 293.0814000000001 107.0212 290.6708C91.7994 287.2692 78.7204 283.0924 68.2712 278.3466C57.826 273.6014 49.9888 268.2846 45.2634 262.624C40.4902 256.9038 39.0916 251.0702 40.7712 245.3974C42.4682 239.6718 47.3352 234.0218 55.322 228.7176C64.517 222.6066 67.0132 210.1824 60.9078 200.9832C54.7962 191.79 42.3914 189.294 33.193 195.398C21.5952 203.1008 7.9233 215.4358 2.4118 234.0302C-3.92166 255.4078 3.3263 274.7868 14.56024 288.249C24.7516 300.4588 38.694 308.8316 51.7282 314.7528C65.3498 320.9402 81.1984 325.894 98.2908 329.7138z" : "M105.7422 194.375C113.323 201.8768 125.6242 201.88 133.2032 194.375L174.375 153.5938L175.7032 152.129C181.919 144.5802 181.478 133.4436 174.375 126.4062L133.2032 85.624C125.6236 78.118 113.323 78.12 105.7422 85.624C98.1618 93.13 98.1618 105.306 105.7422 112.812L109.1602 116.21C95.9484 114.148 83.9106 111.304 73.6914 107.774C58.1032 102.386 47.3462 95.634 42.6758 88.3C40.3316 84.614 39.5756 80.866 40.3516 77.188C41.1312 73.502 43.4484 69.838 47.3046 66.308C55.0066 59.266 68.5 53.086 86.211 48.476C103.9298 43.868 125.183 40.996 147.539 40.214C169.895 39.436 192.4742 40.758 212.676 44.042C232.878 47.328 249.924 52.452 261.836 58.808C267.182 61.662 272.09 65.148 275.468 69.042C277.846 71.782 279.238 74.426 279.786 77.188L280.058 80C280.06 91.044 289.014 100 300.058 100C311.1 99.996 320.0560000000001 91.044 320.058 80C320.058 48.62 294.856 31.088 280.664 23.516C263.42 14.314 241.644 8.238 219.102 4.57C196.0896 0.828 170.8862 -0.63 146.1524 0.234C121.4836 1.096 97.2338 4.274 76.1328 9.766C56.203 14.954 35.1876 23.174 20.3124 36.778C12.48174 43.938 4.24576 54.562 1.210938 68.926C-2.02528 84.256 1.798212 98.56 8.92578 109.766C21.198 129.0518 43.1072 139.5122 60.625 145.5664C76.9244 151.1988 95.7914 155.1186 115.5664 157.4414L105.7422 167.1876C98.1654 174.6948 98.163 186.8692 105.7422 194.375zM166.914 314.375C174.4938 321.878796 186.795 321.878294 194.375 314.375C201.95 306.86978 201.95 294.694 194.375 287.1876L186.211 279.1406C208.576 277.6536 230.25 274.237 249.122 268.8476C268.99 263.1728 291.616 253.7028 305.976 236.8164C314.016 227.3612 320.818 213.8072 319.98 197.2852C319.154 181.0832 311.314 168.539 303.1840000000001 160.0782C288.236 144.5258 265.7920000000001 135.577 245.312 130.1172C234.642 127.2728 223.668 133.6082 220.82 144.2774C217.976 154.9494 224.33 165.925 235 168.7696C253.432 173.6828 267.126 180.293 274.336 187.793C277.958 191.562 279.8400000000001 195.452 280.04 199.3164C280.234 203.1764 278.748 207.0858 275.508 210.8984C269.064 218.477 256.046 225.2532 238.124 230.371C223.7 234.49 206.596 237.386 188.2618 238.8672L194.375 232.8124C201.952 225.3058 201.954 213.1308 194.375 205.625C186.7954 198.1188 174.4946 198.1206 166.914 205.625L125.7422 246.4062C118.1634 253.9132 118.1624 266.0876 125.7422 273.5938L166.914 314.375zM58.9258 264.9804C69.3252 268.6876 80.7782 263.2678 84.4922 252.871C88.202 242.4702 82.7626 231.0182 72.3632 227.3046C60.454 223.0546 51.4532 217.9918 46.0156 212.461C40.4608 206.8088 38.8858 200.925 40.8984 195.2734C44.5978 184.8732 39.1678 173.4348 28.7696 169.7266C18.36642 166.0202 6.9318 171.4538 3.22266 181.8554C-5.4717 206.2586 4.84428 227.6104 17.5 240.4882C29.0268 252.2144 44.4894 259.8292 58.9258 264.9804z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style }) }));
});
Spin.defaultProps = {
size: IconSize.STANDARD,
};
Spin.displayName = `Blueprint6.Icon.Spin`;
export default Spin;
//# sourceMappingURL=spin.js.map