@blueprintjs/icons
Version:
Components, fonts, icons, and css files for creating and displaying icons.
31 lines • 8.55 kB
JavaScript
/*
* 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 ArrayObject = 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: "array-object", ref: ref, ...props },
React.createElement("path", { d: isLarge ? "M380 400C390.256 400 398.7100000000001 392.2792 399.8660000000001 382.33242L400 380V20C400 9.744 392.2800000000001 1.29 382.332 0.134L380 0H300C288.954 0 280 8.954 280 20C280 30.256 287.72 38.71 297.668 39.866L300 40H360V360H300C289.744 360 281.29 367.7208 280.134 377.6676L280 380C280 390.25672 287.72 398.710144 297.668 399.8654454L300 400H380zM100 400C111.0456 400 120 391.0457 120 380C120 369.7432 112.2792 361.2898 102.3324 360.1346L100 360H40V40H100C110.2568 40 118.7102 32.28 119.8654 22.332L120 20C120 9.744 112.2792 1.29 102.3324 0.134L100 0H20C9.74328 0 1.289856 7.72 0.1345546 17.668L0 20V380C0 390.25672 7.7208 398.710144 17.66758 399.8654454L20 400H100zM162.052 320C153.7626 320 145.813 316.7072 139.9516 310.8458C134.0902 304.9844 130.7974 297.0346 130.7974 288.7454V239.2738C130.7974 231.6654 126.9218 224.593 120.528 220.4852L106.1686 211.2874C104.2772 210.0756 102.7208 208.4074 101.643 206.4366C100.565 204.4656 100 202.2554 100 200.009C100 197.762 100.565 195.552 101.643 193.582C102.7208 191.61 104.2772 189.942 106.1686 188.73L120.528 179.532C126.9218 175.424 130.7974 168.334 130.7974 160.726V111.254C130.7974 94.002 144.7994 80 162.052 80H168.9458C172.4984 80 175.9054 81.412 178.4174 83.924C180.9294 86.436 182.3406 89.842 182.3406 93.394C182.3406 96.948 180.9294 100.354 178.4174 102.866C175.9054 105.378 172.4984 106.79 168.9458 106.79H162.034C160.85 106.79 159.7142 107.26 158.8768 108.098C158.0396 108.934 157.5692 110.07 157.5692 111.254V160.726C157.5712 168.35 155.7988 175.868 152.392 182.688C148.9852 189.508 144.0378 195.442 137.9412 200.0178C144.033 204.591 148.9774 210.5184 152.384 217.3314C155.7906 224.1444 157.5656 231.6564 157.5692 239.2738V288.7454C157.5692 289.9296 158.0396 291.0652 158.8768 291.9026C159.7142 292.7398 160.85 293.2102 162.034 293.2102H168.928C170.687 293.2102 172.4288 293.5568 174.054 294.23C175.679 294.903 177.1558 295.8898 178.3996 297.1336C179.6434 298.3774 180.63 299.854 181.3032 301.4792C181.9764 303.1042 182.3228 304.8462 182.3228 306.6052C182.3228 308.3642 181.9764 310.106 181.3032 311.7312C180.63 313.3562 179.6434 314.833 178.3996 316.0768C177.1558 317.3206 175.679 318.3072 174.054 318.9804000000001C172.4288 319.6536 170.687 320 168.928 320H162.052zM234.208 320C251.478 320 265.464 305.998 265.464 288.7454V239.2738C265.464 231.6654 269.356 224.593 275.75 220.4852L290.11 211.2874C292.002 210.0756 293.558 208.4074 294.636 206.4366C295.714 204.4656 296.278 202.2554 296.278 200.009C296.278 197.762 295.714 195.552 294.636 193.582C293.558 191.61 292.002 189.942 290.11 188.73L275.75 179.532C272.598 177.51 270.006 174.728 268.212 171.442C266.418 168.156 265.478 164.47 265.4820000000001 160.726V111.254C265.4820000000001 102.966 262.188 95.016 256.326 89.154C250.466 83.292 242.516 80 234.226 80H227.332C223.78 80 220.372 81.412 217.86 83.924C215.348 86.436 213.938 89.842 213.938 93.394C213.938 96.948 215.348 100.354 217.86 102.866C220.372 105.378 223.78 106.79 227.332 106.79H234.226C235.41 106.79 236.546 107.26 237.384 108.098C238.22 108.934 238.692 110.07 238.692 111.254V160.726C238.692 176.264 246.014 190.766 258.302 200.0178C252.212 204.5928 247.272 210.521 243.868 217.334C240.466 224.147 238.692 231.658 238.692 239.2738V288.7454C238.692 289.9296 238.22 291.0652 237.384 291.9026C236.546 292.7398 235.41 293.2102 234.226 293.2102H227.332C223.78 293.2102 220.372 294.6216 217.86 297.1336C215.348 299.6456 213.938 303.0526 213.938 306.6052C213.938 310.1576 215.348 313.5648 217.86 316.0768C220.372 318.5888 223.78 320 227.332 320H234.208z" : "M80 320C91.0456 320 100 311.0457 100 300C100 289.7432 92.2792 281.2898 82.3324 280.1346L80 280H40V40H80C90.2568 40 98.7102 32.28 99.8654 22.332L100 20C100 9.744 92.2792 1.29 82.3324 0.134L80 0H20C9.74328 0 1.289856 7.72 0.1345546 17.668L0 20V300C0 310.25672 7.7208 318.710144 17.66758 319.8654454L20 320H80zM300 320C310.2560000000001 320 318.71 312.2792 319.866 302.33242L320 300V20C320 9.744 312.2800000000001 1.29 302.332 0.134L300 0H240C228.954 0 220 8.954 220 20C220 30.256 227.72 38.71 237.668 39.866L240 40H280V280H240C229.744 280 221.29 287.7208 220.134 297.6676L220 300C220 310.25672 227.72 318.710144 237.668 319.8654454L240 320H300zM130 260C117.0752 260 106.9706 255.9052 101.6824 245.4968C99.3388 240.8842 98.479 235.9566 98.151 231.6648C97.825 227.3988 97.981 222.9884 98.1354 219.2176C98.4798 210.7954 98.6902 183.0502 97.347 178.7388C96.7916 176.9558 96.0058 175.6028 94.8134 174.4562C93.5662 173.257 91.4134 171.8456 87.5746 170.7794C83.123 169.5428 80 165.0986 80 160C80 154.9014 83.123 150.4572 87.5746 149.2206C91.4134 148.1542 93.5662 146.743 94.8134 145.5438C96.0058 144.3972 96.7916 143.0442 97.347 141.2612C98.6902 136.9498 98.4798 109.204 98.1354 100.782C97.981 97.012 97.825 92.602 98.151 88.336C98.479 84.044 99.3388 79.116 101.6824 74.504C106.9706 64.094 117.0752 60 130 60C135.5228 60 140 64.974 140 71.112C140 77.248 135.5228 82.222 130 82.222C120.6686 82.222 119.3432 84.928 119.1146 85.396L119.0988 85.428C118.708 86.196 118.2788 87.606 118.0794 90.216C117.878 92.85 117.9564 95.906 118.1146 99.774C118.1358 100.288 118.1594 100.824 118.1838 101.378C118.484 108.192 118.9062 139.9938 116.2468 148.5304C114.985 152.5802 113.0254 156.513 110.0962 160C113.0254 163.4868 114.985 167.4198 116.2468 171.4696C118.9062 180.0062 118.484 211.8078 118.1838 218.6226C118.1594 219.176 118.1358 219.7118 118.1146 220.2268C117.9564 224.0948 117.878 227.1498 118.0794 229.7848C118.2788 232.394 118.708 233.8034 119.0988 234.5726L119.1146 234.6044C119.3432 235.0712 120.6686 237.7778 130 237.7778C135.5228 237.7778 140 242.7524 140 248.8888C140 255.0254 135.5228 260 130 260zM190 260C202.924 260 213.03 255.9052 218.318 245.4968C220.662 240.8842 221.52 235.9566 221.848 231.6648C222.174 227.3988 222.018 222.9884 221.864 219.2176C221.52 210.7954 221.31 183.0502 222.652 178.7388C223.208 176.9558 223.994 175.6028 225.186 174.4562C226.434 173.257 228.586 171.8456 232.426 170.7794C236.878 169.5428 240 165.0986 240 160C240 154.9014 236.878 150.4572 232.426 149.2206C228.586 148.1542 226.434 146.743 225.186 145.5438C223.994 144.3972 223.208 143.0442 222.652 141.2612C221.31 136.9498 221.52 109.204 221.864 100.782C222.018 97.012 222.174 92.602 221.848 88.336C221.52 84.044 220.662 79.116 218.318 74.504C213.03 64.094 202.924 60 190 60C184.4772 60 180 64.974 180 71.112C180 77.248 184.4772 82.222 190 82.222C199.3314 82.222 200.656 84.928 200.886 85.396L200.902 85.428C201.292 86.196 201.722 87.606 201.92 90.216C202.122 92.85 202.044 95.906 201.886 99.774C201.864 100.288 201.84 100.824 201.816 101.378C201.516 108.192 201.094 139.9938 203.754 148.5304C205.014 152.5802 206.974 156.513 209.904 160C206.974 163.4868 205.014 167.4198 203.754 171.4696C201.094 180.0062 201.516 211.8078 201.816 218.6226C201.84 219.176 201.864 219.7118 201.886 220.2268C202.044 224.0948 202.122 227.1498 201.92 229.7848C201.722 232.394 201.292 233.8034 200.902 234.5726L200.886 234.6044C200.656 235.0712 199.3314 237.7778 190 237.7778C184.4772 237.7778 180 242.7524 180 248.8888C180 255.0254 184.4772 260 190 260z", fillRule: "evenodd", transform: `scale(0.05, -0.05) translate(${translation}, ${translation})`, style: style })));
});
ArrayObject.defaultProps = {
size: IconSize.STANDARD,
};
ArrayObject.displayName = `Blueprint5.Icon.ArrayObject`;
export default ArrayObject;
//# sourceMappingURL=array-object.js.map